Some1 has an experience of call a VC dll?

I meet a particulier problem, at first i have to write a VC dll, I have a

win32 app code source, so i wanna know if this is possible

to transfer this app to a VC dll, and it will be called in C#.

some1 told me its possible, so i wanna know how to build

this dll firstly and how to call this dll in c# secondly.

Please give me some ideas, thx a lot!




Answer this question

Some1 has an experience of call a VC dll?

  • ssfftt

    thx a lot, appreciate for it

    I have read these articles, but the vc dll i will call in c# is a win 32 app, i wanna

    transfer this app completely to a dll, so this is a difference, i dont know the

    vc very well, its a mesg oriented moudule.



  • Dave Edelman

    What you're describing is called Platform Invoke (or pinvoke). See http://msdn2.microsoft.com/en-us/library/aa446536.aspx for an introduction to pinvoke. http://www.pinvoke.net/ is a good reference for pinvoking Windows SDK functions.

  • Some1 has an experience of call a VC dll?