Calling a dll

  • From: Darko Pogačić <darko.pogacic@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 4 Oct 2010 00:44:33 +0200

Hy there!

How I am using the Visual Basic 6, I can call only a dlls which contains
DllRegisterServer, but when I want to call a dll written in Visual C++, or
another language, I have to know a dll functions, parameters which a
function requires, and a values which a function returns, ordinal numbers,
etc, similar to the windows api functions.

When using the windows api functions, it is not problem, because I have
installed Windows api viewer, tool for copying the api declarations to vb
code.

But, how to call a dll which is not in the list of the API?

I am using "dumpbin", tool which comes with Visual C++ 6, but I cannot see
what types of parameters function requires, and what types of values
function returns.

The sintax for "dumpbin" is:

Dumpbin /exports eci.dll > c:\eci.txt

By this, I have complete exports from a dll, but I can see only function
names, such as eciSpeakText, eciSetVoiceParam, eciSetVoiceName, etc, but I
cannot see what type of parameters function requires, to convert them into a
vb code, similar to the:

 

Public Declare Function eciSpeakText Lib "Eloquence\ECI.DLL" (ByVal lpszText
As String, ByVal lAnotation As Long) As Long

Does anyone know any dumping tool for this problem?

 

Other related posts:

  • » Calling a dll - Darko Pogačić