Click to See Complete Forum and Search --> : Please help me!!


Donghyun Seo
May 27th, 1999, 09:14 PM
How can i use external dll function?

Here is my problem
prototype of this function in external dll file.

--> extern void pascal DoBeginStart(char *src);

How can i use this function in visual
Is that possible ?

this is Delphi code..
var
Filefile : String;
begin
DoBeginStart(PChar(Filefile));
end;

my e-mail address :
venus98@netian.com

Thanks for your help.

*^^*

Ravi Kiran
May 27th, 1999, 09:54 PM
Declare it as follows: (Add private, if you are declaring in a Forms code)

Declare sub DoBeginStart lib "YourDLLName.dll" _
(byval lpszSrcStr as string)



and put the dll in the applications directory.

Using it as
...
Call DoBeginStart(somestring)
...
..Should work!

Ravi