I have a question regarding the WriteFile in serial communication. I am trying to send data from a hex file to a microcontroller using a VARIANT command, but I get an error from the WriteFile saying "actual parameter is not a pointer : parameter 2." How can i fix this or is there another function where i can output to the serial command.
Example:
VARIANT vOut;
//vOut is filled with data
WriteFile(hCom,vOut,65535,&iBytesWritten,NULL);



LinkBack URL
About LinkBacks


