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

C / C++ / MFC

 
QuestionActiveX and Windows C++ Pin
ashok12314-Sep-05 11:25
ashok12314-Sep-05 11:25 
AnswerRe: ActiveX and Windows C++ Pin
charlieg14-Sep-05 12:12
charlieg14-Sep-05 12:12 
AnswerRe: ActiveX and Windows C++ Pin
Calc2014-Sep-05 21:48
Calc2014-Sep-05 21:48 
Questionpassing string from VB6 dll function to VC++6 Pin
Member 227578514-Sep-05 10:17
Member 227578514-Sep-05 10:17 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
David Crow14-Sep-05 10:35
David Crow14-Sep-05 10:35 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
ky_rerun14-Sep-05 15:46
ky_rerun14-Sep-05 15:46 
AnswerRe: passing string from VB6 dll function to VC++6 Pin
S Douglas14-Sep-05 20:27
professionalS Douglas14-Sep-05 20:27 
Questionapp runs on command prompt but not dev studio Pin
valerie9914-Sep-05 9:46
valerie9914-Sep-05 9:46 
hi, all

I would get 0xC0000005: Access Violation, at the end of this code:

void Run(LPVOID dat)
{
CAddSurchrgDlg* cDlg = (CAddSurchrgDlg*)dat;
CString csWintext;
cDlg->GetWindowText( csWintext );
csWintext += " Version 1.02";
cDlg->SetWindowText( csWintext );

try
{
if ( !cDlg->m_bCanceled )
cDlg->ParseCommandLine();
if ( !cDlg->m_bCanceled )
cDlg->OpenFiles();
if ( !cDlg->m_bCanceled )
cDlg->AddNewSurcharges();
}

catch( ExceptionMsg e )
{
MessageBox( GetFocus(), e.errMsg, "Add Surcharge", MB_OK | MB_ICONSTOP | MB_SETFOREGROUND );
}
catch (CDataBaseException& e)
{
MessageBox(GetFocus(), e.what(), "Add Surcharge", MB_OK | MB_ICONSTOP | MB_SETFOREGROUND);
}
catch(...)
{
MessageBox( GetFocus(), "Unhandled Exception", "Add Surcharge", MB_OK | MB_ICONSTOP | MB_SETFOREGROUND );
}
cDlg->Exit();

on /MFC/THRDCORE.CPP, It crashes over here:
DWORD nResult = 0;
if (pThread->m_pfnThreadProc != NULL)
{
nResult = (*pThread->m_pfnThreadProc)(pThread->m_pThreadParams);

but if I use the same data and same switch to run this app on command prompt, it would work fine and create reports.....well, i just ran again, it crash, too. so it was just lucky to work sometimes.


anybody get idea why is that? Thank you!

-- modified at 15:54 Wednesday 14th September, 2005
AnswerRe: app runs on command prompt but not dev studio Pin
David Crow14-Sep-05 10:19
David Crow14-Sep-05 10:19 
GeneralI've tried to command them out Pin
valerie9914-Sep-05 11:28
valerie9914-Sep-05 11:28 
Questionhelp Pin
Shantise200314-Sep-05 9:24
Shantise200314-Sep-05 9:24 
AnswerRe: help Pin
Christian Graus14-Sep-05 11:17
protectorChristian Graus14-Sep-05 11:17 
AnswerRe: help Pin
charlieg14-Sep-05 11:57
charlieg14-Sep-05 11:57 
AnswerRe: help Pin
ThatsAlok14-Sep-05 18:27
ThatsAlok14-Sep-05 18:27 
GeneralRe: help Pin
normanS14-Sep-05 19:31
normanS14-Sep-05 19:31 
QuestionKeep the program evaluating... even when minimized Pin
bugDanny14-Sep-05 9:17
bugDanny14-Sep-05 9:17 
AnswerRe: Keep the program evaluating... even when minimized Pin
-Dy14-Sep-05 9:27
-Dy14-Sep-05 9:27 
AnswerRe: Keep the program evaluating... even when minimized Pin
bugDanny14-Sep-05 10:31
bugDanny14-Sep-05 10:31 
GeneralRe: Keep the program evaluating... even when minimized Pin
-Dy14-Sep-05 12:26
-Dy14-Sep-05 12:26 
GeneralRe: Keep the program evaluating... even when minimized Pin
S Douglas15-Sep-05 0:42
professionalS Douglas15-Sep-05 0:42 
QuestionCString format and numbers Pin
mcgahanfl14-Sep-05 9:08
mcgahanfl14-Sep-05 9:08 
AnswerRe: CString format and numbers Pin
Alexander M.,14-Sep-05 9:12
Alexander M.,14-Sep-05 9:12 
AnswerRe: CString format and numbers Pin
bugDanny14-Sep-05 9:20
bugDanny14-Sep-05 9:20 
AnswerRe: CString format and numbers Pin
David Crow14-Sep-05 9:28
David Crow14-Sep-05 9:28 
GeneralRe: CString format and numbers Pin
mcgahanfl14-Sep-05 10:23
mcgahanfl14-Sep-05 10:23 

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.