Click here to Skip to main content
15,898,222 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: linking error Pin
Member 161799912-Apr-05 4:49
Member 161799912-Apr-05 4:49 
GeneralRe: linking error Pin
ursus zeta14-Apr-05 10:29
ursus zeta14-Apr-05 10:29 
GeneralRe: linking error Pin
Member 161799914-Apr-05 14:30
Member 161799914-Apr-05 14:30 
GeneralCopy of MSFN post Pin
ursus zeta19-Apr-05 9:58
ursus zeta19-Apr-05 9:58 
GeneralRe: Copy of MSFN post Pin
Member 161799926-Apr-05 9:55
Member 161799926-Apr-05 9:55 
QuestionHow to use non .NET DLLs in .NET environment? Pin
Khang Nguyen8-Apr-05 5:29
Khang Nguyen8-Apr-05 5:29 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
ursus zeta10-Apr-05 10:22
ursus zeta10-Apr-05 10:22 
AnswerRe: How to use non .NET DLLs in .NET environment? Pin
Paul Ingles21-Apr-05 2:36
Paul Ingles21-Apr-05 2:36 
As mentioned in the previous post, you can't add a reference to the DLL since it's neither a .NET assembly, nor exposing COM interfaces -- when you add a reference to a COM DLL VS.NET just generates a .NET P/Invoke wrapper around it so you can use it without declaring things yourself.

Again, you can either go down the route of writing DllImport & P/Invoke stubs (although if you're using reasonably complicated data structures this can be time consuming unless someone else has already converted them).

Alternatively, you can use the (rather cool in my opinion) It Just Works functionality within MC++. Effectively you write a .NET wrapper around the functionality exposed by the Intel libraries by linking etc. as you would with MSVC++6. Now, I'm a little rusty on this, I've not done any MC++/interop code for a good while now, but it should be relatively straightforward. Effectively you compile your assembly with the /CLR compiler switch, this in turn generates managed code, including the P/Invoke code that would otherwise be up to you to write in C#. Of course, you'll need to make sure you link with the libraries, and include the headers.

If you get stuck with that I'm sure people will be able to give you more detailed instructions.

--
Paul

MS Messenger: paul -at- oobaloo-co-uk
GeneralRe: How to use non .NET DLLs in .NET environment? Pin
Khang Nguyen21-Apr-05 5:57
Khang Nguyen21-Apr-05 5:57 
GeneralLocation of dependent assemblies Pin
mav.northwind8-Apr-05 2:31
mav.northwind8-Apr-05 2:31 
GeneralRe: Location of dependent assemblies Pin
mav.northwind14-Apr-05 20:53
mav.northwind14-Apr-05 20:53 
GeneralHelp me! Pin
Member 18628467-Apr-05 0:46
Member 18628467-Apr-05 0:46 
GeneralRe: Help me! Pin
Christian Graus7-Apr-05 13:19
protectorChristian Graus7-Apr-05 13:19 
GeneralMFC Pin
Member 18625147-Apr-05 0:03
Member 18625147-Apr-05 0:03 
GeneralRe: MFC Pin
Christian Graus7-Apr-05 13:24
protectorChristian Graus7-Apr-05 13:24 
Generalinherited overloaded operators Pin
Aaron Sulwer30-Mar-05 13:33
Aaron Sulwer30-Mar-05 13:33 
GeneralRe: inherited overloaded operators Pin
Christian Graus30-Mar-05 14:36
protectorChristian Graus30-Mar-05 14:36 
GeneralRe: inherited overloaded operators Pin
Aaron Sulwer30-Mar-05 16:08
Aaron Sulwer30-Mar-05 16:08 
GeneralRe: inherited overloaded operators Pin
TigerNinja_5-Apr-05 9:02
TigerNinja_5-Apr-05 9:02 
GeneralSimple chat programs Pin
Melnx30-Mar-05 10:43
Melnx30-Mar-05 10:43 
GeneralRe: Simple chat programs Pin
Christian Graus30-Mar-05 12:00
protectorChristian Graus30-Mar-05 12:00 
GeneralRe: Simple chat programs Pin
Aaron Sulwer30-Mar-05 13:35
Aaron Sulwer30-Mar-05 13:35 
GeneralRe: Simple chat programs Pin
Melnx30-Mar-05 16:34
Melnx30-Mar-05 16:34 
GeneralRe: Simple chat programs Pin
Melnx30-Mar-05 16:36
Melnx30-Mar-05 16:36 
GeneralRe: Simple chat programs Pin
Aaron Sulwer30-Mar-05 16:54
Aaron Sulwer30-Mar-05 16:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.