Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionc++ UserInterface Pin
raja.geek23-Sep-07 23:04
raja.geek23-Sep-07 23:04 
QuestionRe: c++ UserInterface Pin
David Crow24-Sep-07 3:08
David Crow24-Sep-07 3:08 
AnswerRe: c++ UserInterface Pin
toxcct24-Sep-07 20:51
toxcct24-Sep-07 20:51 
AnswerRe: c++ UserInterface Pin
Signal-926-Sep-07 15:16
Signal-926-Sep-07 15:16 
QuestionMultiple access to MS SQL Database Pin
__yash__23-Sep-07 22:57
professional__yash__23-Sep-07 22:57 
QuestionRe: Multiple access to MS SQL Database Pin
Mark Salsbery24-Sep-07 7:33
Mark Salsbery24-Sep-07 7:33 
AnswerRe: Multiple access to MS SQL Database Pin
__yash__24-Sep-07 20:35
professional__yash__24-Sep-07 20:35 
GeneralRe: Multiple access to MS SQL Database Pin
Mark Salsbery25-Sep-07 5:40
Mark Salsbery25-Sep-07 5:40 
That's fine.  As long as there's only one thread, there's no concurrency
issues.  If your 6 sockets are all creaed on the same thread then all the
OnReceive() calls occur on one thread (I'm assuming you're using CSocket
or CAsyncSocket).

If the sockets were all on separate threads, and all shared the same "ptr"
variable, then you'd have problems.

If the sockets were all on separate threads, and all had separate connections to the
DB, then the concurrency rules for the DB would apply.


Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Multiple access to MS SQL Database Pin
__yash__25-Sep-07 18:53
professional__yash__25-Sep-07 18:53 
QuestionHow to run an exe file. Pin
Exelioindia23-Sep-07 22:52
Exelioindia23-Sep-07 22:52 
AnswerRe: How to run an exe file. Pin
_AnsHUMAN_ 23-Sep-07 22:55
_AnsHUMAN_ 23-Sep-07 22:55 
GeneralRe: How to run an exe file. [modified] Pin
Exelioindia23-Sep-07 23:44
Exelioindia23-Sep-07 23:44 
AnswerRe: How to run an exe file. Pin
nbugalia23-Sep-07 22:56
nbugalia23-Sep-07 22:56 
GeneralRe: How to run an exe file. Pin
Exelioindia23-Sep-07 23:44
Exelioindia23-Sep-07 23:44 
GeneralRe: How to run an exe file. Pin
nbugalia24-Sep-07 0:03
nbugalia24-Sep-07 0:03 
GeneralRe: How to run an exe file. Pin
Exelioindia24-Sep-07 0:05
Exelioindia24-Sep-07 0:05 
GeneralRe: How to run an exe file. Pin
nbugalia24-Sep-07 0:10
nbugalia24-Sep-07 0:10 
GeneralRe: How to run an exe file. [modified] Pin
Exelioindia24-Sep-07 0:22
Exelioindia24-Sep-07 0:22 
GeneralRe: How to run an exe file. Pin
David Crow24-Sep-07 3:14
David Crow24-Sep-07 3:14 
AnswerRe: How to run an exe file. Pin
David Crow24-Sep-07 3:13
David Crow24-Sep-07 3:13 
Questiontry-catch handling Pin
Mary Chennai23-Sep-07 22:41
Mary Chennai23-Sep-07 22:41 
AnswerRe: try-catch handling Pin
Russell'23-Sep-07 23:08
Russell'23-Sep-07 23:08 
AnswerRe: try-catch handling [modified] Pin
nbugalia23-Sep-07 23:29
nbugalia23-Sep-07 23:29 
GeneralRe: try-catch handling Pin
Signal-926-Sep-07 15:18
Signal-926-Sep-07 15:18 
QuestionProblem by resizing CFormView derived class Pin
Nelek23-Sep-07 22:31
protectorNelek23-Sep-07 22:31 

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.