Extending Python on Win32, using a DLL... 
Author Message
 Extending Python on Win32, using a DLL...


>Strangely the _only_ way to get unmangled names is to list your
>function names in a def file.   Declare them as

> int __stdcall foo(void)
> int __stdcall bar(int p) ;

>Then you can just list them in the def file

> foo
> bar

Huh?  Assuming that you're talking about python extension modules
(as the subject seems to indicate), what you're saying is highly mis-

Either use a DEF file, or if you're only interested in exporting the
initialization module, use something like this:

#ifdef WIN32


Do *not* use __stdcall for this purpose.

Cheers /F


Thu, 10 May 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Extending Python on Win32, using a DLL...

2. ANN: Win32 Screensaver that uses Python (extending/embedding Python/C)

3. Extending Python with C++ singleton pattern using boost python lib

4. copy construktor problem by extending python with c++ using boost python lib

5. Extending Python on Win32 - incompatible types warning

6. Extending Python with C/C++ on a win32 platform

7. Extending python with a DLL

8. ANN: Automation Server DLL can by used by Ruby on Win32

9. Using Win32 DLLs with GNAT compiler

10. Python Windll - passing python lists to DLL function using Windll

11. Win32 DLL problem: Extension crashes when using FILE *

12. Creating a DLL using GNU g77 on Win32


Powered by phpBB® Forum Software