Click here to Skip to main content
15,895,423 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to get all the controls in a CDialog? Pin
melwyn6-May-03 5:19
melwyn6-May-03 5:19 
AnswerRe: How to get all the controls in a CDialog? Pin
harinath6-May-03 5:22
professionalharinath6-May-03 5:22 
GeneralRe: How to get all the controls in a CDialog? Pin
basementman6-May-03 5:45
basementman6-May-03 5:45 
GeneralRe: How to get all the controls in a CDialog? Pin
melwyn8-May-03 1:28
melwyn8-May-03 1:28 
GeneralRe: How to get all the controls in a CDialog? Pin
melwyn7-May-03 22:47
melwyn7-May-03 22:47 
Questionhow to rotate text without having to select another font Pin
didida6-May-03 5:02
sussdidida6-May-03 5:02 
AnswerRe: how to rotate text without having to select another font Pin
basementman6-May-03 6:08
basementman6-May-03 6:08 
GeneralPls Help Me. Pin
stilgar6-May-03 4:54
stilgar6-May-03 4:54 
GeneralCopy a pointer to an element of an array of pointers Pin
Majid Shahabfar6-May-03 4:13
Majid Shahabfar6-May-03 4:13 
GeneralRe: Copy a pointer to an element of an array of pointers Pin
David Crow6-May-03 4:28
David Crow6-May-03 4:28 
GeneralRe: Copy a pointer to an element of an array of pointers Pin
Hans Ruck6-May-03 4:28
Hans Ruck6-May-03 4:28 
GeneralRe: Copy a pointer to an element of an array of pointers Pin
jhaga6-May-03 4:36
professionaljhaga6-May-03 4:36 
GeneralRe: Copy a pointer to an element of an array of pointers Pin
Peter Mares6-May-03 4:48
Peter Mares6-May-03 4:48 
GeneralCoCreateInstance Tracing Pin
Daniel Turini6-May-03 4:01
Daniel Turini6-May-03 4:01 
GeneralFinding/Loading resources Pin
will13836-May-03 3:37
will13836-May-03 3:37 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 4:06
David Crow6-May-03 4:06 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 4:34
will13836-May-03 4:34 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 4:39
David Crow6-May-03 4:39 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 4:44
will13836-May-03 4:44 
GeneralRe: Finding/Loading resources Pin
basementman6-May-03 4:50
basementman6-May-03 4:50 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 5:16
will13836-May-03 5:16 
Ok,
I'm further in my understanding, but still no further in a solution. Here's what I have now:


HMODULE hModule;
HRSRC hResource;
sprintf(buff,"%s.exe",app);
hModule = LoadLibraryEx(buff,NULL,LOAD_LIBRARY_AS_DATAFILE);
if (NULL != hModule){
hResource = FindResource(hModule,"IDI_ICON3",RT_ICON);
if (NULL != hResource) {
IUXLogData("the resource exists\n",TRACE1);
//LoadResource(hResource, ...);
} else if ( NULL == hResource ) {
sprintf(buff,
"the %s app is not up to date with error %d\n",
app,
GetLastError());
IUXLogData(buff,IUX_ERROR);
}
FreeLibrary(hModule);
}

I'm still getting an 1814 error though. Still unsure why I am. Is the "IDI_ICON3" or the RT_ICON the wrong stuff? the ICON resource for my test is IDI_ICON3 and I'm sure its in the app I'm trying to open, so I'm confused as to why I'm seeing this.

Any suggestions, insight, comments are greatly appreciated

Thanks!

Dan

GeneralRe: Finding/Loading resources Pin
basementman6-May-03 5:24
basementman6-May-03 5:24 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 5:36
will13836-May-03 5:36 
GeneralRe: Finding/Loading resources Pin
David Crow6-May-03 6:02
David Crow6-May-03 6:02 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 6:47
will13836-May-03 6:47 

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.