Re: [ctypes-users] Calling a DLL from python like I would from VB
Brought to you by:
theller
From: Grzegorz A. H. <gha...@ra...> - 2007-04-12 09:29:08
|
Grzegorz Adam Hankiewicz wrote: > This is the problem. I rewrote the example to go through all functions > calling them expecting a string. So the "GetVersionDLL" alias #2 in > Visual Basic is function index 1003, which correctly returns the > expected string. > > Insane. And the other functions don't seem to be 'near' in the list, it > looks much more like random. This leads me to think whether VB is using > somewhere some extra info which tells it how to filter the correct > calls. But where does it come from? Finally I found the culprit: me. Looks like in my tests I wasn't loading the same version of the DLL which the final product would use. I made sure to remove the myriad of similar DLLs I had and then yes, the same aliases from VB work as expected. Sorry for the troubles, I'll go cry to my corner. -- Rastertech España S.A. Grzegorz Adam Hankiewicz /Jefe de Producto TeraVial/ C/ Perfumería 21. Nave I. Polígono industrial La Mina 28770 Colmenar Viejo. Madrid (España) Tel. +34 918 467 390 (Ext.18) *·* Fax +34 918 457 889 gha...@ra... *·* www.rastertech.es <http://www.rastertech.es/> |