text/window general
throw exception across DLL boundary
cobaltic5
2009. 8. 3. 09:26
아래 글은 msdn Q and A 의 내용 발취이다.
You really should avoid throwing exceptions across a DLL boundary. Doing so creates all sorts of issues. You need to make sure that the DLL is compiled using exactly the same C++ compiler version and you need to ensure the same runtime library is used for both client and DLL.
Moreover, throwing exceptions across a DLL boundary is completely unnecessary. If you were on my programmer team I'd send you back the whiteboard to come up with a better means of returning conditional information.
Brian