15,896,207 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12330615 (Top 11 by date)
Member 12330615
10-Nov-17 0:46am
View
"Have you installed your service?"
I am sorry I don't understand this question mean....
Member 12330615
20-Oct-17 10:35am
View
I would like to know the last parameter of the following
ReadFile(hComm, &rx, 1, dwBytesTransferred, X); // <--- X
I guess that "X = null" mean waiting data from the serial port.
But I don't know the meaning of "X != null" and the usage of examples.
Please let me know the purpose of this and advise me the full usage of example as "X != null"
Member 12330615
20-Oct-17 1:40am
View
Deleted
I wrote some strange code like this:
unsigned char rx;
unsigned char c;
char SaveBuffer[32767];
BOOL SaveSW;
int i =0, k= -1;
for (;;)
{
r = 0; rx = 0;
if(!WaitCommEvent(hComm, &dwEventMask, NULL)) continue;
SetCommMask(hComm, EV_RXCHAR | EV_CTS | EV_DSR);
BOOL pass_flag = FALSE;
if(dwEventMask &= EV_RXCHAR)
while(!pass_flag)
{
ClearCommError(hComm, &dwErrors, &Stat);
if (!Stat.cbInQue) break;
else {
ReadFile(hComm, &rx, 1, dwBytesTransferred, 0); // <- look at this!!!
if(dwBytesTransferred == 1)
{
c = rx;
if( c == STX)
{
SaveSW = ON;
}
else if (c == ETX)
{
SaveSW = OFF;
}
if(SaveSW)
SaveBuffer[i++] = c;
.......
......
As shown above code,
I use unsigned char rx to receive data one by one.
If this problem from BUFFER_OVERRUN error,
how can I change the variable rx to any type?
As a novice of C++, it is another problem to me.
Thank you again...
Member 12330615
19-Jul-17 20:47pm
View
Omitting size parameter in the use of sprintf_s has no compile error, but make running error.
char a[8];
sprintf(a, "%07d", i); // this has no compile error. but it cause strange result.
Member 12330615
13-Jul-17 21:29pm
View
This file is a index file as the sequences are very important. So, a Logbuffer with 1000 sequential records. But in the multiple transactions, The indexes are broken(?) and filled with spaces and no CRLF when I see the file by "notepad".
Member 12330615
13-Jul-17 21:13pm
View
It needs sequential number of records. So I use a Logbuffer filled with 1000 sequential records....
CRLF are needed what I see the file with my eyes...
Member 12330615
18-Jun-17 22:13pm
View
After modifying according of your advice, and careful testing, I found testing almost applied. But sometimes x had same error....
Member 12330615
31-May-17 21:20pm
View
Windows,
But B.exe does not use MFC, it is not dialob based.
Member 12330615
17-May-16 4:00am
View
WHAT IS HIWORD, LOWORD?
AND How get the backward value from HIWORD AND LOWORD?
Member 12330615
17-May-16 3:51am
View
y[0] = HIWORD(x);
y[1] = LOWORD(x); or
y[0] = x >> 8;
y[1] = x & 0x00ff;
makes perfect answer!
Member 12330615
15-Mar-16 14:44pm
View
Sorry,
I want to the buffer to declare of the type of x or y.
Buffers are received from another server with many types, so I want to manage it according to the each type.
Show More