Click here to Skip to main content
15,919,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to start up an external .exe prog? Pin
Anonymous5-Aug-02 12:35
Anonymous5-Aug-02 12:35 
AnswerRe: How to start up an external .exe prog? Pin
Bill Wilson5-Aug-02 12:41
Bill Wilson5-Aug-02 12:41 
AnswerRe: How to start up an external .exe prog? Pin
Mr. Bill5-Aug-02 12:57
Mr. Bill5-Aug-02 12:57 
GeneralRe: How to start up an external .exe prog? Pin
Anonymous5-Aug-02 13:31
Anonymous5-Aug-02 13:31 
GeneralRe: How to start up an external .exe prog? Pin
Nish Nishant5-Aug-02 16:47
sitebuilderNish Nishant5-Aug-02 16:47 
GeneralRe: How to start up an external .exe prog? Pin
Anonymous6-Aug-02 15:23
Anonymous6-Aug-02 15:23 
GeneralRe: How to start up an external .exe prog? Pin
Nish Nishant6-Aug-02 17:53
sitebuilderNish Nishant6-Aug-02 17:53 
GeneralFindResource Pin
Sparticus5-Aug-02 12:10
Sparticus5-Aug-02 12:10 
Okay, I'm trying to load the raw data of a resource of a custom type. I've named the type "JPG" and have created a resource with the ID "IDR_JPG1". The resource is located within the executable. The code that I've come up with is:

char* pData = 0;
HRSRC hRsrc;
HGLOBAL hGlobal;
DWORD dWord;

hRsrc = FindResource( NULL, ?, RT_RCDATA );
dWord = GetLastError(); // Produces 1813 (ERROR_RESOURCE_TYPE_NOT_FOUND)
hGlobal = LoadResource( NULL, hRsrc );
pData = (char*)LockResource( hGlobal );

I have no idea what I need to be putting in place of the question mark. The MSDN Library provides only unclear and essentially useless information. Also, I'm a little uneasy about locking up a resource and not releasing it. Do I need to release it? There is a FreeResource function but I'm told that it is depricated. I'd appreciate any info you could send my way.
GeneralRe: FindResource Pin
Sparticus5-Aug-02 12:13
Sparticus5-Aug-02 12:13 
GeneralUsing regedit and the command line... Pin
esapp4205-Aug-02 11:13
esapp4205-Aug-02 11:13 
Questionhow to access an object that is declared in view1, when in view2? Pin
ns5-Aug-02 10:52
ns5-Aug-02 10:52 
AnswerRe: how to access an object that is declared in view1, when in view2? Pin
Tomasz Sowinski5-Aug-02 11:02
Tomasz Sowinski5-Aug-02 11:02 
GeneralRe: how to access an object that is declared in view1, when in view2? Pin
nss5-Aug-02 12:47
nss5-Aug-02 12:47 
GeneralRe: how to access an object that is declared in view1, when in view2? Pin
Chris Losinger5-Aug-02 13:39
professionalChris Losinger5-Aug-02 13:39 
GeneralRe: how to access an object that is declared in view1, when in view2? Pin
nss5-Aug-02 13:53
nss5-Aug-02 13:53 
AnswerRe: how to access an object that is declared in view1, when in view2? Pin
Steen Krogsgaard7-Aug-02 0:29
Steen Krogsgaard7-Aug-02 0:29 
Generalmessage handling Pin
help5-Aug-02 10:50
help5-Aug-02 10:50 
Generalstandard save dialog problem Pin
Brad Jennings5-Aug-02 10:44
Brad Jennings5-Aug-02 10:44 
GeneralRe: standard save dialog problem Pin
Ernest Laurentin5-Aug-02 10:50
Ernest Laurentin5-Aug-02 10:50 
GeneralRe: standard save dialog problem Pin
Brad Jennings5-Aug-02 11:06
Brad Jennings5-Aug-02 11:06 
GeneralRe: standard save dialog problem Pin
Brad Jennings5-Aug-02 11:36
Brad Jennings5-Aug-02 11:36 
GeneralRe: standard save dialog problem Pin
Ernest Laurentin5-Aug-02 11:51
Ernest Laurentin5-Aug-02 11:51 
GeneralDestroyWindow Issues Pin
tjkrz5-Aug-02 10:37
tjkrz5-Aug-02 10:37 
GeneralRe: DestroyWindow Issues Pin
Tomasz Sowinski5-Aug-02 10:47
Tomasz Sowinski5-Aug-02 10:47 
GeneralRe: DestroyWindow Issues Pin
tjkrz5-Aug-02 10:52
tjkrz5-Aug-02 10:52 

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.