Click here to Skip to main content
15,907,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to create TCP connections between two clients in different LAN? Pin
Richard MacCutchan15-Feb-12 4:00
mveRichard MacCutchan15-Feb-12 4:00 
AnswerRe: How to create TCP connections between two clients in different LAN? Pin
Randor 15-Feb-12 13:26
professional Randor 15-Feb-12 13:26 
QuestionSHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Cyber Friend14-Feb-12 11:54
Cyber Friend14-Feb-12 11:54 
AnswerRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
pix_programmer14-Feb-12 20:48
pix_programmer14-Feb-12 20:48 
GeneralRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Cyber Friend15-Feb-12 12:16
Cyber Friend15-Feb-12 12:16 
AnswerRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ Pin
Randor 15-Feb-12 13:37
professional Randor 15-Feb-12 13:37 
GeneralRe: SHA1 encoding using Windows Crypto API with Unmanaged C++ [Resolved] Pin
Cyber Friend15-Feb-12 13:41
Cyber Friend15-Feb-12 13:41 
Questionfopen increment Pin
manju 314-Feb-12 3:16
manju 314-Feb-12 3:16 
Hi all,
I am using fwrite to save some images in while loop.
so i a can increment the file in fopen..
like 1.raw,2.raw...3....10

As first paramater is taking const char*.
If i take as a CString i am not able to get.
I tried the below code
CString FileName = "D:\\"
sprintf_s(ch,"%d",i++);
FileName=ch;	
FileName+=".raw";
FileName=str+FileName;
then converted CString to char*
const TCHAR* cstr = (LPCTSTR)FileName;


It is showing as bad pointer

Is there any other way to increment the file name and save all images


Here is the Below code:

FILE *fp_ara;
while(1)
{
  fp_ara=fopen ("D:\\1.raw","wb");
  fwrite(Data,2,1024*1024,fp_ara);
  if(fp_ara == NULL)
    exit(1);
   fclose(fp_ara);	
}


Thank you
Sharan
AnswerRe: fopen increment Pin
Maximilien14-Feb-12 4:16
Maximilien14-Feb-12 4:16 
AnswerRe: fopen increment Pin
«_Superman_»14-Feb-12 16:15
professional«_Superman_»14-Feb-12 16:15 
QuestionApplication Crash Pin
pix_programmer14-Feb-12 1:51
pix_programmer14-Feb-12 1:51 
AnswerRe: Application Crash Pin
Chris Losinger14-Feb-12 3:10
professionalChris Losinger14-Feb-12 3:10 
QuestionRe: Application Crash Pin
pix_programmer14-Feb-12 17:45
pix_programmer14-Feb-12 17:45 
QuestionPicture control Pin
sarfaraznawaz13-Feb-12 23:57
sarfaraznawaz13-Feb-12 23:57 
AnswerRe: Picture control Pin
Jochen Arndt14-Feb-12 0:25
professionalJochen Arndt14-Feb-12 0:25 
QuestionRemove warning "unused parameters" Pin
marca29213-Feb-12 21:53
marca29213-Feb-12 21:53 
AnswerRe: Remove warning "unused parameters" Pin
«_Superman_»13-Feb-12 21:56
professional«_Superman_»13-Feb-12 21:56 
GeneralRe: Remove warning "unused parameters" Pin
marca29213-Feb-12 22:00
marca29213-Feb-12 22:00 
QuestionToolbar and status bar disappear during client area update Pin
Lianqing13-Feb-12 13:30
Lianqing13-Feb-12 13:30 
AnswerRe: Toolbar and status bar disappear during client area update Pin
Richard MacCutchan13-Feb-12 22:25
mveRichard MacCutchan13-Feb-12 22:25 
GeneralRe: Toolbar and status bar disappear during client area update Pin
Lianqing14-Feb-12 2:16
Lianqing14-Feb-12 2:16 
GeneralRe: Toolbar and status bar disappear during client area update Pin
Richard MacCutchan14-Feb-12 5:30
mveRichard MacCutchan14-Feb-12 5:30 
QuestionFormat double precision Pin
_Flaviu13-Feb-12 7:52
_Flaviu13-Feb-12 7:52 
AnswerRe: Format double precision Pin
Maximilien13-Feb-12 8:09
Maximilien13-Feb-12 8:09 
AnswerRe: Format double precision Pin
Albert Holguin13-Feb-12 9:57
professionalAlbert Holguin13-Feb-12 9:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.