Link to home
Start Free TrialLog in
Avatar of Jason
JasonFlag for Australia

asked on

Help linking unmanaged dll with application

i need help with linking unmanaged dll to my app.

also can i get a list of commands to call from the dll.

here are the directions given with the dll to implement

Included in this zip are some code examples including VB examples for older versions. The api is an unmanaged DLL which needs a bit of extra work to get working with .net environments. Below is a bit of info we send out if someone doesn't understand how to access unmanaged DLLs from .NET already.

It is broken into 2 different methods, the first links the MSDN knowledge base tutorials explaining it, and the second method is how to work directly with the engine at a socket level without using the formal API if you don't feel confident with consuming unmanged dlls.

---------------------------------------------------

1. Implement the existing unmanaged DLL into your project as described here on the msdn site.http://msdn.microsoft.com/en-us/library/26thfadc.aspx
This is the recommended way of communicating with the data engine.

------------------------

2. Implement direct socket based communication with the data engine.
This will allow you to communicate directly with the engine through a TCP socket connection without the need to include the cdbdapi.dll in your application.
Please Note: This method of access is not recommended as your code may not work with future versions of the data engine.

To implement this method you just need to open a tcp socket connection to 127.0.0.1 on port 479. This is the default IPC port but there is an option available in the engine which a client could change, so you probably should check the port number by reading line 5 of the cdbde.cfg file.

i can zip to files and email if needed
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jason

ASKER

Hi

Do you know of a vb.net article as my knowledge of c/c++ is limited.
the article is for all .net languages and not C/C++ the unmanaged dll was written using c/c++ and not C#/VB
Avatar of Jason

ASKER

Thks for your help