[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Dll C function call in Delphi.

Posted on 2002-07-26
3
Medium Priority
?
166 Views
Last Modified: 2010-04-04
I have a function written in c and exported in a dll made by microsoft visual C++ 6.0 like this:

#define BIPSRESLV_API __declspec(dllexport)

BIPSRESLV_API int bips_resolve_once
          ( char * ldapHost     /* The Ldap server host name */
          , const char * node     /*The bitbus node name to be searched for */
          , char * cn          /*Returns the real cn found in the database (useful when using wildcards)*/
          , char * bipsHost     /*Returns the bips server host name */
          , int * bipsPort     /*Returns the bips server port number */
          , uint8_t * nodeAddress     /*Returns the bitbus node address (0-254) */
          );

How can I call this function from Delphi 6?
0
Comment
Question by:barzangy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 2000 total points
ID: 7179702
function bips_resolve_once
         (ldapHost: PChar;     // The Ldap server host name
          node: PChar;         // The bitbus node name to be searched for
          cn: PChar;           // Returns the real cn found in the database (useful when using wildcards)
          bipsHost: PChar;     // Returns the bips server host name
          var bipsPort: Integer;     // Returns the bips server port number
          var nodeAddress: Byte     // Returns the bitbus node address (0-254)
         ): Integer; stdccall;

implementation

function bips_resolve_once; external 'DLLName.DLL' name 'bips_resolve_once';
0
 
LVL 11

Expert Comment

by:robert_marquardt
ID: 7179704
Oops, stdcall not stdccall. A typo.
0
 

Expert Comment

by:CleanupPing
ID: 9342990
barzangy:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question