Need help on calling user DLL functions fromwxPython

Hi Mark,
The error I have encountered is as follows :
/************************************************************************/
PyCrust 0.9.3 - The Flakiest Python Shell
Sponsored by Orbtech - Your source for Python programming expertise.
Python 2.3.2 (#49, Oct 2 2003, 20:02:00) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import trial
trial.CreateObject()
100
trial.wrap_foo1()
'_207d2101_p_wxString'

/************************************************************************/

wrap_foo1() returns a wxString. Which is not displayed at the prompt.

I have been through the link you have mentioned.
The example they have given uses wxSwig. I have used Swig. Is it so that swig is unable to recognize wxWindows datatypes ?
Also if I am supposed to use wxSwig, are you aware from where this could be downloaded ?

Thanks,
Gauri

ยทยทยท

From: "Roach, Mark R." <mrroach@cimplify.net>
Reply-To: wxPython-users@lists.wxwindows.org
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Need help on calling user DLL functions fromwxPython
Date: Fri, 17 Oct 2003 08:32:24 -0500

On Fri, 2003-10-17 at 09:28, Gauri Deshpande wrote:
> Hi,
>
> Our project requirement is to support scripting facility such that the
> wxPython script file is able to call the functions from a DLL which is
> written in C++ using wxWindows.
>
> We are trying out some sample code to check for above feature. For this,
we
> have created a sample wxWindows dll which exports a function. Using SWIG
we
> are now able to call the DLL exported function from wxPython. But wxPython

> gives error if the exported function prototype uses wxWindows datatypes
like
> wxstring. We are not able to figure out the reason behind this error.

It would probably be helpful here to post the content of the error
message...

> Can someone help us on this? How can we return wxString to wxPython shell
> from a DLL exported function?

Have you looked at this page?:
http://wiki.wxpython.org/index.cgi/C_2b_2bExtensions

-Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

_________________________________________________________________
Buy now! Receive a gold coin on Dhan Teras. http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate prosperity!