Solved

Help linking unmanaged dll with application

Posted on 2014-12-01
4
164 Views
Last Modified: 2014-12-05
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
Comment
Question by:Jason
  • 2
  • 2
4 Comments
 
LVL 78

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40475049
0
 

Author Comment

by:Jason
ID: 40475086
Hi

Do you know of a vb.net article as my knowledge of c/c++ is limited.
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40475184
the article is for all .net languages and not C/C++ the unmanaged dll was written using c/c++ and not C#/VB
0
 

Author Closing Comment

by:Jason
ID: 40483498
Thks for your help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now