|
-
July 1st, 2009, 06:35 PM
#3
Re: How to use an unmanaged C library from a VC++ CLI project
 Originally Posted by darwen
Dont link to the C# .NET assembly via it's .lib file, add the dll as a reference to the project.
Darwen.
Darwen,
Thanks, that's how I am using the .NET assembly and that is working fine.
My problem is how to also include (link, reference, whatever) the native C API which is in the form a .LIB and a .DLL. Can I include the .LIB file using Project>Add Existing Iterm? Or do I reference the .DLL using Project>Options>Linker>Input>Additional Dependencies?
The problem I'm having seems to be with the "/CLR: pure" compile & link options. I will try again making everything /CLR instead.
Jeff
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|