Click here to Skip to main content
15,917,481 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: #define or enum?? Pin
jhwurmbach10-Feb-03 4:08
jhwurmbach10-Feb-03 4:08 
GeneralGlobal varibles Pin
Rickard Andersson2010-Feb-03 3:19
Rickard Andersson2010-Feb-03 3:19 
GeneralRe: Global varibles Pin
pankajdaga10-Feb-03 3:28
pankajdaga10-Feb-03 3:28 
GeneralRe: Global varibles Pin
Nitron10-Feb-03 3:28
Nitron10-Feb-03 3:28 
GeneralRe: Global varibles Pin
Iain Clarke, Warrior Programmer10-Feb-03 5:56
Iain Clarke, Warrior Programmer10-Feb-03 5:56 
GeneralRe: Global varibles Pin
Abbas_Riazi10-Feb-03 9:11
professionalAbbas_Riazi10-Feb-03 9:11 
GeneralRe: Global varibles Pin
Mike Nordell10-Feb-03 11:36
Mike Nordell10-Feb-03 11:36 
QuestionHow to make a Multi-User Database connection, for multi-threaded Server Pin
Willem B10-Feb-03 3:14
Willem B10-Feb-03 3:14 
hi there,

if got an server application, each connection(client thread) must be able to get data in and out of the database. Because of the multible connections the database must be contacted by only 1 class(because of locked up records and that stuff). What is the best way to do something like that?

My own solution would have been to make a message list(/waiting list) for the database-class(like windows does) and make the database-class a thread that keeps checking the messages and respond to them. That way the class handles each oparation after eachother and gives the feedback toward the thread. This would mean that i have to make a linked list of a structure that contains something like this:
<br />
- Owner of the message(thread ID)<br />
- Command for the database(something like SQL or maybe a selfmade kind)<br />
- Pointer to the Recordset where the thread retrieves all information from the database<br />

My problem is not to realize something like this, my problem comes wenn i have to make an Recordset that is variable and only contains information. CRecordset only makes a Recordset that is connected to an database, and thats not what i need. Does anyone know how to do this?

I hope you'll understand what i mean, my english is not the best.

[]D [] []D [] (from holland)
Generalsorting CLIstCtrl...help! Pin
ns10-Feb-03 2:46
ns10-Feb-03 2:46 
GeneralRe: sorting CLIstCtrl...help! Pin
Joaquín M López Muñoz10-Feb-03 3:00
Joaquín M López Muñoz10-Feb-03 3:00 
GeneralRe: sorting CLIstCtrl...help! Pin
AlexO10-Feb-03 3:01
AlexO10-Feb-03 3:01 
GeneralRe: sorting CLIstCtrl...help! Pin
ns10-Feb-03 3:12
ns10-Feb-03 3:12 
QuestionWhat is the difference between delete[] and delete? Pin
George210-Feb-03 2:29
George210-Feb-03 2:29 
AnswerRe: What is the difference between delete[] and delete? Pin
AlexO10-Feb-03 2:46
AlexO10-Feb-03 2:46 
GeneralRe: What is the difference between delete[] and delete? Pin
George210-Feb-03 3:02
George210-Feb-03 3:02 
AnswerRe: What is the difference between delete[] and delete? Pin
karl_w10-Feb-03 3:47
karl_w10-Feb-03 3:47 
GeneralCToolBar Pin
satyavasu10-Feb-03 2:07
satyavasu10-Feb-03 2:07 
GeneralRe: CToolBar Pin
MAAK10-Feb-03 9:47
MAAK10-Feb-03 9:47 
GeneralRe: CToolBar Pin
satyavasu10-Feb-03 17:44
satyavasu10-Feb-03 17:44 
GeneralRe: CToolBar Pin
MAAK11-Feb-03 13:44
MAAK11-Feb-03 13:44 
GeneralLive video through internet Pin
Val Chis10-Feb-03 1:37
Val Chis10-Feb-03 1:37 
GeneralRe: Live video through internet Pin
Chris Meech10-Feb-03 4:45
Chris Meech10-Feb-03 4:45 
GeneralRe: Live video through internet Pin
Mike Nordell10-Feb-03 11:42
Mike Nordell10-Feb-03 11:42 
GeneralRe: Live video through internet Pin
Anonymous14-Feb-03 21:29
Anonymous14-Feb-03 21:29 
Generalwhile creating a zip file using any utility like dynazip Pin
SPGV10-Feb-03 0:05
SPGV10-Feb-03 0:05 

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.