15,919,341 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 14603643 (Top 10 by date)
Member 14603643
21-Jul-21 10:26am
View
will surely check and give the feedback thanks for the valuable feedback. One More Question: logic for test2.c sendtheData(void *Arg) is good or any advice to do it more better
Member 14603643
20-Jul-21 12:03pm
View
yes i have used strcpy(mode->param3, param3) as these are character array .
Member 14603643
20-Jul-21 2:16am
View
sendtheData has function parameter as void parameter, and same structure is created in that file so the void pointer is assigned to struct resphs
Member 14603643
20-Jul-21 2:14am
View
char buff[255];
Member 14603643
19-Jul-21 7:57am
View
What you said i understood but implmentation of sendtheData is in another source file where struct mode is not visible or accessible
Member 14603643
19-Jul-21 5:59am
View
no , these is developed by me so dont have any docs . Can you advice me for the same
Member 14603643
19-Jul-21 5:45am
View
Deleted
void sendtheData (void * aArg)
{
hs = (struct resphs*)aArg;
}
I have the same structure like mode and this code is in another source file
Member 14603643
19-Jul-21 5:44am
View
void sendtheData (void * aArg)
{
hs = (struct resphs*)aArg;
}
I have the same structure like mode and this code is in another source file
Member 14603643
1-Jul-21 5:41am
View
I have one more doubt , as PostMessage is in different thread and GetMessage in different thread. Is it possible to do _beginthread(ThreadProc, 0, 0); in the file where PostMessage is there in my case it is test.c. Because i have several function where data resides so that i can begin the thread and post the message .
Member 14603643
30-Jun-21 4:24am
View
hi Richard,
instead of _beginthread , i tried to debug with
DWORD _acquireThreadID;
HANDLE _acquireThread;
_acquireThread = CreateThread(NULL, 0, ThreadProc, 0, 0, &_acquireThreadID);
if (_acquireThread == NULL) {
printf("could not create the thread\n");
return false;
}
result : _acquireThread = 0x000000e0
I debug it , and it seems thread is created,
ret = PostThreadMessage(ThreadID_GUI, WM_YOUR_MESSAGE, 0, (LPARAM)data);
result: ret = 1;
any more suggestion?
Show More