Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCToolBar on a MFC Dialog Pin
sweep12311-Oct-04 23:04
sweep12311-Oct-04 23:04 
Questionhow to use enumfonts? Pin
Lido Paul11-Oct-04 22:54
Lido Paul11-Oct-04 22:54 
AnswerRe: how to use enumfonts? Pin
David Crow12-Oct-04 6:57
David Crow12-Oct-04 6:57 
Generalchar * & char [] Pin
sarath_babu11-Oct-04 22:52
sarath_babu11-Oct-04 22:52 
GeneralRe: char * & char [] Pin
Bob Stanneveld11-Oct-04 23:33
Bob Stanneveld11-Oct-04 23:33 
GeneralRe: char * & char [] Pin
rrrado11-Oct-04 23:41
rrrado11-Oct-04 23:41 
GeneralRe: char * & char [] Pin
rrrado11-Oct-04 23:35
rrrado11-Oct-04 23:35 
Generalnon-modal dialog in dll Pin
Frank Conrad11-Oct-04 21:47
Frank Conrad11-Oct-04 21:47 
hi,
i have an application wich load a dll:

typedef void (__cdecl DRDNDLL)(int);

void CProjectDoc::OnTest() {
CString str = "DrDnDll.dll";
HMODULE hmodule = ::LoadLibrary(str);
if(hmodule != NULL) {
DRDNDLL* dllFunc=(DRDNDLL*)GetProcAddress(hmodule,"Test");
if (dllFunc != NULL)
dllFunc (1);
else
AfxMessageBox("Error-GetProcAddress");
else {
CString dllstr = "Error-LoadLibrary: Can't find "+str;
AfxMessageBox(dllstr);
}
FreeLibrary(hmodule);
}

in the dll i have a dialog which is non-modal:

extern "C" __declspec(dllexport) __cdecl Test (int tst) {
Dlg_Test* dlg;
dlg->Create();
}

but the dialog calling crashed.

can anybody help me?
thanks frank



GeneralRe: non-modal dialog in dll Pin
Vikrant for VC++11-Oct-04 22:19
Vikrant for VC++11-Oct-04 22:19 
GeneralRe: non-modal dialog in dll Pin
Frank Conrad11-Oct-04 22:32
Frank Conrad11-Oct-04 22:32 
GeneralRe: non-modal dialog in dll Pin
Nathan Holt at EMOM12-Oct-04 5:08
Nathan Holt at EMOM12-Oct-04 5:08 
GeneralRe: non-modal dialog in dll Pin
Phil J Pearson11-Oct-04 22:31
Phil J Pearson11-Oct-04 22:31 
GeneralRe: non-modal dialog in dll Pin
Adi Narayana11-Oct-04 23:28
Adi Narayana11-Oct-04 23:28 
Generalvbcrlf function Pin
vc-programmer-11-Oct-04 21:29
vc-programmer-11-Oct-04 21:29 
GeneralRe: vbcrlf function Pin
Sujan Christo11-Oct-04 23:41
Sujan Christo11-Oct-04 23:41 
GeneralRe: vbcrlf function Pin
BlackDice12-Oct-04 3:07
BlackDice12-Oct-04 3:07 
QuestionHow to compile and run the RTC Client API v1.2 samples Pin
pubududilena11-Oct-04 21:08
pubududilena11-Oct-04 21:08 
GeneralMachine Cycle Pin
Victor Arokiam11-Oct-04 20:20
Victor Arokiam11-Oct-04 20:20 
GeneralRe: Machine Cycle Pin
Jim Crafton12-Oct-04 5:13
Jim Crafton12-Oct-04 5:13 
GeneralRe: Machine Cycle Pin
Anonymous13-Oct-04 18:31
Anonymous13-Oct-04 18:31 
GeneralOnVScroll() vs OnMouseWheel() Pin
Jesper Knudsen11-Oct-04 20:15
Jesper Knudsen11-Oct-04 20:15 
Generalphp upload to file Pin
Spiritofamerica11-Oct-04 19:39
Spiritofamerica11-Oct-04 19:39 
GeneralRead a Text Pin
picasso211-Oct-04 19:19
picasso211-Oct-04 19:19 
GeneralRe: Read a Text Pin
Sujan Christo11-Oct-04 19:50
Sujan Christo11-Oct-04 19:50 
GeneralRe: Read a Text Pin
RChin11-Oct-04 23:01
RChin11-Oct-04 23:01 

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.