|
How is it that you are unable to debug this on 98/ME?
Are you using .net/2003? If so, look into the remote debugging features of it, you should be able to debug that way....
Or is the blue-screen coming before any exceptions are trapped?
-p
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Hello all
Thanks for the replies. I'm not using .Net/2003. I'm getting blue screen before any exceptions are trapped. I'm getting the following error
fatal error 0E at 0028:C0003E8C
I looked at microsoft knowledge base for these error but couldn't find the solution
Any ideas?
Thanks for the help.
Hari.
|
|
|
|
|
I think that there are many causes -- what exactly does your program do?
You can check out this site (click here)[^]-- for possible answers
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
Hello,
I need to loop through a directory and pull each file name from the given directory.. This should be easy but I have no idea where to start.. Can someone point me in the right direction..
Thanks,
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
SDK: FindFirstFile, FindNextFile
MFC: CFileFind
Steve S
|
|
|
|
|
I looked at CFindFile earlier but this looks like a search function to me.. I don't see anywhy to tell it where to start looking.. I dont want to find all .rtf files on my machine just .rtf files given a directory to loop through.. Am I missing something? Can you set the init directory on CFindFile?
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Never mind my last post.. CFileFind works perfectly...
Thank you!
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Whew! I was beginning to think we were going to have to send it back for repair.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
|
is it possible to put a checkbox in CListCtrl header ? if so how can i do that?
Thanks in advance.
|
|
|
|
|
Subclass it and you can do almost whaterver you want with the control
For instance, make it custom draw, and draw a checkbox along with the header text. Or just set image list that has a checkbox images (checked/unchecked) and change header item image when necessary (check/uncheck). Then you'd have to process WM_LBUTTODNDOWN to detect if user clicked the check box and change the checkbox state. Handling keyboard messages might be good idea (WM_SETFOCUS/WM_KILLFOCUS/WM_KEYDOWN), to allow user navigate the control via keyboard
Edward
|
|
|
|
|
I recently wrote an application with multiple custom controls all of which are derived from CWnd. My problem is that when I resize one of the controls the internal controls overlap which is ok. My problem is that I want to set the order in which they are drawn(z-order) but can't seem to get it. Anyone?
|
|
|
|
|
Try to set WS_CLIPSIBLINGS style for the child windows
Edward
|
|
|
|
|
I understand the concept of clipping children when repainting child components. The problem in more detail is as follows. I have two child custom controls inside a parent custom control(all derived from CWnd). When I move or resize the parent window I also move the inner controls.
When they overlap I want to be able to set one of the components to be always on top, even when another control gets focus. The code is roughly as follows, when I move the parent window..
void CParentCrl::OnSize(UINT nType, int cx, int cy)
{
CRect aRect,bRect;
// Calculate new child rects(not shown)
.
.
.
child1.MoveWindow(aRect);
child2.MoveWindow(bRect);
}
now from here how do I endure that child1(or two) will always be drawn on top of the other control?
|
|
|
|
|
The CWnd::SetWindowPos() function allows you to specify z-order of windows.
Robert-Antonio
"Love without sex is like a fish without antlers"
|
|
|
|
|
Hi altogether!
I'm trying to check whether a given path of a folder (also on the network or just a drive) really exists. I'd like to do this without using the Shlwapi.dll, but I have no idea how to do this. Any ideas?
Thank you very much,
Marcus.
|
|
|
|
|
_access()
_stat()
CFile::GetStatus()
GetFileAttributes()
can all be used.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I just tried CFile::GetStatus(), but this doesn't work for network locations. But I think one of the other functions will do the job. Thank you very much!
|
|
|
|
|
khb wrote:
I just tried CFile::GetStatus(), but this doesn't work for network locations.
Correct. I did not bother to read the docs (fine print) for each function I mentioned. I just wanted to throw a bunch of them out on the table so you would have plenty to choose from.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
No problem. My intention was not to bother you. I just wanted to share what I found out for the case that anybody else reads this thread (maybe because he has the same problem to solve). Thanks again for your help!
|
|
|
|
|
I'm currently using OutputDebugString in my code but would like to use a cout type operation to output new debug messages.
How do you get something like
dout << "hello world"
where the output ends up wherever outputDebugString normally puts its stuff.
Ok maybe it should be called
doh << "hello world"
since most debug messsages are error messages of the homer Simpson type.
|
|
|
|
|
don wade wrote:
I'm currently using OutputDebugString in my code but would like to use a cout type operation to output new debug messages.
How do you get something like
dout << "hello world"
where the output ends up wherever outputDebugString normally puts its stuff.
Ok maybe it should be called
doh << "hello world"
since most debug messsages are error messages of the homer Simpson type.
There may be some way of redirecting output to the debugger window, but I don't know how to do it. At a more basic level, the following works:
class OutputDebug
{
public:
void operator<<(TCHAR *str)
{
OutputDebugString(str);
}
};
OutputDebug doh;
Thereafter, you can use
doh << _T("Hullo world.")
If you want something more "cout-like" in that it can handle ints etc., then the following seems to work:
<Edit> The template parameter was originally omitted from the std::basic_ostringstream declaration in the code below because the angle brackets were HTML-ised. This has now been corrected.
</Edit>
#include <iostream>
#include <sstream>
class OutputDebug
{
std::basic_ostringstream<TCHAR> oss;
public:
OutputDebug & operator<<(TCHAR *str)
{
OutputDebugString(str);
return *this;
}
OutputDebug & operator<<(int x)
{
oss << x;
OutputDebugString(oss.str().c_str());
oss.str(_T(""));
return *this;
}
OutputDebug & operator<<(float f)
{
oss << f;
OutputDebugString(oss.str().c_str());
oss.str(_T(""));
return *this;
}
OutputDebug & operator<<(double d)
{
oss << d;
OutputDebugString(oss.str().c_str());
oss.str(_T(""));
return *this;
}
};
OutputDebug doh;
With this, you can do things like:
doh << _T("This is error number ") << 155 << _T(". The value of x is ") << 3.445 << _T(".\n");
John Carson
"I wish to propose for the reader's favourable consideration a doctrine which may, I fear, appear wildly paradoxical and subversive. The doctrine in question is this: that it is undesirable to believe a proposition when there is no ground whatever for supposing it true."
- Bertrand Russell
|
|
|
|
|
I´ve created an edit box Member Variable and I have to use it from another file but I don't know how could I do it.
In my tree view I have both files but, how could I use my m_strVar from the main file in the other one, so that I could update the edit box from this last file.cpp?
Thank you in advance
I have no idea
|
|
|
|
|
How about extern ?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|