class Serial:: for windows


i know c object oriented c++ not strong side yet.  :-[
i'm trying use class serial page

arduino.cc/playground/interfacing/cppwindows

i can
code: [select]

...
serial::serial((char *)"com6");


but can't instantiate new object writedata dynamic member of serial class..

code: [select]

serial *serauto;
serial *serdynamic = new serial;
serial::serial((char *)"com6"); // here ok.

   if(serdynamic->writedata("7",1)) // not ok!
   {
       //alles ok
   }

error: ...mainwindow.cpp:70: error: no matching function call 'serial::serial()'

how must object instantiated can used send character??

there no working example uses serialclass...
let's make 1 now? :'(

c++ serial port class windows, here working link
http://www.arduino.cc/playground/interfacing/cppwindows


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > class Serial:: for windows


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums