PC Review


Reply
Thread Tools Rate Thread

dllimport confusion

 
 
vidalsasoon
Guest
Posts: n/a
 
      1st Jan 2005
ok, I have a DLL(c++) i would like to use in my C# project. The only
hint I have as to what is in this dll is the specification that came
with it. here is an example on how the dll should be used.

// 1) Initialize the creation structure
OPCODECREATE OPCC;
OPCC.NbTris = ...;
OPCC.NbVerts = ...;
OPCC.Tris = ...;
OPCC.Verts = ...;
OPCC.Rules = ...;
OPCC.NoLeaf = ...;
OPCC.Quantized = ...;
OPCC.KeepOriginal = ...;

bool Status = Sample.Build(OPCC);


I'm very new at this and my c++ is very poor. any tips on how I could
use this with c#? im stuck at

[DllImport("Opcode.dll")]
public static extern void noideawhatgoeshere();

 
Reply With Quote
 
 
 
 
vidalsasoon
Guest
Posts: n/a
 
      1st Jan 2005
a little more info...
I need instances of a class from the dll (not just static methods).

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dllimport paul f Microsoft C# .NET 1 19th Mar 2009 02:34 PM
Dllimport paul f Microsoft C# .NET 4 11th Mar 2009 06:27 PM
What's the difference of [DllImport ....] with _declspec(dllimport) Ed Microsoft VC .NET 2 31st Jul 2007 02:31 AM
dllimport UJ Microsoft VB .NET 2 17th Oct 2005 07:58 PM
DllImport with ASP.NET ? Brian Anderson Microsoft ASP .NET 2 26th Dec 2004 08:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:40 PM.