Click here to Skip to main content
15,919,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is VC++ 6 equivalent of VB's DoEvents Pin
Mahesh Perumal5-Mar-03 19:36
Mahesh Perumal5-Mar-03 19:36 
QuestionHow to open a web site? Pin
Nguyen Huynh Hung4-Mar-03 17:23
Nguyen Huynh Hung4-Mar-03 17:23 
AnswerRe: How to open a web site? Pin
Taka Muraoka4-Mar-03 17:34
Taka Muraoka4-Mar-03 17:34 
AnswerRe: How to open a web site? Pin
Dave Bryant4-Mar-03 17:40
Dave Bryant4-Mar-03 17:40 
AnswerRe: How to open a web site? Pin
KingsGambit4-Mar-03 17:43
KingsGambit4-Mar-03 17:43 
QuestionHow to minimize window of application into icon on taskbar? Pin
Nguyen Huynh Hung4-Mar-03 17:14
Nguyen Huynh Hung4-Mar-03 17:14 
AnswerRe: How to minimize window of application into icon on taskbar? Pin
Dave Bryant4-Mar-03 17:42
Dave Bryant4-Mar-03 17:42 
GeneralMS Access multiple-user problem Pin
ATC4-Mar-03 16:51
ATC4-Mar-03 16:51 
Hi,

I am using VC++ 6.0 for multile PC's that using the same MS Access database table (DAO). I am encountered with one problem as the following:

- The first user comes in a table looking for a specific record then AddNew() then Update() record on it (if it has been emptied)!

- The next user comes in later (almost at the same time) looking the same one, but instead see it is NOT EMPTY ... it see it still EMPTY then do the same as the first user

- Then I had two different records instead of only one!

*) I tried different approaches to avoid this problem but not success very well (failed every three times)! Here what I did:

1) After AddNew() & Update() ---> I Edit() that record then Update() for the next user using Requiry() for fast ReFresh ... in hopping it now can see that record is done & doing NOTHING!

2) Using another table (only one data) and let the first user set a flag to it ... until it finish Addnew() & Update() record ... delay 1 second then remove that flag. The second user only can get in the same table when that flag is not set!

3) Low approach: Using Token methode (almost same as #2), instaed wrie to a table, the first user writes a simple character to a text file with Exclusive Open, after finish AddNew() & Update() then delay one second ... it will close that file! The second user will wait untill that Token is released in order to do the same and now can use the same table which the first user already complete its task!

I hope someone knowing better ways to let the next user knowing that record is NOT EMPTY (was set by the first user) by some way very fast, or block or any thing else!

It is a desperate request, I appreciate a lot any helps or suggestion here!

Many thanks
GeneralRe: MS Access multiple-user problem Pin
Joel Lucsy5-Mar-03 7:23
Joel Lucsy5-Mar-03 7:23 
GeneralAdding polygon Pin
JGranborg4-Mar-03 14:09
JGranborg4-Mar-03 14:09 
GeneralRe: Adding polygon Pin
Anders Molin4-Mar-03 14:35
professionalAnders Molin4-Mar-03 14:35 
GeneralRe: Adding polygon Pin
JGranborg5-Mar-03 4:35
JGranborg5-Mar-03 4:35 
GeneralRe: Adding polygon Pin
ColinDavies4-Mar-03 16:20
ColinDavies4-Mar-03 16:20 
GeneralRe: Adding polygon Pin
JGranborg5-Mar-03 8:54
JGranborg5-Mar-03 8:54 
GeneralRe: Adding polygon Pin
Scott H. Settlemier5-Mar-03 7:21
Scott H. Settlemier5-Mar-03 7:21 
GeneralRe: Adding polygon Pin
JGranborg5-Mar-03 8:53
JGranborg5-Mar-03 8:53 
Questiondictionary service? Pin
Roman Nurik4-Mar-03 14:08
Roman Nurik4-Mar-03 14:08 
AnswerRe: dictionary service? Pin
Roman Nurik4-Mar-03 14:09
Roman Nurik4-Mar-03 14:09 
GeneralRe: dictionary service? Pin
John M. Drescher4-Mar-03 14:13
John M. Drescher4-Mar-03 14:13 
GeneralRe: dictionary service? Pin
Roman Nurik4-Mar-03 14:17
Roman Nurik4-Mar-03 14:17 
GeneralHardware I/O address Pin
AZhao4-Mar-03 12:42
AZhao4-Mar-03 12:42 
GeneralChanging the MFC logo Pin
orcblood4-Mar-03 12:42
orcblood4-Mar-03 12:42 
GeneralRe: Changing the MFC logo Pin
Dave Bryant4-Mar-03 12:53
Dave Bryant4-Mar-03 12:53 
GeneralRe: Changing the MFC logo Pin
Chintan5-Mar-03 5:10
Chintan5-Mar-03 5:10 
GeneralCombo ListBox alignment Pin
Bartosz Bien4-Mar-03 11:53
Bartosz Bien4-Mar-03 11:53 

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.