raw_enha
asked on
Accessing Windows.h in C#
In MS Visual C#, what's the equivalent of
"#include <windows.h>" (from MS Visual C++)
The "#include" command isn't recognized and I want to do things with
USHORT* and malloc and what not. Can one do such a thing?
"#include <windows.h>" (from MS Visual C++)
The "#include" command isn't recognized and I want to do things with
USHORT* and malloc and what not. Can one do such a thing?
Not in C#. Those are C++ language constructs. What are you trying to do?
ASKER
Well, I have some code that I wanted to convert to C#, but it heavily uses pointers and commands such as malloc and free.
would i be able to write it in C++ and access the code through some sort of DLL or COM object or something? I'm new to C#, so I'm not sure whats possible.
would i be able to write it in C++ and access the code through some sort of DLL or COM object or something? I'm new to C#, so I'm not sure whats possible.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.