M
Martin Groh
Hey, I making some C code that is suppose to run on a microcontroller, but I
would like to test some modules in the program on my computer (using VS pro
2008).
Now I have made the module in plain C (and it compiles nicely), now I have
done this under a CLR Windows Form Application project.
Now my module is suppose to read/write for serial port, and I have made a
"fake" driver for this.
I am using a normal windows form to control the input to this driver class
(textboxes, buttons etc.)
So all the communication from the Form to the driver class works perfectly,
but my PROBLEM is that I can't find a way for the drive class to call
function in the Form class. I always and up whit "global or static variable
may not have managed type" when I try to make references or something.
To summarize I need a way to make my drive class send a String to a rich
textbox on the form.
Regards Martin
would like to test some modules in the program on my computer (using VS pro
2008).
Now I have made the module in plain C (and it compiles nicely), now I have
done this under a CLR Windows Form Application project.
Now my module is suppose to read/write for serial port, and I have made a
"fake" driver for this.
I am using a normal windows form to control the input to this driver class
(textboxes, buttons etc.)
So all the communication from the Form to the driver class works perfectly,
but my PROBLEM is that I can't find a way for the drive class to call
function in the Form class. I always and up whit "global or static variable
may not have managed type" when I try to make references or something.
To summarize I need a way to make my drive class send a String to a rich
textbox on the form.
Regards Martin