Solved

Help linking unmanaged dll with application

Posted on 2014-12-01
4
169 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
[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
  • 2
4 Comments
 
LVL 81

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 81

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.net/VSTO Excel Add-in 2 39
reading an excel file vb.net 2 47
PowerShell: Adding ToGB to a script 4 76
Run software updates from the website 6 51
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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

752 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