Click here to Skip to main content
15,914,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCustom Command Routing for Different Views in SDI. [modified] Pin
Uday Janaswamy3-Jul-06 20:26
Uday Janaswamy3-Jul-06 20:26 
QuestionDelete directory Pin
see me3-Jul-06 19:42
see me3-Jul-06 19:42 
AnswerRe: Delete directory Pin
Aqueel3-Jul-06 19:49
Aqueel3-Jul-06 19:49 
AnswerRe: Delete directory Pin
_AnsHUMAN_ 3-Jul-06 19:53
_AnsHUMAN_ 3-Jul-06 19:53 
GeneralRe: Delete directory Pin
see me3-Jul-06 19:57
see me3-Jul-06 19:57 
GeneralRe: Delete directory Pin
Hamid_RT3-Jul-06 20:13
Hamid_RT3-Jul-06 20:13 
GeneralRe: Delete directory Pin
_AnsHUMAN_ 3-Jul-06 20:21
_AnsHUMAN_ 3-Jul-06 20:21 
QuestionUpdateResource problem Pin
Rajesh R Subramanian3-Jul-06 18:55
professionalRajesh R Subramanian3-Jul-06 18:55 
<br />
        HANDLE hResource;<br />
	LPCTSTR lpData;<br />
	lpData = (const char*)L"Halo";<br />
<br />
	hResource = BeginUpdateResource("Sample.exe", TRUE);<br />
	if (NULL != hResource)<br />
	{<br />
		if (UpdateResource(hResource, <br />
			RT_STRING, <br />
			"IDS_TOTAL", <br />
			MAKELANGID(LANG_ENGLISH,SUBLANG_ENGLISH_US), <br />
			 (LPVOID)lpData, <br />
			sizeof(lpData)) != FALSE)<br />
		{<br />
			EndUpdateResource(hResource, FALSE);<br />
		}<br />
	}<br />


I am trying to update a string resource in an executable named Sample.exe, IDS_TOTAL whose value is "Hi there" to "Halo". The resource is modified, but if I check the value updated in that executable, it is blank. Is there anything wrong in the above code?

You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.

AnswerRe: UpdateResource problem Pin
Viorel.3-Jul-06 21:49
Viorel.3-Jul-06 21:49 
AnswerRe: UpdateResource problem Pin
Hamid_RT3-Jul-06 21:49
Hamid_RT3-Jul-06 21:49 
AnswerRe: UpdateResource problem Pin
Michael Dunn3-Jul-06 21:50
sitebuilderMichael Dunn3-Jul-06 21:50 
QuestionRemotely controll Pc Pin
_tasleem3-Jul-06 18:53
_tasleem3-Jul-06 18:53 
AnswerRe: Remotely controll Pc Pin
Rilhas9-Jul-06 5:12
Rilhas9-Jul-06 5:12 
GeneralRe: Remotely controll Pc Pin
_tasleem10-Jul-06 7:20
_tasleem10-Jul-06 7:20 
QuestionBeep beep beep beep beep, boop! (Need beeping code) Pin
Lord Kixdemp3-Jul-06 18:30
Lord Kixdemp3-Jul-06 18:30 
AnswerRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Sarath C3-Jul-06 20:56
Sarath C3-Jul-06 20:56 
GeneralRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Lord Kixdemp4-Jul-06 11:53
Lord Kixdemp4-Jul-06 11:53 
GeneralRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Rajesh R Subramanian6-Jul-06 19:00
professionalRajesh R Subramanian6-Jul-06 19:00 
GeneralRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Lord Kixdemp6-Jul-06 19:06
Lord Kixdemp6-Jul-06 19:06 
GeneralRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Rajesh R Subramanian10-Jul-06 2:46
professionalRajesh R Subramanian10-Jul-06 2:46 
GeneralRe: Beep beep beep beep beep, boop! (Need beeping code) Pin
Lord Kixdemp10-Jul-06 16:04
Lord Kixdemp10-Jul-06 16:04 
QuestionDLL can be truly used across linkers? Pin
George_George3-Jul-06 17:28
George_George3-Jul-06 17:28 
AnswerRe: DLL can be truly used across linkers? Pin
earl3-Jul-06 18:01
earl3-Jul-06 18:01 
GeneralRe: DLL can be truly used across linkers? Pin
George_George3-Jul-06 19:36
George_George3-Jul-06 19:36 
GeneralRe: DLL can be truly used across linkers? Pin
earl3-Jul-06 20:14
earl3-Jul-06 20:14 

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.