Click here to Skip to main content
15,917,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DirectShow + COM + IGraphBuilder = Confused! Pin
Jon Hulatt31-Aug-04 0:09
Jon Hulatt31-Aug-04 0:09 
GeneralRe: DirectShow + COM + IGraphBuilder = Confused! Pin
Andrew Walker31-Aug-04 0:34
Andrew Walker31-Aug-04 0:34 
GeneralPrint to file Pin
r i s h a b h s30-Aug-04 22:08
r i s h a b h s30-Aug-04 22:08 
GeneralLinking files from subprojects Pin
jrichardson8530-Aug-04 22:07
jrichardson8530-Aug-04 22:07 
QuestionHow to find the exe name? Pin
baskarchinnu30-Aug-04 21:34
baskarchinnu30-Aug-04 21:34 
AnswerRe: How to find the exe name? Pin
4apai30-Aug-04 23:02
4apai30-Aug-04 23:02 
AnswerRe: How to find the exe name? Pin
Archer28231-Aug-04 17:09
Archer28231-Aug-04 17:09 
GeneralAnother Release Bugs... Pin
DjChris1430-Aug-04 21:03
DjChris1430-Aug-04 21:03 
Hello to all!Hope anyone could figure out my problem... i have a program in VC++ 6.0(w/ sp6) and created a Release version... i have compiled and it runs in my pc so well. So i think i will have no problem distributing it to another pc. When i distribute the Released Exe, the program cannot proceed, just the login session and then it exits... when i try to traced the error, i found that i having trouble with _CommandPtr->ActiveConnection. here is the code snipet..

void CBPLSAssessmentApp::AuditTrail(CString MCode, CString ATable, CString DObject)
{
CBPLSAssessmentApp *pApp = (CBPLSAssessmentApp*)AfxGetApp();
CString sQuery,sCurrentDate;
COleDateTime m_vodtMonth,m_vodtDay,m_vodtYear,m_vodtSaveTime;
_RecordsetPtr pRSet = NULL ,pRights = NULL;
_CommandPtr pCmd = NULL;

try // CTS 02022004 add try and catch
{
pCmd.CreateInstance(__uuidof(Command));
pCmd->ActiveConnection = m_pConnection; // <-- this is the culprit

sQuery = "insert into a_trail values ";
sQuery+="('"+ SetStrLength(sUser,10) +"',";
//m_vodtSaveTime = COleDateTime::GetCurrentTime();
m_vodtSaveTime.ParseDateTime(GetSystemDate());
sCurrentDate.Format("%04d-%02d-%02d %02d:%02d:%02d",
m_vodtSaveTime.GetYear(),
m_vodtSaveTime.GetMonth(),
m_vodtSaveTime.GetDay(),
m_vodtSaveTime.GetHour(),
m_vodtSaveTime.GetMinute(),
m_vodtSaveTime.GetSecond());
sQuery+=" '"+sCurrentDate +"',";
sQuery+=" '"+ SetStrLength(MCode,10) +"',";
sQuery+=" '"+ SetStrLength(ATable,30) +"',";
sQuery+=" '"+ SetStrLength(m_sComputerName,30) + "',"; // JJP 10112003 for Manila Workstation
sQuery+=" '"+ SetStrLength(DObject,200) +"')";

pCmd->CommandText = _bstr_t(sQuery);
pCmd->Execute(NULL, NULL, NULL);

}
catch (_com_error &e)
{
_bstr_t bstrDescription(e.Description());
MessageBox(NULL,LPCTSTR("CBPLSAssessmentApp:AuditTrail\n"+bstrDescription),APP_NAME,MB_OK);
exit(1);
} // CTS 02022004 add try and catch
}


as you notice, i have a try and catch but when i run the program... its passes through but no values is being catched...
can anyone figured it out? OMG | :OMG:
GeneralRe: Another Release Bugs... Pin
Graham Bradshaw30-Aug-04 23:26
Graham Bradshaw30-Aug-04 23:26 
GeneralRe: Another Release Bugs... Pin
DjChris1431-Aug-04 19:30
DjChris1431-Aug-04 19:30 
Generalprogramming source code in creating specific packet over ethernet Pin
jychin30-Aug-04 20:54
jychin30-Aug-04 20:54 
GeneralRe: programming source code in creating specific packet over ethernet Pin
Henry miller31-Aug-04 4:15
Henry miller31-Aug-04 4:15 
GeneralRe: programming source code in creating specific packet over ethernet Pin
jychin31-Aug-04 19:16
jychin31-Aug-04 19:16 
GeneralRe: programming source code in creating specific packet over ethernet Pin
Anonymous5-Oct-04 14:30
Anonymous5-Oct-04 14:30 
GeneralRe: programming source code in creating specific packet over ethernet Pin
jychin6-Oct-04 16:55
jychin6-Oct-04 16:55 
QuestionHow to get the Size of Requests with ISAPI Pin
raed30-Aug-04 20:50
raed30-Aug-04 20:50 
AnswerRe: How to get the Size of Requests with ISAPI Pin
xiaolonghong12317-Jan-09 20:54
xiaolonghong12317-Jan-09 20:54 
GeneralCString in Vc++ 7.1 linking problems Pin
Zaber30-Aug-04 20:46
Zaber30-Aug-04 20:46 
GeneralVC6 Help Pin
swarup30-Aug-04 20:31
swarup30-Aug-04 20:31 
GeneralMultiple Modal dialogs Pin
el_scrub30-Aug-04 20:01
el_scrub30-Aug-04 20:01 
GeneralRe: Multiple Modal dialogs Pin
David Crow31-Aug-04 3:46
David Crow31-Aug-04 3:46 
GeneralRe: Multiple Modal dialogs Pin
el_scrub31-Aug-04 14:24
el_scrub31-Aug-04 14:24 
GeneralRe: Multiple Modal dialogs Pin
David Crow1-Sep-04 4:10
David Crow1-Sep-04 4:10 
GeneralRe: Multiple Modal dialogs Pin
el_scrub1-Sep-04 13:32
el_scrub1-Sep-04 13:32 
Question&quot;Injects into explorer.exe and exits the parent&quot; means...? Pin
Archer28230-Aug-04 16:16
Archer28230-Aug-04 16: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.