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

Managed C++/CLI

 
GeneralCLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 4:02
sympthom 96-Mar-05 4:02 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
ursus zeta6-Mar-05 12:38
ursus zeta6-Mar-05 12:38 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:27
sympthom 96-Mar-05 20:27 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
sympthom 96-Mar-05 20:41
sympthom 96-Mar-05 20:41 
GeneralRe: CLR interpretation (type conversion between managed c++ and c#) Pin
ursus zeta12-Mar-05 9:03
ursus zeta12-Mar-05 9:03 
GeneralPertaining to ReadDirectoryChangesW -windows file system function Pin
lms0073-Mar-05 18:35
lms0073-Mar-05 18:35 
QuestionQuickest Way to Wrap Standard Win32 DLL? Pin
RichB3-Mar-05 5:25
RichB3-Mar-05 5:25 
AnswerWhy didn't Microsoft think of this? Pin
ursus zeta5-Mar-05 12:05
ursus zeta5-Mar-05 12:05 
You might take a look around over at:
www.PInvoke.net
If the standard Win32 DLLs were Type Libraries you could simply use the Type Library Importer to convert them to .NET assemblies (TlbImp.exe, it lives in the Program Files\Microsoft Visual Studio .NET folder).
Most people just use the Win32 functions in their code by using the DllImport attribute before the function declaration. You must add the line "using namespace System::Runtime::InteropServices;" to your code, and the DLLImport attribute requires that you supply a String object, for instance, "User32.dll" as a parameter.
You could, of course, do this for the entire DLL, but, it would keep you busy for awhile.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesdllimportattributeclasstopic.asp[^]
I think the reasoning behind the Interop method has to do with Type safety by the managing CLR.
GeneralUnzip the file in vb.net Pin
Thirumalaraj3-Mar-05 4:28
Thirumalaraj3-Mar-05 4:28 
GeneralRe: Unzip the file in vb.net Pin
Christian Graus6-Mar-05 13:00
protectorChristian Graus6-Mar-05 13:00 
Generaladd a button on Save As dialogue tool bar Pin
MihaiChioariu2-Mar-05 0:44
MihaiChioariu2-Mar-05 0:44 
GeneralRe: add a button on Save As dialogue tool bar Pin
Christian Graus2-Mar-05 11:10
protectorChristian Graus2-Mar-05 11:10 
Generallibc usage in managed code Pin
Eric Schaefer1-Mar-05 21:20
Eric Schaefer1-Mar-05 21:20 
Generalconfused Pin
ursus zeta5-Mar-05 12:28
ursus zeta5-Mar-05 12:28 
GeneralRe: confused Pin
Eric Schaefer6-Mar-05 18:50
Eric Schaefer6-Mar-05 18:50 
GeneralC# and Custom C++ interfaces Pin
vad_kr27-Feb-05 21:06
vad_kr27-Feb-05 21:06 
GeneralRe: C# and Custom C++ interfaces Pin
ursus zeta28-Feb-05 14:20
ursus zeta28-Feb-05 14:20 
GeneralSyntax for storing an adress to a function pointer from outside a class in GNU g++ Pin
Armini25-Feb-05 7:29
Armini25-Feb-05 7:29 
GeneralSimple 'DateTimePicker' Question Pin
lior654#hotmail.com24-Feb-05 21:07
lior654#hotmail.com24-Feb-05 21:07 
GeneralRe: Simple 'DateTimePicker' Question Pin
lms0073-Mar-05 22:02
lms0073-Mar-05 22:02 
GeneralC++ Functions Pin
opan24-Feb-05 19:49
opan24-Feb-05 19:49 
GeneralRe: C++ Functions Pin
Christian Graus28-Feb-05 10:04
protectorChristian Graus28-Feb-05 10:04 
GeneralFile I/O problem Pin
Anonymous22-Feb-05 13:27
Anonymous22-Feb-05 13:27 
GeneralThis is the managed C++ Forum (.NET) Pin
ursus zeta24-Feb-05 10:24
ursus zeta24-Feb-05 10:24 
Generalgraphics Pin
gyanendra suwal18-Feb-05 6:37
gyanendra suwal18-Feb-05 6:37 

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.