Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Need to create a thread by taking method as an argument and in that method i need to take char* as a parameter whenever we pass a argument to that method then the thered will be destroy ??I need implementation for this requirement??

What I have tried:

Nothing.
Posted
Updated 22-Dec-16 1:35am
v2
Comments
[no name] 22-Dec-16 8:16am    
It's customary to actually try something yourself before asking someone else to do your homework assignment for you.

It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.

The idea of "development" is as the word suggests: "The systematic use of scientific and technical knowledge to meet specific objectives or requirements." BusinessDictionary.com[^]
That's not the same thing as "have a quick google and give up if I can't find exactly the right code".
So either pay someone to do it, or learn how to write it yourself. We aren't here to do it for you.
 
Share this answer
 
 
Share this answer
 
Usually the thread functions must have a fixed signature, for example, on Windows
C++
DWORD WINAPI MyThreadFunction( LPVOID lpParam )
Using the lpParam you may pass whatever you need (it is just a matter of cast, see Creating Threads (Windows)[^] ).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900