Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
56% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 26
c x 3
Member Avatar for jp071

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); …

Member Avatar for MandrewP
0
134
Member Avatar for jp071

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 …

Member Avatar for zeroliken
0
2K
Member Avatar for jp071

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 …

Member Avatar for WaltP
0
250
Member Avatar for jp071

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 …

Member Avatar for nbaztec
0
155
Member Avatar for jp071

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); …

Member Avatar for jp071
0
249
Member Avatar for jp071

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 …

Member Avatar for donaldw
0
120
Member Avatar for jp071

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 …

Member Avatar for iamthwee
0
108
Member Avatar for jp071

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 …

Member Avatar for kvprajapati
0
93
Member Avatar for jp071

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 …

Member Avatar for Nick Evan
0
317
Member Avatar for jp071

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.

Member Avatar for Salem
0
219
Member Avatar for jp071

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 …

Member Avatar for jp071
0
204