Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / I don't manage to use the pointers with the DLLs

Author
Message
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 23rd Jun 2006 14:43
In one of my codes which uses User32APIs, I need to transmit more
than 9 parameters to the DLL, what is apparently feasible with the
memblocks and the types of datas.

I started to test on a simple function of the DLL, ShowWindow,
which contains only two parameters, but, that doesn't work.



Can somebody say me what's wrong with my code, please ?

RPG Engine and Odyssée : http://modsoftware.ifrance.com
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 23rd Jun 2006 23:47
The first line works as I expected.

The second line doesn't - also as I expected. The DLL is expecting two parameters, not one, and doesn't know that the value you are passing is a pointer to the values you want it to use.

The third line I wasn't sure about. Lee did add the ability to pass a typed variable to CALL DLL in the past, but I've never used it or seen it working. Your code is what I would expect to see though.

Maybe you should raise it as a bug in the DBPro bug forum.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Mod
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: France
Posted: 24th Jun 2006 10:11
I've understood something...I haven't used the good call dll function...

With call dll x(), the command works when I use memblocks, but there is still a problem with types :



RPG Engine and Odyssée : http://modsoftware.ifrance.com

Login to post a reply

Server time is: 2024-11-22 06:27:48
Your offset time is: 2024-11-22 06:27:48