Click here to Skip to main content
15,910,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to use an ActiveX in dynamic Dialogs Pin
Pham duc an19-Mar-07 1:15
Pham duc an19-Mar-07 1:15 
QuestionDebugging in VS 2005 Pin
LiYS19-Mar-07 0:51
LiYS19-Mar-07 0:51 
AnswerRe: Debugging in VS 2005 Pin
prasad_som19-Mar-07 1:08
prasad_som19-Mar-07 1:08 
AnswerRe: Debugging in VS 2005 Pin
Mark Salsbery19-Mar-07 4:18
Mark Salsbery19-Mar-07 4:18 
QuestionHow to change other program's resource at runtime Pin
twomol19-Mar-07 0:47
twomol19-Mar-07 0:47 
AnswerRe: How to change other program's resource at runtime Pin
ThatsAlok19-Mar-07 1:08
ThatsAlok19-Mar-07 1:08 
GeneralRe: How to change other program's resource at runtime Pin
twomol19-Mar-07 1:25
twomol19-Mar-07 1:25 
GeneralRe: How to change other program's resource at runtime Pin
x87Bliss19-Mar-07 15:54
x87Bliss19-Mar-07 15:54 
I don't believe there are any functions that will allow you to change an images resources in memory.

If you're doing a simple replacement, like replacing one bitmap with another, if they are the same size, you can use WriteProcessMemory(...) You can find a whole section in MSDN about the debugging functions. You'll have to find out the memory address of the resource.

If you're trying to do more advanced resource changing operations, you're stuck with having to edit the image file; unless you probably do a LOT of work of modifying the PE header and allocating more memory and such, I don't even know if it is technically possible.

What kind of resource are you trying to change, and if possible, why? It may be better to come up with a different solution.
GeneralRe: How to change other program's resource at runtime Pin
twomol19-Mar-07 16:25
twomol19-Mar-07 16:25 
Questiongameonline Pin
ntboybuon19-Mar-07 0:44
ntboybuon19-Mar-07 0:44 
GeneralRe: gameonline [modified] Pin
Programm3r19-Mar-07 0:54
Programm3r19-Mar-07 0:54 
GeneralRe: gameonline Pin
ThatsAlok19-Mar-07 1:17
ThatsAlok19-Mar-07 1:17 
GeneralRe: gameonline Pin
Programm3r19-Mar-07 1:24
Programm3r19-Mar-07 1:24 
AnswerRe: gameonline Pin
Emil - Gabriel19-Mar-07 1:03
Emil - Gabriel19-Mar-07 1:03 
GeneralRe: gameonline Pin
ThatsAlok19-Mar-07 1:06
ThatsAlok19-Mar-07 1:06 
JokeRe: gameonline Pin
Emil - Gabriel19-Mar-07 1:14
Emil - Gabriel19-Mar-07 1:14 
GeneralRe: gameonline Pin
ThatsAlok19-Mar-07 1:16
ThatsAlok19-Mar-07 1:16 
AnswerRe: gameonline Pin
ThatsAlok19-Mar-07 1:17
ThatsAlok19-Mar-07 1:17 
AnswerRe: gameonline Pin
Bradml19-Mar-07 1:30
Bradml19-Mar-07 1:30 
QuestionRe: gameonline Pin
Programm3r19-Mar-07 1:32
Programm3r19-Mar-07 1:32 
AnswerRe: gameonline Pin
Bradml19-Mar-07 1:34
Bradml19-Mar-07 1:34 
GeneralRe: gameonline Pin
Programm3r19-Mar-07 1:47
Programm3r19-Mar-07 1:47 
GeneralRe: gameonline Pin
Cedric Moonen19-Mar-07 2:07
Cedric Moonen19-Mar-07 2:07 
GeneralRe: gameonline Pin
brianwelsch19-Mar-07 2:31
brianwelsch19-Mar-07 2:31 
GeneralRe: gameonline Pin
Bradml19-Mar-07 2:50
Bradml19-Mar-07 2:50 

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.