Solved

Help linking unmanaged dll with application

Posted on 2014-12-01
4
162 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

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…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

15 Experts available now in Live!

Get 1:1 Help Now