Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to dump NT hashes from local machine? Pin
sfirouza23-Jan-05 1:25
sfirouza23-Jan-05 1:25 
GeneralProblem in calling lapack in Matlab MEX program Pin
tttyip22-Jan-05 23:29
tttyip22-Jan-05 23:29 
GeneralOnHotKey Problem!!! Pin
FreewareFire22-Jan-05 21:56
FreewareFire22-Jan-05 21:56 
GeneralDebug mode in COM ... Pin
omkar joshi22-Jan-05 21:41
omkar joshi22-Jan-05 21:41 
GeneralRe: Debug mode in COM ... Pin
Tim Deveaux23-Jan-05 3:18
Tim Deveaux23-Jan-05 3:18 
Generalencryption...pls help! Pin
mytz22-Jan-05 19:19
mytz22-Jan-05 19:19 
GeneralCrypto++ help Pin
Neville Franks22-Jan-05 16:51
Neville Franks22-Jan-05 16:51 
GeneralResource loading fails in a static library (.lib) Pin
Mr. Accident22-Jan-05 16:45
Mr. Accident22-Jan-05 16:45 
Hey all.

I had a DLL project (using MFC) that I recently decided to convert to a statically-linked library. Everything seemed to go smoothly, but when I try to use my library in a test application, all the resource-loading calls in the library fail.

That is to say, the library project has a resource file containing some resources used in the library; a string table, a couple of bitmaps, a dialog box or two, etc. Elsewhere in the library code, there's a routine that, say, wants to get a string from the string table. So I have something like this:

CString str;<br />
VERIFY(str.LoadString(IDS_STRINGID);


When I run an application that uses this part of the library, the LoadString() function fails (returns 0). The same seems to apply for dialog boxes, bitmaps, and all other resources. A quick debug trace revealed that it was passing the correct numeric value for the resource ID; it just seemingly could not load the resource.

I've never tried making a static library containing resources before, so I really have no idea what needs to be done. I'm assuming there is something in particular that I need to do so that the resources can be loaded correctly from the library. Does anyone know what I could do in this situation? Any help would be greatly appreciated.
GeneralRe: Resource loading fails in a static library (.lib) Pin
rschuler3-Jun-05 6:46
rschuler3-Jun-05 6:46 
GeneralRe: Resource loading fails in a static library (.lib) Pin
Mr. Accident3-Jun-05 8:47
Mr. Accident3-Jun-05 8:47 
GeneralInno Setup Pin
Anonymous22-Jan-05 16:19
Anonymous22-Jan-05 16:19 
GeneralRe: Inno Setup Pin
Gary R. Wheeler23-Jan-05 3:59
Gary R. Wheeler23-Jan-05 3:59 
GeneralRe: Inno Setup Pin
Anonymous24-Jan-05 4:17
Anonymous24-Jan-05 4:17 
GeneralRe: Inno Setup Pin
Gary R. Wheeler25-Jan-05 12:51
Gary R. Wheeler25-Jan-05 12:51 
Generalpointer range question Pin
nm_11422-Jan-05 15:47
nm_11422-Jan-05 15:47 
GeneralControlling memory leaks Pin
stefane_filion22-Jan-05 9:53
stefane_filion22-Jan-05 9:53 
Generalconst type; Pin
Bo Hunter22-Jan-05 8:15
Bo Hunter22-Jan-05 8:15 
GeneralRe: const type; Pin
Maximilien22-Jan-05 8:48
Maximilien22-Jan-05 8:48 
GeneralRe: const type; Pin
Joaquín M López Muñoz23-Jan-05 4:50
Joaquín M López Muñoz23-Jan-05 4:50 
QuestionHow to idntification device manufacture of pocket pc? Pin
arash47122-Jan-05 7:24
arash47122-Jan-05 7:24 
GeneralSend cookie in HTTP request Pin
dorutzu22-Jan-05 6:32
dorutzu22-Jan-05 6:32 
Questionremove installed programs programmatically? Pin
LukeV22-Jan-05 6:11
LukeV22-Jan-05 6:11 
AnswerRe: remove installed programs programmatically? Pin
ThatsAlok23-Jan-05 18:13
ThatsAlok23-Jan-05 18:13 
GeneralWMA Decoder Source Code Pin
aRtsZ22-Jan-05 5:37
aRtsZ22-Jan-05 5:37 
QuestionPut different data types in binary form in a char array? Pin
capriole22-Jan-05 5:22
capriole22-Jan-05 5:22 

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.