Topic: DLL


Author: David.Brabant@csl.sni.be (David Brabant)
Date: 1995/04/12
Raw View
>I was able to generate DLL using Visual C++. but I am unable to use it
>(call it) in Visual Basic.  What are the basic guidelines to be taken
>in generating/calling functions in DLL.
> --Ravi

1. This question should be posted in the comp.os.ms-windows.programmer.misc
   news group.
2. put your header declarations in an extern "C" block. The most probable
   cause is that you can't access your functions because of the C++ name
   mangling.
3. If you pass strings to your DLL, be sure that the corresponding
   parameters are declared "by val" in the VB program.

David

     +---------------------------+-----------------------------------+
     | David Brabant,            | E-MAIL : David.Brabant@csl.sni.be |
     | SIEMENS-NIXDORF,          | Phone  : +32 41 201 609           |
     | Centre Software de Liege, | FAX    : +32 41 201 642           |
     | 2, rue des Fories,        +-----------------------------------+
     | 4020 Liege, Belgium.      |   http://www.csl.sni.be/~david    |
     +---------------------------+-----------------------------------+
     Let's become e-vangelists :-)





Author: thalasil@eemips.tamu.edu (T. Pravin Chander)
Date: 1995/04/09
Raw View
Hi

I was able to generate DLL using Visual C++. but I am unable to use it
(call it) in Visual Basic.  What are the basic guidelines to be taken
in generating/calling functions in DLL.

 --Ravi

Please send replies to thalasil@eemips.tamu.edu