Using (ANSI) C and C++ DLLs (i.e. "unmanaged" code) from C#

E

E.T. Grey

Hi,

I have some C/C++ DLLs I have written and I want to use C# & WinForms to
create the GUI.

For the life of me, I cannot find any references/documentation (and this
includes the MS site!) that shows *clearly*, how to:

1). Use C functions exported in a Win32 DLL from a C# application (in
this case the GUI mentioned above) - I need to be able to pass
structures, pointers to structures and callbacks (i.e. pointers to
functions)

2). Use C++ objects exported in the C++ DLL from within the C# GUI


Any help will be much appreciated (last 2 hours searching google/MS site
has been a complete waste of my time)
 
M

Mattias Sjögren

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top