Click here to Skip to main content
15,912,082 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Replacements for IsBadReadPtr and IsBadWritePtr Pin
Mike Dimmick2-May-08 7:05
Mike Dimmick2-May-08 7:05 
GeneralRe: Replacements for IsBadReadPtr and IsBadWritePtr Pin
Blake Miller2-May-08 7:18
Blake Miller2-May-08 7:18 
GeneralRe: Replacements for IsBadReadPtr and IsBadWritePtr Pin
Mike Dimmick2-May-08 13:14
Mike Dimmick2-May-08 13:14 
AnswerRe: Replacements for IsBadReadPtr and IsBadWritePtr [modified] Pin
Randor 2-May-08 8:51
professional Randor 2-May-08 8:51 
QuestionUNICODE problem Pin
gabbana2-May-08 2:54
gabbana2-May-08 2:54 
AnswerRe: UNICODE problem Pin
Matthew Faithfull2-May-08 3:40
Matthew Faithfull2-May-08 3:40 
AnswerRe: UNICODE problem Pin
David Crow2-May-08 3:45
David Crow2-May-08 3:45 
GeneralRe: UNICODE problem [modified] Pin
gabbana2-May-08 3:56
gabbana2-May-08 3:56 
hmm, the problem still exists:
one rectangle at the beginning at many after the file (>16)

<br />
	 wchar_t *gg;<br />
<br />
	FILE *wfile;<br />
	wfile = _wfopen(L"ReadMe.txt",L"r");<br />
	fseek(wfile,0,SEEK_END);<br />
	int num = ftell(wfile);<br />
	fseek(wfile,0,SEEK_SET);<br />
<br />
	gg = (wchar_t*)malloc(sizeof(wchar_t)*num+1);<br />
	fread(gg,sizeof(wchar_t),num,wfile);<br />
	fclose(wfile);<br />
	<br />
	gg[num] =  '\0'; // so that MessageBox() will not fail<br />
	MessageBox(NULL,gg,L"file",0);<br />


modified on Friday, May 2, 2008 10:16 AM

GeneralRe: UNICODE problem Pin
David Crow2-May-08 4:24
David Crow2-May-08 4:24 
GeneralRe: UNICODE problem Pin
gabbana2-May-08 4:32
gabbana2-May-08 4:32 
GeneralRe: UNICODE problem Pin
gabbana2-May-08 4:49
gabbana2-May-08 4:49 
QuestionRe: UNICODE problem Pin
David Crow2-May-08 4:56
David Crow2-May-08 4:56 
GeneralRe: UNICODE problem Pin
marcinj2-May-08 9:12
marcinj2-May-08 9:12 
GeneralRe: UNICODE problem Pin
gabbana2-May-08 20:01
gabbana2-May-08 20:01 
GeneralRe: UNICODE problem Pin
marcinj3-May-08 11:44
marcinj3-May-08 11:44 
QuestionNeed to load a directory without the User seeing it- How? Pin
Larry Mills Sr2-May-08 2:30
Larry Mills Sr2-May-08 2:30 
AnswerRe: Need to load a directory without the User seeing it- How? Pin
Hamid_RT2-May-08 2:40
Hamid_RT2-May-08 2:40 
AnswerRe: Need to load a directory without the User seeing it- How? [modified] Pin
_AnsHUMAN_ 2-May-08 2:41
_AnsHUMAN_ 2-May-08 2:41 
GeneralRe: Need to load a directory without the User seeing it- How? Pin
ThatsAlok5-May-08 0:09
ThatsAlok5-May-08 0:09 
AnswerRe: Need to load a directory without the User seeing it- How? Pin
Rajesh R Subramanian2-May-08 2:55
professionalRajesh R Subramanian2-May-08 2:55 
GeneralRe: Need to load a directory without the User seeing it- How? Pin
Larry Mills Sr2-May-08 6:46
Larry Mills Sr2-May-08 6:46 
GeneralRe: Need to load a directory without the User seeing it- How? Pin
ThatsAlok5-May-08 0:13
ThatsAlok5-May-08 0:13 
QuestionThe application failed to initialize properly (0x8000003) Pin
vijay.victory2-May-08 2:23
vijay.victory2-May-08 2:23 
AnswerRe: The application failed to initialize properly (0x8000003) Pin
Rajesh R Subramanian2-May-08 2:35
professionalRajesh R Subramanian2-May-08 2:35 
GeneralRe: The application failed to initialize properly (0x8000003) Pin
vijay.victory2-May-08 2:43
vijay.victory2-May-08 2:43 

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.