Click here to Skip to main content
15,917,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDLL as an extra process Pin
AnTri2-Jun-03 21:51
AnTri2-Jun-03 21:51 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 0:02
Anna-Jayne Metcalfe3-Jun-03 0:02 
GeneralRe: DLL as an extra process Pin
AnTri3-Jun-03 0:54
AnTri3-Jun-03 0:54 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 1:10
Anna-Jayne Metcalfe3-Jun-03 1:10 
GeneralRe: DLL as an extra process Pin
AnTri3-Jun-03 1:17
AnTri3-Jun-03 1:17 
GeneralRe: DLL as an extra process Pin
Anna-Jayne Metcalfe3-Jun-03 1:46
Anna-Jayne Metcalfe3-Jun-03 1:46 
GeneralRe: DLL as an extra process Pin
Neville Franks3-Jun-03 2:16
Neville Franks3-Jun-03 2:16 
GeneralRe: DLL as an extra process Pin
Chris Richardson3-Jun-03 6:01
Chris Richardson3-Jun-03 6:01 
If you want to catch exceptions coming out of the DLL function, you can do the following. However, if the DLL function is "extern C", you'll have to make sure you specify the /GX compiler option for your project.

// Say your DLL function is called MyUnsafeDLLFunction, and we will call it here:

try
{
   MyUnsafeDLLFunction();
}
catch( ... )
{
   // Uh oh!  The DLL function threw some sort of exception!  Not sure how you want to handle it.
   AfxMessageBox( _T("The DLL function crashed :(") );
}


This should handle all exceptions coming from the DLL function.

Chris Richardson
Terrain Software
QuestionHow can I load and render 3dstudio files in visual c++? Pin
Mohsen Jamali2-Jun-03 21:46
Mohsen Jamali2-Jun-03 21:46 
AnswerRe: How can I load and render 3dstudio files in visual c++? Pin
Zizilamoroso2-Jun-03 23:32
Zizilamoroso2-Jun-03 23:32 
GeneralRe: How can I load and render 3dstudio files in visual c++? Pin
Anonymous6-Jun-03 19:51
Anonymous6-Jun-03 19:51 
GeneralRe: How can I load and render 3dstudio files in visual c++? Pin
Zizilamoroso8-Jun-03 6:19
Zizilamoroso8-Jun-03 6:19 
Generalcalling OpenDocumentFile from another thread Pin
Brian van der Beek2-Jun-03 21:22
Brian van der Beek2-Jun-03 21:22 
GeneralRe: calling OpenDocumentFile from another thread Pin
Neville Franks2-Jun-03 23:33
Neville Franks2-Jun-03 23:33 
GeneralRe: calling OpenDocumentFile from another thread Pin
Brian van der Beek3-Jun-03 0:37
Brian van der Beek3-Jun-03 0:37 
GeneralRe: calling OpenDocumentFile from another thread Pin
Neville Franks3-Jun-03 2:22
Neville Franks3-Jun-03 2:22 
QuestionHow to convert string to hex Pin
FlyingDancer2-Jun-03 20:43
FlyingDancer2-Jun-03 20:43 
AnswerRe: How to convert string to hex Pin
Dominik Reichl2-Jun-03 20:48
Dominik Reichl2-Jun-03 20:48 
GeneralRe: How to convert string to hex Pin
FlyingDancer2-Jun-03 20:59
FlyingDancer2-Jun-03 20:59 
GeneralRe: How to convert string to hex Pin
Dominik Reichl2-Jun-03 21:14
Dominik Reichl2-Jun-03 21:14 
GeneralRe: How to convert string to hex Pin
FlyingDancer3-Jun-03 14:23
FlyingDancer3-Jun-03 14:23 
GeneralRe: How to convert string to hex Pin
Dominik Reichl3-Jun-03 21:27
Dominik Reichl3-Jun-03 21:27 
GeneralRe: How to convert string to hex Pin
FlyingDancer3-Jun-03 22:22
FlyingDancer3-Jun-03 22:22 
GeneralRe: How to convert string to hex Pin
Dominik Reichl3-Jun-03 22:32
Dominik Reichl3-Jun-03 22:32 
GeneralRe: How to convert string to hex Pin
FlyingDancer3-Jun-03 23:06
FlyingDancer3-Jun-03 23:06 

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.