Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncreation of radio buttons using c++ Pin
shailaja01623-Jul-07 3:03
shailaja01623-Jul-07 3:03 
AnswerRe: creation of radio buttons using c++ Pin
David Crow23-Jul-07 3:36
David Crow23-Jul-07 3:36 
AnswerRe: creation of radio buttons using c++ Pin
Nelek23-Jul-07 4:35
protectorNelek23-Jul-07 4:35 
AnswerRe: creation of radio buttons using c++ Pin
Hamid_RT31-Jul-07 20:00
Hamid_RT31-Jul-07 20:00 
Questionwriting lexer for our own language Pin
mirraa23-Jul-07 1:21
mirraa23-Jul-07 1:21 
AnswerRe: writing lexer for our own language Pin
Rage23-Jul-07 1:25
professionalRage23-Jul-07 1:25 
QuestionDifferent language Pin
Suneet.0323-Jul-07 1:19
Suneet.0323-Jul-07 1:19 
QuestionRe: Different language Pin
David Crow23-Jul-07 2:34
David Crow23-Jul-07 2:34 
AnswerRe: Different language Pin
Sameerkumar Namdeo23-Jul-07 3:19
Sameerkumar Namdeo23-Jul-07 3:19 
AnswerRe: Different language Pin
Hamid_RT31-Jul-07 20:02
Hamid_RT31-Jul-07 20:02 
QuestionWord.Application Pin
vicky0000023-Jul-07 1:09
vicky0000023-Jul-07 1:09 
AnswerRe: Word.Application Pin
Rage23-Jul-07 1:26
professionalRage23-Jul-07 1:26 
QuestionGame on Win32? Is it possible? Pin
Lord Kixdemp23-Jul-07 0:24
Lord Kixdemp23-Jul-07 0:24 
AnswerRe: Game on Win32? Is it possible? Pin
CPallini23-Jul-07 0:57
mveCPallini23-Jul-07 0:57 
GeneralRe: Game on Win32? Is it possible? Pin
Lord Kixdemp23-Jul-07 1:14
Lord Kixdemp23-Jul-07 1:14 
AnswerRe: Game on Win32? Is it possible? Pin
Rage23-Jul-07 1:28
professionalRage23-Jul-07 1:28 
GeneralRe: Game on Win32? Is it possible? Pin
CPallini23-Jul-07 2:13
mveCPallini23-Jul-07 2:13 
GeneralRe: Game on Win32? Is it possible? Pin
Rage23-Jul-07 2:24
professionalRage23-Jul-07 2:24 
GeneralRe: Game on Win32? Is it possible? Pin
CPallini23-Jul-07 2:27
mveCPallini23-Jul-07 2:27 
GeneralRe: Game on Win32? Is it possible? Pin
Rage23-Jul-07 4:52
professionalRage23-Jul-07 4:52 
GeneralRe: Game on Win32? Is it possible? Pin
CPallini23-Jul-07 5:08
mveCPallini23-Jul-07 5:08 
GeneralRe: Game on Win32? Is it possible? Pin
Lord Kixdemp23-Jul-07 2:24
Lord Kixdemp23-Jul-07 2:24 
QuestionWhat can be an alternative to AFX_MANAGE_STATE macro? Pin
Sameerkumar Namdeo23-Jul-07 0:19
Sameerkumar Namdeo23-Jul-07 0:19 
Currently I have constucted a DLL in VC++ 6.0 in which does not uses MFC.
I have chosen Win32 Dynamic Link Library template from new project dialog box.
Now, only one function is exported from the DLL. In that function I am bringing up an Dialog Box using DialogBoxParam() function. Dialog resource is stored in the DLL itself.
DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_DOCONVERTDIALOGBOX), <br />
			  NULL, DoConvert_DlgProc, (LPARAM)(&pDlg));


I have also added a dialog box with ID 'DOCONVERTDIALOGBOX' in the resource of this DLL project.
* DialogBoxParam() returns -1.
* GetLastError() returns 1814 (ERROR_RESOURCE_NAME_NOT_FOUND)

I think if I add AFX_MANAGE_STATE(AfxGetStaticModuleState());
then it will take the resource from DLL. But AFX_MANAGE_STATE is MFC related.
And I am not using any MFC related function nor my DLL project is using MFC.
So how can I load the dialog resource from DLL.

Thanks in advance.
AnswerRe: What can be an alternative to AFX_MANAGE_STATE macro? Pin
Nibu babu thomas23-Jul-07 0:27
Nibu babu thomas23-Jul-07 0:27 
GeneralRe: What can be an alternative to AFX_MANAGE_STATE macro? Pin
Sameerkumar Namdeo23-Jul-07 1:37
Sameerkumar Namdeo23-Jul-07 1:37 

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.