Click here to Skip to main content
15,902,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Set Fields in ADO?(VC++) Pin
Milton Karimbekallil8-Aug-04 18:51
Milton Karimbekallil8-Aug-04 18:51 
GeneralDBCS Hell! Pin
John R. Shaw8-Aug-04 17:14
John R. Shaw8-Aug-04 17:14 
GeneralDialog initlization Pin
Tyrus1828-Aug-04 16:49
Tyrus1828-Aug-04 16:49 
GeneralRe: Dialog initlization Pin
Ryan Binns8-Aug-04 18:11
Ryan Binns8-Aug-04 18:11 
GeneralRe: Dialog initlization Pin
Vadim Tabakman8-Aug-04 18:12
Vadim Tabakman8-Aug-04 18:12 
QuestionHow to execute a SQL pass-through from Regular Dll Pin
TuanTriTue8-Aug-04 16:47
TuanTriTue8-Aug-04 16:47 
Generalsingle server and multiple clients, using multithreading (winsock) Pin
deep_george Z8-Aug-04 16:17
sussdeep_george Z8-Aug-04 16:17 
GeneralRe: single server and multiple clients, using multithreading (winsock) Pin
Ryan Binns8-Aug-04 18:16
Ryan Binns8-Aug-04 18:16 
deep_george Z wrote:
is the method a correct one.....

Yes, but...

deep_george Z wrote:
whenever a client is connected, a thread (mainThread)is created. suppose when a client is half way through the thread, a new client connected with the server. i create a the mainThread once again, but with a different parameter. will this work.. should i create seperate theards, i.e., mainThread1,mainThread2.
in that case, if i wish to connect with 10 clients, i have to implement 10 threads. (ie 10 different threads, with different names).


You need to read more on threads before you try to use them. This paragraphs suggests that this is the first time you have tried to use threads. Find a good tutorial somewhere on CP, or use Google to look up threading tutorials.

Basically, when you create a thread, it executes independently of other threads. Threads are multitasked by Windows in the same way that processes are. You can create multiple threads with the same thread function. Just be very careful about data synchronisation.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralFind out which header files are included.. Pin
Vadim Tabakman8-Aug-04 15:49
Vadim Tabakman8-Aug-04 15:49 
GeneralRe: Find out which header files are included.. Pin
Blake Miller9-Aug-04 5:26
Blake Miller9-Aug-04 5:26 
GeneralRe: Find out which header files are included.. Pin
Vadim Tabakman9-Aug-04 14:43
Vadim Tabakman9-Aug-04 14:43 
GeneralMSChartCtrl Pin
Tyrus1828-Aug-04 14:41
Tyrus1828-Aug-04 14:41 
GeneralRe: MSChartCtrl Pin
Ravi Bhavnani8-Aug-04 15:27
professionalRavi Bhavnani8-Aug-04 15:27 
Generalneed help with a copy button Pin
locoone8-Aug-04 14:32
locoone8-Aug-04 14:32 
GeneralRe: need help with a copy button Pin
Christian Graus8-Aug-04 15:32
protectorChristian Graus8-Aug-04 15:32 
GeneralHelp needed...Image format conversion in VC++ Pin
pavanbabut8-Aug-04 7:33
pavanbabut8-Aug-04 7:33 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw8-Aug-04 17:43
John R. Shaw8-Aug-04 17:43 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut8-Aug-04 20:02
pavanbabut8-Aug-04 20:02 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw9-Aug-04 3:37
John R. Shaw9-Aug-04 3:37 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut11-Aug-04 9:33
pavanbabut11-Aug-04 9:33 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw11-Aug-04 9:47
John R. Shaw11-Aug-04 9:47 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut11-Aug-04 11:35
pavanbabut11-Aug-04 11:35 
GeneralUSB interface in VC++ Pin
suman_malepati8-Aug-04 7:31
suman_malepati8-Aug-04 7:31 
GeneralRe: USB interface in VC++ Pin
Vadim Tabakman8-Aug-04 16:39
Vadim Tabakman8-Aug-04 16:39 
GeneralShellExecute and execl woes Pin
KnaveWave8-Aug-04 6:35
KnaveWave8-Aug-04 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.