Click here to Skip to main content
15,886,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralC++ global const question Pin
Indrawati9-Aug-04 15:34
Indrawati9-Aug-04 15:34 
GeneralRe: C++ global const question Pin
Jeff Bogan9-Aug-04 17:27
Jeff Bogan9-Aug-04 17:27 
GeneralRe: C++ global const question Pin
Anonymous9-Aug-04 18:40
Anonymous9-Aug-04 18:40 
GeneralRe: C++ global const question Pin
Tim Smith10-Aug-04 3:52
Tim Smith10-Aug-04 3:52 
GeneralRe: C++ global const question Pin
Nitron10-Aug-04 5:47
Nitron10-Aug-04 5:47 
GeneralRe: C++ global const question Pin
Jeff Bogan10-Aug-04 5:10
Jeff Bogan10-Aug-04 5:10 
GeneralRe: C++ global const question Pin
Ryan Binns9-Aug-04 18:24
Ryan Binns9-Aug-04 18:24 
GeneralCreateThread is not Calling the function in DLL Pin
aman20069-Aug-04 14:27
aman20069-Aug-04 14:27 
HI
I am writing a DLL in which i am creating a thread like this:

extern "C" __declspec(dllexport) BOOL ReadCard(char *pData)
{


if(g_hPort == NULL)
{
strcpy(pData,"COM port is not opened");
return false;
}

g_hThreadRead = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadFunc, 0, 0 ,&dwThreadID);





return true;
}

This create thread function is suppose to go to ThreadFunc() but it is not going . can any body give me some suggestion why it is not going to ThreadFunc()

DWORD WINAPI ThreadFunc(LPVOID pData)
{
BOOL bSuccess = TRUE;
while(1)
{
int index = 0;

// Clear the dara buffer first.
memset(g_strResult,0x00,500);
if ( l_bTaskAbort )
{
Disconnect();
return(false);
}
//if card is seated
// Ask the user to remove the card
// if the card is removed then read the data
if(GetCardData())
{


//MyMSR_ShowResult(0);
strcpy((char*)pData,g_strResult);
break;
}

}

return bSuccess;
}

Thanks in advance
shailesh
GeneralRe: CreateThread is not Calling the function in DLL Pin
Tim Smith9-Aug-04 14:50
Tim Smith9-Aug-04 14:50 
GeneralRe: CreateThread is not Calling the function in DLL Pin
aman200610-Aug-04 6:21
aman200610-Aug-04 6:21 
Generalmfc word automation problem (normal.dot) Pin
Asleezalio9-Aug-04 10:58
Asleezalio9-Aug-04 10:58 
QuestionSequel encode? Pin
mcgahanfl9-Aug-04 10:28
mcgahanfl9-Aug-04 10:28 
AnswerRe: Sequel encode? Pin
User 127829-Aug-04 10:35
User 127829-Aug-04 10:35 
GeneralRe: Sequel encode? Pin
mcgahanfl9-Aug-04 10:48
mcgahanfl9-Aug-04 10:48 
GeneralRe: Sequel encode? Pin
Stlan9-Aug-04 21:17
Stlan9-Aug-04 21:17 
GeneralRe: Sequel encode? Pin
mcgahanfl10-Aug-04 3:33
mcgahanfl10-Aug-04 3:33 
GeneralSimple DLL calling another DLL Pin
george330279-Aug-04 8:35
george330279-Aug-04 8:35 
GeneralRe: Simple DLL calling another DLL Pin
David Crow9-Aug-04 9:10
David Crow9-Aug-04 9:10 
GeneralRe: Simple DLL calling another DLL Pin
george330279-Aug-04 9:59
george330279-Aug-04 9:59 
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen9-Aug-04 21:07
Antti Keskinen9-Aug-04 21:07 
GeneralRe: Simple DLL calling another DLL Pin
george3302722-Aug-04 12:21
george3302722-Aug-04 12:21 
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen22-Aug-04 20:41
Antti Keskinen22-Aug-04 20:41 
GeneralRe: Simple DLL calling another DLL Pin
george3302724-Aug-04 7:15
george3302724-Aug-04 7:15 
GeneralRe: Simple DLL calling another DLL Pin
Antti Keskinen24-Aug-04 7:33
Antti Keskinen24-Aug-04 7:33 
GeneralRe: Simple DLL calling another DLL Pin
george3302720-Sep-04 13:28
george3302720-Sep-04 13:28 

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.