How to use a class which is built in the Dll (Create Object) Topic is solved

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
Post Reply
james.chengguangwang
Knows some wx things
Knows some wx things
Posts: 38
Joined: Wed Aug 02, 2006 4:59 am

How to use a class which is built in the Dll (Create Object)

Post by james.chengguangwang »

just like the subject! Thank you!
Peer Sommerlund
Knows some wx things
Knows some wx things
Posts: 43
Joined: Tue Jun 13, 2006 7:21 am
Location: Denmark
Contact:

Post by Peer Sommerlund »

Could you post 2 snippets of code:

a) a snippet of the code that creates the class in the DLL
b) a snippet of the code that declares the class in the DLL.
james.chengguangwang
Knows some wx things
Knows some wx things
Posts: 38
Joined: Wed Aug 02, 2006 4:59 am

Post by james.chengguangwang »

Please turn to the following URL:

http://forums.wxwidgets.org/viewtopic.p ... hlight=dll

And when I close the dialog, it has some problems at the line:

Code: Select all

FreeLibrary(hModule);  
And the messagebox display the following text:

Windows has triggered a breakpoint in EXE.exe.

This may be due to a corruption of the heap, and indicates a bug in EXE.exe or any of the DLLs it has loaded.

The output window may have more diagnostic information
I don't know why, could you help me of it ?
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
Please don't double post.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
james.chengguangwang
Knows some wx things
Knows some wx things
Posts: 38
Joined: Wed Aug 02, 2006 4:59 am

Post by james.chengguangwang »

Ok, I won't do it in the future,thanks for your reminding!
Post Reply