CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    2

    Please help me!!

    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 :
    [email protected]

    Thanks for your help.

    *^^*

  2. #2
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Please help me!!

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured