Click here to Skip to main content
15,916,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: regarding using a class as a member of another class. Pin
User 58385219-Oct-05 15:34
User 58385219-Oct-05 15:34 
QuestionMaking a program core dump in Windows Pin
Andrei B19-Oct-05 10:14
Andrei B19-Oct-05 10:14 
AnswerRe: Making a program core dump in Windows Pin
Shog919-Oct-05 10:53
sitebuilderShog919-Oct-05 10:53 
QuestionError code 0 while sending on socket Pin
FASTian19-Oct-05 9:31
FASTian19-Oct-05 9:31 
QuestionRe: Error code 0 while sending on socket Pin
David Crow19-Oct-05 10:08
David Crow19-Oct-05 10:08 
AnswerRe: Error code 0 while sending on socket Pin
FASTian19-Oct-05 19:58
FASTian19-Oct-05 19:58 
AnswerRe: Error code 0 while sending on socket Pin
User 58385219-Oct-05 21:11
User 58385219-Oct-05 21:11 
QuestionMFC Dialog in Static Library Pin
clintsinger19-Oct-05 8:39
clintsinger19-Oct-05 8:39 
Hi,

I have a MFC dialog that I want to be in a static library. When it is in the static library and I call DoModal on it, the FindResource comes back with 0.

<br />
if (m_lpszTemplateName != NULL)<br />
{<br />
  hInst = AfxFindResourceHandle(m_lpszTemplateName, RT_DIALOG); // Works<br />
  HRSRC hResource = ::FindResource(hInst, m_lpszTemplateName, RT_DIALOG); // Fails<br />
  hDialogTemplate = LoadResource(hInst, hResource); // Obviously fails...<br />
}<br />


Is it possible to have a dialog defined in static library with MFC support? I should point out that made sure that all the resource identifiers are out of the range of all other identifiers in the program (ie, 5000+)



Sincerly,
Clint Singer
AnswerRe: MFC Dialog in Static Library Pin
Shog919-Oct-05 11:43
sitebuilderShog919-Oct-05 11:43 
GeneralRe: MFC Dialog in Static Library Pin
clintsinger19-Oct-05 14:06
clintsinger19-Oct-05 14:06 
QuestionHow to set the text of a CEdit to include a newline? Pin
Atom19-Oct-05 8:15
Atom19-Oct-05 8:15 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 9:10
David Crow19-Oct-05 9:10 
AnswerRe: How to set the text of a CEdit to include a newline? Pin
Ghasrfakhri19-Oct-05 9:15
Ghasrfakhri19-Oct-05 9:15 
GeneralRe: How to set the text of a CEdit to include a newline? Pin
David Crow19-Oct-05 10:06
David Crow19-Oct-05 10:06 
QuestionPreventing the resizing of a window Pin
Dilpo19-Oct-05 7:13
Dilpo19-Oct-05 7:13 
AnswerRe: Preventing the resizing of a window Pin
Maximilien19-Oct-05 7:34
Maximilien19-Oct-05 7:34 
GeneralRe: Preventing the resizing of a window Pin
Dilpo19-Oct-05 7:36
Dilpo19-Oct-05 7:36 
QuestionTransparent temporaries..? Pin
Bob Stanneveld19-Oct-05 7:07
Bob Stanneveld19-Oct-05 7:07 
AnswerRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 9:08
BadKarma19-Oct-05 9:08 
GeneralRe: Transparent temporaries..? Pin
Bob Stanneveld19-Oct-05 10:11
Bob Stanneveld19-Oct-05 10:11 
GeneralRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 20:55
BadKarma19-Oct-05 20:55 
GeneralRe: Transparent temporaries..? Pin
Bob Stanneveld20-Oct-05 0:56
Bob Stanneveld20-Oct-05 0:56 
AnswerRe: Transparent temporaries..? Pin
BadKarma19-Oct-05 23:00
BadKarma19-Oct-05 23:00 
Questionhow to use a class to be a utility class of another class? Pin
knightz10119-Oct-05 6:29
knightz10119-Oct-05 6:29 
AnswerRe: how to use a class to be a utility class of another class? Pin
Maximilien19-Oct-05 6:50
Maximilien19-Oct-05 6:50 

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.