Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SendMessage Pin
David Crow2-Oct-06 3:35
David Crow2-Oct-06 3:35 
QuestionPlay sound function Pin
Anu_Bala30-Sep-06 20:37
Anu_Bala30-Sep-06 20:37 
AnswerRe: Play sound function Pin
Hamid_RT30-Sep-06 21:25
Hamid_RT30-Sep-06 21:25 
AnswerRe: Play sound function Pin
Eytukan1-Oct-06 3:11
Eytukan1-Oct-06 3:11 
QuestionHow to modify resources in a compiled exe file ? Pin
Atom30-Sep-06 15:12
Atom30-Sep-06 15:12 
GeneralRe: How to modify resources in a compiled exe file ? Pin
James R. Twine30-Sep-06 18:20
James R. Twine30-Sep-06 18:20 
GeneralRe: How to modify resources in a compiled exe file ? Pin
John M. Drescher30-Sep-06 19:26
John M. Drescher30-Sep-06 19:26 
AnswerRe: How to modify resources in a compiled exe file ? Pin
James R. Twine30-Sep-06 18:15
James R. Twine30-Sep-06 18:15 
   This is simple to do - this has been possible since before the 3.1 days ...

   An easy example of this is to use VC++ 6.0 to open an executable (EXE or DLL) file and change the "Open As" type to Resources - you can then view, add, edit and even delete the resources of the application, save the changes back to the executable and then run the application again.

   This is the #1 reason why you should never rely on the resources to enforce the behavior of your application (for example, if an edit control should be read-only or disabled, then make sure it is read-only/disabled by setting its style explicitly at runtime).  This is something that nails naive developers when they want to do something like release a limited version of their app, but the limits are enforced strictly via the resources.  This can also be a good thing - it allows well-written apps that keep all strings in their resources to be localized without access to the source code.

   Using the APIs to do this is a bit tricky (and note that the APIs were not originally available on Win95, but only on WinNT) - it is easier to use something like VC++ 6.0 to do it.

   Do you really need to know the APIs, or can you just use VC++ 6.0 to make the necessary changes?

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

GeneralRe: How to modify resources in a compiled exe file ? Pin
Atom1-Oct-06 3:32
Atom1-Oct-06 3:32 
AnswerRe: How to modify resources in a compiled exe file ? Pin
Hamid_RT30-Sep-06 21:25
Hamid_RT30-Sep-06 21:25 
Questionset width of button in VC++ Pin
aldo hexosa30-Sep-06 14:46
professionalaldo hexosa30-Sep-06 14:46 
AnswerRe: set width of button in VC++ Pin
Hamid_RT30-Sep-06 18:05
Hamid_RT30-Sep-06 18:05 
AnswerRe: set width of button in VC++ Pin
Hamid_RT2-Oct-06 9:38
Hamid_RT2-Oct-06 9:38 
GeneralRe: Wall Street Programming Pin
Trollslayer1-Oct-06 10:06
mentorTrollslayer1-Oct-06 10:06 
QuestionSource browser command line? Utility? Pin
charlieg30-Sep-06 6:15
charlieg30-Sep-06 6:15 
Questioninstalation add-in excel Pin
grame730-Sep-06 5:26
grame730-Sep-06 5:26 
QuestionConfusing with strcmp with swapping character.. Pin
EzraYap30-Sep-06 1:15
EzraYap30-Sep-06 1:15 
AnswerRe: Confusing with strcmp with swapping character.. Pin
ShilpiP30-Sep-06 1:33
ShilpiP30-Sep-06 1:33 
AnswerRe: Confusing with strcmp with swapping character.. Pin
David Crow2-Oct-06 3:42
David Crow2-Oct-06 3:42 
QuestionCheating Pin
Waldermort30-Sep-06 0:03
Waldermort30-Sep-06 0:03 
QuestionTo get ContoldID of an ActiveX Pin
viswanadhr29-Sep-06 22:14
viswanadhr29-Sep-06 22:14 
AnswerRe: To get ContoldID of an ActiveX Pin
Iain Clarke, Warrior Programmer30-Sep-06 8:39
Iain Clarke, Warrior Programmer30-Sep-06 8:39 
GeneralRe: To get ContoldID of an ActiveX Pin
Stephen Hewitt30-Sep-06 18:44
Stephen Hewitt30-Sep-06 18:44 
Questionon right click new option for any file or folder Pin
amaneet29-Sep-06 21:39
amaneet29-Sep-06 21:39 
AnswerRe: on right click new option for any file or folder Pin
Dominik Reichl30-Sep-06 1:06
Dominik Reichl30-Sep-06 1:06 

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.