Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Finding/Loading resources Pin
will13836-May-03 7:21
will13836-May-03 7:21 
GeneralProblem regerding LineTo(..) Pin
summo6-May-03 3:21
summo6-May-03 3:21 
GeneralRe: Problem regerding LineTo(..) Pin
JensB6-May-03 4:42
JensB6-May-03 4:42 
GeneralRe: Problem regerding LineTo(..) Pin
John R. Shaw6-May-03 7:07
John R. Shaw6-May-03 7:07 
GeneralCFile %&% Pin
macmac386-May-03 2:50
macmac386-May-03 2:50 
GeneralRe: CFile %&% Pin
Mike Zinni6-May-03 3:15
Mike Zinni6-May-03 3:15 
GeneralRe: CFile %&% Pin
macmac386-May-03 3:24
macmac386-May-03 3:24 
GeneralRe: CFile %&% Pin
macmac386-May-03 3:54
macmac386-May-03 3:54 
GeneralRe: CFile %&% Pin
Mike Zinni6-May-03 4:10
Mike Zinni6-May-03 4:10 
GeneralRe: CFile %&% Pin
macmac386-May-03 4:45
macmac386-May-03 4:45 
GeneralRe: CFile %&% Pin
David Crow6-May-03 4:49
David Crow6-May-03 4:49 
GeneralRe: CFile %&% Pin
macmac387-May-03 3:56
macmac387-May-03 3:56 
GeneralRe: CFile %&% Pin
David Crow6-May-03 4:20
David Crow6-May-03 4:20 

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.