Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 172
  • Last Modified:

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
0
Jason
Asked:
Jason
  • 2
  • 2
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
0
 
JasonAuthor Commented:
Hi

Do you know of a vb.net article as my knowledge of c/c++ is limited.
0
 
David Johnson, CD, MVPOwnerCommented:
the article is for all .net languages and not C/C++ the unmanaged dll was written using c/c++ and not C#/VB
0
 
JasonAuthor Commented:
Thks for your help
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now