Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How could i put a modeless behind the parent? Pin
James R. Twine12-Apr-02 9:48
James R. Twine12-Apr-02 9:48 
GeneralRe: How could i put a modeless behind the parent? Pin
Hans Ruck14-Apr-02 21:19
Hans Ruck14-Apr-02 21:19 
GeneralUsing Borland's MAKE.EXE 3.6 in Win2k Pin
Lars VJ11-Apr-02 21:21
Lars VJ11-Apr-02 21:21 
GeneralWin32 Application using Controls Pin
Grant Cooper11-Apr-02 21:21
Grant Cooper11-Apr-02 21:21 
GeneralRe: Win32 Application using Controls Pin
Nish Nishant11-Apr-02 21:42
sitebuilderNish Nishant11-Apr-02 21:42 
GeneralRe: Win32 Application using Controls Pin
Grant Cooper12-Apr-02 2:38
Grant Cooper12-Apr-02 2:38 
GeneralProblem with IPropertyPageImpl - Apply Button Pin
Braulio Dez11-Apr-02 20:54
Braulio Dez11-Apr-02 20:54 
Generalcalling CDatabase in a worker thread Pin
chaze11-Apr-02 20:41
chaze11-Apr-02 20:41 
hi all,
i used CWinthread created a worker for monitoring a port. in that thread, i need to connect to database.
so, i hope to connect the database at that class and execute sql in the worker thread. but, i can't do so. seems that the worker thread can't access that object. here is the code, pls give me some ideas!!!

CDatabase db;
class CAN
{
CWinThread abc;
static int workerthread;
//static CDatabase db;
}

i tried both setting the CDatabase as global or static. both are not able to access by workerthread.
do you have any idea letting workerthread using out thread's object?
thanks,
jim


GeneralRe: calling CDatabase in a worker thread Pin
wangyiming12-Apr-02 3:14
wangyiming12-Apr-02 3:14 
Generalcatch RETURN in an edit control Pin
11-Apr-02 19:58
suss11-Apr-02 19:58 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 19:56
suss11-Apr-02 19:56 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 20:10
suss11-Apr-02 20:10 
GeneralRe: catch RETURN in an edit control Pin
EricMC11-Apr-02 20:19
EricMC11-Apr-02 20:19 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 20:53
suss11-Apr-02 20:53 
GeneralRe: catch RETURN in an edit control Pin
Tim Smith12-Apr-02 4:45
Tim Smith12-Apr-02 4:45 
General1394 Firewire Video Programming Pin
MarkPQ11-Apr-02 19:40
MarkPQ11-Apr-02 19:40 
GeneralInserting Text (Adding) In CEditView :: MFC Pin
valikac11-Apr-02 18:07
valikac11-Apr-02 18:07 
GeneralRe: Inserting Text (Adding) In CEditView :: MFC Pin
Christian Graus11-Apr-02 20:55
protectorChristian Graus11-Apr-02 20:55 
GeneralScrollbar questions Pin
ejw11-Apr-02 16:22
ejw11-Apr-02 16:22 
GeneralRe: Scrollbar questions Pin
Ravi Bhavnani11-Apr-02 16:32
professionalRavi Bhavnani11-Apr-02 16:32 
GeneralRe: Scrollbar questions Pin
Shog911-Apr-02 17:10
sitebuilderShog911-Apr-02 17:10 
GeneralRe: Scrollbar questions Pin
ejw11-Apr-02 19:10
ejw11-Apr-02 19:10 
Questionhash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:03
blizzymadden11-Apr-02 15:03 
AnswerRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 15:03
protectorChristian Graus11-Apr-02 15:03 
GeneralRe: hash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:16
blizzymadden11-Apr-02 15:16 

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.