|
Taruni wrote: What I want to know is whether there is any tool that lists the functions called in between funx() and funy()
yes, the DEBUGGER does it ! by showing the call stack.
but you seem to be to lazy to search a bit by yourself...
|
|
|
|
|
Taruni wrote: I have two functions funx() and funy() in my VC++ application.Could someone suggest me a tool/mechanism as how to find which functions (application flow)are called in between funx() and funy().
Normally you can use the debugger.
Taruni wrote: I need this urgently.
But that's bothering me. For urgent purposes, I don't know if the debugger will help.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
|
There is one Tool called WinDBG from MS.
|
|
|
|
|
shhhhh, that's a secret tool !
|
|
|
|
|
Hi all,
Please tell me can i color the background of menu bar in SDI type appliaction.
PLease tell me how can i do this?
if possible please explain with example.
Thanks in advance.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
|
You have to owner draw your menu. This article[^] describes about how to do it step by step.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
|
Hello friends,
I've an IE Toolbar with VC 6.0.
I am calling a webservice from the application which result in HTTP 400 i.e "Bad Request".However calling webservice works for the first time successfully but after that whenever I call the webservice it results in "Bad Request".If I close the browser and reopen it will work again for one time only, Can anybody tell me what could be the problem?
vRequest.vt = VT_BSTR;
vRequest.bstrVal = szRequest.AllocSysString();
MSXML::IXMLHttpRequestPtr httpReq( _uuidof(XMLHTTPRequest));
HTTPMethod = _bstr_t("POST");
httpReq->open(HTTPMethod ,SERVER_URL,noAsync,vtMissing,vtMissing);
httpReq->setRequestHeader("Content-Type","application/soap+xml");
HRESULT hr=httpReq->send(vRequest);
if (httpReq->readyState == 4 )
{
if(httpReq->status==200)
{
bsResponse = httpReq->responseText;
}
else
{
_bstr_t strline=httpReq->statusText;
CString strstatus;
strstatus=strline.copy();
MessageBox(strstatus);
}
}
response.Empty();
response=bsResponse.copy();
I parse the response for getting the "true" or "false" value.
I get the correct response for the first time but after that the response is empty and statusText result in "Bad Request".
ritz1234
|
|
|
|
|
It seems like you are not closing the connection and trying to reconnect to the service .
Vikas Amin
My First Article on CP" Virtual Serial Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
MainFrm.cpp
MainFrm::OnStart(){.... popupDlg= new CPrgpopup(NULL, iProgressBarMaxVal,iProgressBarStepVal); hwnd=AfxGetApp()->GetMainWnd()->GetSafeHwnd(); THREADSTRUCT5 *_param = new THREADSTRUCT5; _param->_this = this; thMPrgBar=AfxBeginThread (StartProgressBarThread, _param);.....}UINT MainFrame::StartProgressBarThread (LPVOID param){ THREADSTRUCT5* ts = (THREADSTRUCT5*)param; ts->_this->popupDlg->Create(IDD_PROGRESS_BAR_DIALOG,NULL); ts->_this->popupDlg->ShowWindow(TRUE);}
Prgpopup.cpp
CPrgpopup::CPrgpopup(CWnd* pParent, int iPrgMaxVal,int iPrgStpVal){
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: .....\DebugMDd\navigat.exe
File: strcore.cpp
Line: 512
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------
---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x77f9193c.
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x77f9193c.
Click on OK to terminate the program
---------------------------
OK
---------------------------
|
|
|
|
|
Sorry Ignor my previous post, Tried to Delete,Delete Button is missing
|
|
|
|
|
ptr_Electron wrote: Delete Button is missing
Because your post is too wide. Use the Preview button next time before posting.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
MainFrm.cpp
MainFrm::OnStart()
{
....
popupDlg= new CPrgpopup(NULL, iProgressBarMaxVal,iProgressBarStepVal);
hwnd=AfxGetApp()->GetMainWnd()->GetSafeHwnd();
THREADSTRUCT5 *_param = new THREADSTRUCT5;
_param->_this = this;
thMPrgBar=AfxBeginThread (StartProgressBarThread, _param);
.....}
UINT MainFrame::StartProgressBarThread (LPVOID param)
{
THREADSTRUCT5* ts = (THREADSTRUCT5*)param;
ts->_this->popupDlg->Create(IDD_PROGRESS_BAR_DIALOG,NULL);
ts->_this->popupDlg->ShowWindow(TRUE);
}
Prgpopup.cpp
CPrgpopup::CPrgpopup(CWnd* pParent, int iPrgMaxVal,int iPrgStpVal)
{
iPrgBarMaxVal = iPrgMaxVal;
iPrgBarStepVal = iPrgStpVal;
}
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!
Program: .....\DebugMDd\navigat.exe
File: strcore.cpp
Line: 512
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
---------------------------
Abort Retry Ignore
---------------------------
---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x77f9193c.
Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK Cancel
---------------------------
---------------------------
navigator.exe - Application Error
---------------------------
The exception Breakpoint
A breakpoint has been reached.
(0x80000003) occurred in the application at location 0x77f9193c.
Click on OK to terminate the program
---------------------------
OK
---------------------------
|
|
|
|
|
You are writing too much functionality in one line. This leeds to undebugable ocde.
ts->_this->popupDlg->Create(IDD_PROGRESS_BAR_DIALOG,NULL);
is this value assigned? ts->_this->popupDlg
Whats there going wrong?
File: strcore.cpp
Line: 512
A missing resource?
Greetings from Germany
|
|
|
|
|
Did you check call stack to trace what line is causing the problem??
BTW
ptr_Electron wrote: ts->_this->popupDlg->ShowWindow(TRUE);
Use SW_SHOW and SW_HIDE.
Regards,
Sandip.
|
|
|
|
|
ptr_Electron wrote: File: strcore.cpp
Line: 512
So have you looked at line 512 of strcore.cpp to see what condition is asserting?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
when I connect sqlserver200 with VC++6.0 Error "
"[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"
thanks very much
|
|
|
|
|
|
HI,
The Problem remains...
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\include\atlbase.h(4575) : error C3861: '_beginthreadex': identifier not found
to avoid this problem i need to set up something in Visual Studio to turn on _MT in ATLBASE.
I set runtime library to /MDd but _MT still OFF.
|
|
|
|
|
Did you include, as required, process.h ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You have to link with the multi-threaded libraries.
Please ignore, I think I was still sleeping...
modified on Thursday, August 21, 2008 6:33 AM
|
|
|
|
|
I also got the same error.
I avoid that problem by resetting visual studio setting.
For resetting setting:
take command prompt,
take the directory as ..\Microsoft Visual Studio 9.0\Common7\IDE
Devenv /ResetSkipPkgs
devenv /resetsettings
|
|
|
|
|
Hi All,
Say if i give, C:\\Level 1\\Level 2\\abc.txt, the return value i'm expecting is C:\\Level 1\\Level 2.
Is there an API to return the parent directory from the given path, something like PathFindFileName API, or we should extract on our own.
Thanx.
Do your Duty and Don't expect the Result
|
|
|
|