Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalreading and writing raw data to an access database from c++ Pin
Gilfrog11-Nov-02 18:11
Gilfrog11-Nov-02 18:11 
GeneralRe: reading and writing raw data to an access database from c++ Pin
Prem Kumar11-Nov-02 19:47
Prem Kumar11-Nov-02 19:47 
GeneralCustomized Windows Pin
Shamoon11-Nov-02 17:55
Shamoon11-Nov-02 17:55 
GeneralHelp with ComboBox Pin
VanHlebar11-Nov-02 17:54
VanHlebar11-Nov-02 17:54 
QuestionMoving Between Classes? Pin
Jonah Bishop11-Nov-02 17:41
Jonah Bishop11-Nov-02 17:41 
AnswerRe: Moving Between Classes? Pin
Michael Dunn11-Nov-02 19:17
sitebuilderMichael Dunn11-Nov-02 19:17 
GeneralRe: Moving Between Classes? Pin
Jonah Bishop12-Nov-02 10:55
Jonah Bishop12-Nov-02 10:55 
Generalmultithread and function access Pin
zecodela11-Nov-02 17:35
zecodela11-Nov-02 17:35 
hi all,
i want to know the result or problem if i access same function with 2 threads as following

class A
{
public:
A()
{
AfxBeginThread(threadA, this...);
AfxBeginThread(threadB, this...);
}
static uint threadA(LPVOID ptr)
{
A* pA = (A*) ptr;
pA->commandfunction();
}
static uint threadB(LPVOID ptr)
{
A* pA = (A*) ptr;
pA->commandfunction();
}
void commonfunction()
{ ... }

}

int main()
{
A a;
}



what will happen if threadA, threadB access commonfunction() at the same time?
as i know, they should access same copy of commonfunction().
will there any corruption?
pls give me some idea!
thanks,
jim
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 18:13
Joao Vaz11-Nov-02 18:13 
GeneralRe: multithread and function access Pin
zecodela11-Nov-02 19:28
zecodela11-Nov-02 19:28 
GeneralRe: multithread and function access Pin
Joao Vaz11-Nov-02 22:12
Joao Vaz11-Nov-02 22:12 
GeneralRe: multithread and function access Pin
Anonymous12-Nov-02 0:41
Anonymous12-Nov-02 0:41 
GeneralRe: multithread and function access Pin
Joao Vaz12-Nov-02 1:58
Joao Vaz12-Nov-02 1:58 
Questionmy ado program don't work on another pc? Pin
sages11-Nov-02 16:03
sages11-Nov-02 16:03 
AnswerRe: my ado program don't work on another pc? Pin
Christian Graus11-Nov-02 17:17
protectorChristian Graus11-Nov-02 17:17 
GeneralThanks,i've resolved th problem. Pin
sages11-Nov-02 20:11
sages11-Nov-02 20:11 
GeneralWizard goes Next in Windows 98 Pin
Swinefeaster11-Nov-02 14:13
Swinefeaster11-Nov-02 14:13 
Generaldisable individual rows of a listctrl Pin
fordge11-Nov-02 13:55
fordge11-Nov-02 13:55 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 14:08
Swinefeaster11-Nov-02 14:08 
GeneralRe: disable individual rows of a listctrl Pin
fordge11-Nov-02 20:37
fordge11-Nov-02 20:37 
GeneralRe: disable individual rows of a listctrl Pin
Swinefeaster11-Nov-02 20:40
Swinefeaster11-Nov-02 20:40 
GeneralRe: disable individual rows of a listctrl Pin
Michael Dunn11-Nov-02 16:55
sitebuilderMichael Dunn11-Nov-02 16:55 
GeneralRe: disable individual rows of a listctrl Pin
Anonymous11-Nov-02 20:38
Anonymous11-Nov-02 20:38 
GeneralCannot figure it out Pin
ed987111-Nov-02 13:01
ed987111-Nov-02 13:01 
GeneralRe: Cannot figure it out Pin
Christian Graus11-Nov-02 17:19
protectorChristian Graus11-Nov-02 17:19 

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.