- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re:
Hello, I am doing simple read/write program for serial port. I am faceing a error that i donĀ“t understand. Error is: "error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [5]' to 'LPCWSTR' " My whole program: #include <windows.h> #include <iostream> #include <string> using namespace std; void set_com_pin(bool … |
|
i would like to get date and time of button event. Here is the code that is writing the input from textBox11 into text file when the button 5 is clicked. Can anyone help me advice how to write the data and time into this text file when the button … |
|
how could I creat a file at desired folder? Below is my code and what I want to do is 1)I open the "newfile1.txt"and read the first line(e.g Cat) from this file 2) and then create the Cat.txt at "C:\user\user\Desktop\history" Currently, I could creat Cat.txt at the folder where my … |
|
Hi, I'm having problem with "WriteLine". What I'm tryin to do is write into the selected txt file(from openFileDialog) when user type something in the textBox. ****************************************************** My output is something wrong. For example: when I type "testing" in the textBox, what I see in my text file is as … |
|
so far I could manage to create OpenFileDialog and select the txt file. after that ,How could I display the contect of selected txt file into TextBox? [CODE] ************************************************************* private: virtual System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { System::Windows::Forms::DialogResult OK = openFileDialog1->ShowDialog(); } private: System::Void openFileDialog1_FileOk(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) { ???????????????????????????????? … |