I am currently designing a program for a complex robot. Does anybody know how I can implement a windows form file in my c++ program (The form is already made, I just need to access it using my c++ program)?
would it be "#using <name_of_form>" in the library?
Sure, what I am doing is designing a C++ program that references a windows forms file (.frm), meaning including the information stored in it, but I am not exactly certain how to do it. The file has buttons I need to execute the commands for the robot.
So, what you want to do is to parse an frm file? I don't think there are libs to do the job for you... You'll have to do it yourself. I think frm files have text format (at least the ones related with visual basic), so it shouldn't be too hard. But after you get the information how exactly do you intend to use it? I didn't get that part... Does the robot have a screen, and you're gonna make the form appear there? You already have the API to draw the form and you just wanted to be able to read a form from an frm file?
Ok. Yeah when I run the .exe program the form comes up and I am able to move the robot in any direction, for only a short period of time, by clicking the desired direction button once. What I intend to do is change the code so the robot will travel as long as I am clicking and holding the button down.
The .frm file is a proprietary, Visual Basic-specific file for storing information that VB uses to re-create a Windows "window" (what your VB IDE calls a "form").
I cannot find a reference to the file format (there probably isn't a very good one, since MS can change it to match a specific version of VB), but google around a bit. You might even find a simple C or C++ library to load one for you (though I think it unlikely...).
For holding the button down, you can check the key state (something like GetAsyncKeyState()) or properly handle the keyboard input in your window's Window Procedure.