Re: ctypes.windll.kernel32.GetProcAddress returns address of 0

Jason Marshall <[email protected]> Sun, 22 Jun 2014 06:25:10 -0700
Newsgroups gmane.comp.python.ctypes
Message-ID <[email protected]>
I found the DirectX type library dx7vb.dll in the DirectX 7 SDK. 
(Also, dx7vb.dll from the DirectX 8 SDK can be downloaded here: http://www.thevbzone.com/d_DLL.htm ) I used comtypes' GetModule to generate the interface code. I haven't yet experimented further though.

Jason


________________________________
 From: RayS <[email protected]>
To: Thomas Heller <[email protected]>; [email protected] 
Sent: Monday, June 16, 2014 8:48 AM
Subject: Re: [ctypes-users] ctypes.windll.kernel32.GetProcAddress returns address of 0
 


BTW, there is a complete lack of DirectDraw
examples out there, especially using Python. If someone has links to such
I'd appreciate it, especially those for 3D surfaces. (We're slowly trying
to build an accelerated wxPyPlot-like widget that uses OpenGL/DirectDraw
- and I mean slowly...)

- Ray 

At 12:17 AM 6/16/2014, Thomas Heller wrote:

Am 14.06.2014 14:41, schrieb
Jason Marshall:
>> Hello ctypes-users,
>>
>> I am a novice at ctypes and C. I am trying to get the addresses of
some
>> methods in ddraw.dll (obsolete, I know) so that I may use them
with
>> pygame. When I run the script below to get the methods'
addresses,
>> ctypes.windll.kernel32.GetProcAddress gives me addresses of 0. Can
you
>> see something that I'm doing wrong?
>
>The Microsoft documentation is misleading; GetMonitorFrequeny and
>GetScanLine are not *functions* exposed by the directdraw library.
>Instead they are methods exposed of the IDirectDraw COM object.
>
>You cannot access this stuff with stock ctypes.  If you are
able
>to find a typelibary for directdraw then maybe you can do it with
>comtypes.
>
>Thomas
>
>
>------------------------------------------------------------------------------
>HPCC Systems Open Source Big Data Platform from LexisNexis Risk
Solutions
>Find What Matters Most in Your Big Data with HPCC Systems
>Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>Leverages Graph Analysis for Fast Processing & Easy Data
Exploration
>http://p.sf.net/sfu/hpccsystems
>_______________________________________________
>ctypes-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/ctypes-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

_______________________________________________
ctypes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ctypes-users