Hallo
Ich programmiere mit VC++ .net.
ich habe ein kleines Problem mit speichern der Baudrate des SerialPorts
in eine textdatei.
Bis jetzt habe ich:
1 | FILE* txtfile;
|
2 |
|
3 | txtfile = fopen("bin\\log.txt","w");
|
4 | fprintf(txtfile, "%s", comboBox1->Items);
|
5 | fclose(txtfile);
|
in der Combobox sind die Baudraten aufgelistet.
Aber das programm speichert nicht das Item in der Textbox. Wenn ich
statt:
1 | fprintf(txtfile, "%s", comboBox1->Items);
|
2 |
|
3 | fprintf(txtfile, "%s", "hallo");
|
schreibe, speichert er logischerweise das Hallo in die textdatei.
Warum speichert er nicht die baudrate in die datei?
Ich hoffe ihr könnt mir helfen,
Seprendium Diagnostica