Link to home
Start Free TrialLog in
Avatar of raw_enha
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?
Avatar of dstanley9
dstanley9

Not in C#.  Those are C++ language constructs.  What are you trying to do?
Avatar of raw_enha

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.
ASKER CERTIFIED SOLUTION
Avatar of dstanley9
dstanley9

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial