Combining a Windows Form Application and a Windows API Application

closed account (LAMoizwU)
Yo,

Originally I have a form application that does calculations, displaying etc (the reason I'm using one was because I found it easier to make a GUI in form application).

Later I started using the DirectX SDK and modified one of the supplied sample code which is in API to get values from a joystick.

I need to combine the two to have a working product, but simply putting the codes together seemed to give some runtime error (as form app uses clr and API doesn't). I also tried to break down the parts of the code of the API into the form application but got a lot of linking error.

Can anyone suggest how I should approach this? Is there an easier way to combine the two? Any advice will do.

Thanks a lot
Topic archived. No new replies allowed.