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

Questions about wxWidgets running on MS.NET, mono or Portable.NET ? Ask it here !
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)

Postby james.chengguangwang » Wed Aug 02, 2006 7:22 am

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:

Postby Peer Sommerlund » Tue Aug 08, 2006 7:42 am

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

Postby james.chengguangwang » Tue Aug 08, 2006 9:18 am

Please turn to the following URL:

http://forums.wxwidgets.org/viewtopic.php?t=9500&highlight=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
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

  [SOLVED]

Postby upCASE » Tue Aug 08, 2006 9:29 am

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

Postby james.chengguangwang » Tue Aug 08, 2006 9:43 am

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


Return to “wx.NET”

Who is online

Users browsing this forum: No registered users and 1 guest