- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
11 Posted Topics
Hello, Could anyone explain details about three different case and output. Here is the code and output: #include <stdio.h> void foo(int n) { n = 6; } void fooWithRef(int& n) { n = 6; } int main() { int n; foo(n); printf("Case_1 Result: %d \n", n); n = 4; foo(n); … | |
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 … | |
Hello, I would like to know how to read multiple files without using DIR. For example, program will search ".bin" file and create a new variable for the file. But the exception is my compiler does not know the directory (like opendir or readdir). I am doing dsp programming. I … | |
Hello, I would like to display result in form window. The result is changes every 5 seconds. The form is only close when i stop program. I am using console application in visual c++ 2008. Anybody could help me, how can i display data in form view when i use … | |
Hello, When i run my program it shows just segmentation fault. As my knowledge, segmentation fault can occur for pointer and memory related fault. But i could not find out my mistake. Please see some part of code(maybe, that is related to segmentation fault): [CODE] char *state_in; //state_in = malloc(1024); … | |
Hello, Referenced memory error in visual c++ .exe file. When i was run my program's .exe file (program written by visual c++ 2008 win32 windows application), it could work fine. but problem is when i click a button for executing something and display on the window screen (otherwise it works … | |
Hi, I want to split a char string. We can use “strtok” function for split a string by using token. But in my problem, there is no specific separation/token between each value. The data directly come from an external device through the serial port. I used “ReadFile” function to read … ![]() | |
Hello, I want to capture data from serial port. The COM1 port connected with a device and we have software for the device that is need for generating data. The software opens the port, then connects with the device and writes something for generating data. i just want to capture … | |
Hello, I Could not Display data from Serial port. Please check my code and help me how to display data from serial port. The error is "error C3861: 'ProcessChar': identifier not found". I understood, it need to write some code for ProcessChar function to access data. could anybody help me … | |
Hello, Anybody can give me idea, How can i check COM port? I want to check, is it already open or not? if it is already open, just avoid to open the port. Thanks. | |
Hello, I am doing embedded system programming. i want to read data from device through the COM1 port. I have already a software that for access the device through the COM1 port and generate data for the device. I wrote a program in c++ that could open the port and … |
The End.