Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to share a class between different projects in VC++? Pin
Skywalker200825-Jun-07 2:50
Skywalker200825-Jun-07 2:50 
QuestionHow to load a BMP from a resource dll Pin
sstainba22-Jun-07 10:07
sstainba22-Jun-07 10:07 
AnswerRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 10:25
Mark Salsbery22-Jun-07 10:25 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 11:22
sstainba22-Jun-07 11:22 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 12:26
Mark Salsbery22-Jun-07 12:26 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 12:32
sstainba22-Jun-07 12:32 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 12:46
Mark Salsbery22-Jun-07 12:46 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 12:51
sstainba22-Jun-07 12:51 
Right... see, I can open the dll using either LoadLibrary or AfxLoadLibrary... that part works fine. I just can't get a handle to the bitmap in the dll. I know the string name of it, but the int isn't defined in the project. So I tried LoadImage(instance, _T("IDB_BITMAP1"),...) but didn't get it. When I try FindResource with that method, it doesn't find the bitmap either.

I got it to work by including the header file from the dll project in my current project. But I don't want to rely on that in case I want to change the images later by just swapping another dll.
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 12:59
Mark Salsbery22-Jun-07 12:59 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 13:11
sstainba22-Jun-07 13:11 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 13:20
Mark Salsbery22-Jun-07 13:20 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 13:22
sstainba22-Jun-07 13:22 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 13:31
Mark Salsbery22-Jun-07 13:31 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 13:30
Mark Salsbery22-Jun-07 13:30 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 13:40
sstainba22-Jun-07 13:40 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 13:54
Mark Salsbery22-Jun-07 13:54 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 14:13
sstainba22-Jun-07 14:13 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 14:23
Mark Salsbery22-Jun-07 14:23 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery22-Jun-07 14:29
Mark Salsbery22-Jun-07 14:29 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba22-Jun-07 15:05
sstainba22-Jun-07 15:05 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 7:30
Mark Salsbery23-Jun-07 7:30 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 7:47
Mark Salsbery23-Jun-07 7:47 
GeneralRe: How to load a BMP from a resource dll Pin
sstainba23-Jun-07 11:27
sstainba23-Jun-07 11:27 
GeneralRe: How to load a BMP from a resource dll Pin
Mark Salsbery23-Jun-07 13:51
Mark Salsbery23-Jun-07 13:51 
QuestionQuestion About Serial Port in Visual C++ 2005 Pin
Jason Daniel Cohn22-Jun-07 9:35
Jason Daniel Cohn22-Jun-07 9:35 

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.