Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
I forgot to mention....

if you choose to implement tooltips like that sample code, the strings you use can be loaded
from a stringtable resource, and the stringtable can be in your resource DLL.
The TOOLTIPTEXT structs have a hinst member to specify the HINSTANCE of the DLL.

If you choose to use stringtable resources for the strings, then lpszText should be set to the
ID of the string resource and the hinst member set to the instance of the module (EXE or DLL)
that contains the resource, something like:

// get string 32777 from this EXE's resources
pTTTW->hinst = ::GetModuleHandle(0);
pTTTW->lpszText = (LPWSTR)32777;

Mark


"I'm the Dude. So that's what you call me. You know, that or, uh, His Dudeness, or uh, Duder, or El Duderino if you're not into the whole brevity thing." The Big Lebowski

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 
AnswerRe: Question About Serial Port in Visual C++ 2005 Pin
SimplCodr22-Jun-07 10:15
SimplCodr22-Jun-07 10:15 
QuestionPrint from buffer Pin
dellthinker22-Jun-07 8:15
dellthinker22-Jun-07 8:15 
AnswerRe: Print from buffer Pin
David Crow22-Jun-07 8:43
David Crow22-Jun-07 8:43 
GeneralRe: Print from buffer Pin
dellthinker22-Jun-07 9:07
dellthinker22-Jun-07 9:07 
GeneralRe: Print from buffer Pin
David Crow22-Jun-07 10:17
David Crow22-Jun-07 10:17 
Questionin hash tables Pin
mido++22-Jun-07 8:06
mido++22-Jun-07 8:06 
QuestionBase and derived classes Pin
ForNow22-Jun-07 6:32
ForNow22-Jun-07 6:32 
AnswerRe: Base and derived classes Pin
Mark Salsbery22-Jun-07 7:34
Mark Salsbery22-Jun-07 7:34 
AnswerRe: Base and derived classes Pin
David Crow22-Jun-07 8:56
David Crow22-Jun-07 8:56 
GeneralRe: Base and derived classes Pin
ForNow22-Jun-07 12:13
ForNow22-Jun-07 12:13 
GeneralRe: Base and derived classes Pin
David Crow30-Jun-07 8:26
David Crow30-Jun-07 8:26 
GeneralRe: Base and derived classes Pin
ForNow30-Jun-07 15:47
ForNow30-Jun-07 15:47 
QuestionDoes a CListCtrl accepts a member variable name in edit mode? Pin
Arris7422-Jun-07 5:37
Arris7422-Jun-07 5:37 
AnswerRe: Does a CListCtrl accepts a member variable name in edit mode? Pin
Mark Salsbery22-Jun-07 5:44
Mark Salsbery22-Jun-07 5:44 

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.