How to use the ready made *.dll or *.ocx to be link to your project coz the include only cater *.lib and *.inc??.
Posted on 2005-08-11 20:58:39 by lodyl
LoadLibraryA
Posted on 2005-08-11 22:46:26 by evlncrn8
yea you can use LoadLibraryA for dll address and GetProcAddress to recieve the funnction address then push the arguments in the stack and call the proc address.this is all ;)
Posted on 2005-08-12 03:45:38 by soorena
Yes use LoadLibraryA.Look in your masm folder and go into the examples there
is 2 good examples there.

Posted on 2005-08-12 04:07:18 by Immortal_One
Hi lodyl,

Welcome to the forum.

It's easier to call external functions with prototypes.
Posted on 2005-08-12 05:07:12 by Vortex
If I dont made mistake pushing the stack should be reversed.

Example Test proto X:dword,:dword,Y:dword

You have to do it

push Y
push X
Call Test
Posted on 2005-08-12 22:33:41 by realvampire

How to use the ready made *.dll or *.ocx to be link to your project coz the include only cater *.lib and *.inc??.
This took me 2 sec to code enjoy! 8)
Attachments:
Posted on 2005-08-13 06:25:21 by Immortal_One
HEY !
dont you forget something ?
ocx are activeX controls, how could you use this like DLL ???

OCX = OLE Custom Control
Posted on 2005-08-13 06:47:27 by Criminal2

HEY !
dont you forget something ?
ocx are activeX controls, how could you use this like DLL ???

OCX = OLE Custom Control

Src code is just to call a DLL and function not ocx 8)
Posted on 2005-08-13 06:54:52 by Immortal_One