HighTechTalks DotNet Forums  

Unmanaged dll, macro definitions

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss Unmanaged dll, macro definitions in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Anna
 
Posts: n/a

Default Unmanaged dll, macro definitions - 11-15-2005 , 11:59 PM






I have a third party dll (C++) which I need to call from my c# class. I
defined

[DllImport("The.dll")]
public static extern ...

for each function that I want to use. The brief API document for the
functions states that the return values from these functions can be H_FAIL
and H_SUCCESS. There also some structs that are used as parameters which in
turn can have values in the same form, e.g. H_NOT_INSTALLED.

There is no documentation so I can't figure out the actual values behind the
H_FAIL etc. I don't have any .h files, just the dll. Is there any way to
obtain these underlying values (I'm pretty sure they are all integers) using
the Interop? Or make my c# understand the H_SOMETHING?

Thanks in advance.

Anna


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.