|
0xfffffff is not NULL. 0x0 is NULL. That is why the assert is firing.
How it got to that state, is an entirely different question. You could try to trace it back and see where it gets this value, you will probably find it happens in one of the dlls that were replaced by the service pack. Is it possible that one of the XP dlls got reverted to an earlier version when the SP 5 was installed?
I use VC 6 with SP5 on my XP Home edition. I haven't seen this problem, but I haven't used it much in that environment yet.
Good Luck,
Bill
|
|
|
|
|
Bill,
Thanks for your response. I know 0xfffffff is not NULL, but I'm wondering why the stupid variable wasn't initialized to NULL to satisfy the ASSERTION condition. I believe that you are correct in saying that one of the XP dlls got changed by the service pack, but I fail to see why Microsoft did not say anything about it in their report of the fixes.
Anyway, if someone else comes up with this problem I'll look into again, I uninstalled then reinstalled Microsoft Visual C++ Standard Edition to start from square one, didn't take too long and everything is back to normal now, so I'm in business.
But I definitely want to know what the heck happened...
Thanks for your help!
Sincerely,
Alexander Wiseman
Est melior esse quam videri
It is better to be than to seem
|
|
|
|
|
I'm trying to create a static window and be able to draw lines inside that window.
|
|
|
|
|
Handle OnPaint to draw in the window.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
|
|
|
|
|
A static window...like
HWND hwnd = ::CreateWindow("STATIC", "Example text", WS_CHILD |WS_VISIBLE....);
The way I see it you have a few options:
1) Subclass your STATIC control and use it's own WM_PAINT to draw on the control.
2) Use it's returned handle (hwnd) and retrieve it's HDC using GetDC() In it's parent's OnPaint() (WM_PAINT) also draw to this DC
2) Make it ownerdrawn WS_ONWERDRAW handle the drawing in a subclassed WndProc() or in the parents OnDrawItem.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
This question is actually just about C++. I'm writing a program and I have this huge set of calculations, for which I need a lot of accuracy. I'm using doubles because they are the most accurate as far as I know. But they still aren't accurate enough, my results are still messing up, due to lack of accuracy. Is there any way to get more accuracy than a double? And I mean, a lot more accuracy (like even triple the number of decimal places if thats possible).
|
|
|
|
|
Check GNU MP library out.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
If you can convert your stored results to integers (necessary to reduce round off errors, anyway), you might find this link useful.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Why do you need that many digits?
The reason I ask is that in many cases people think they need that many digits when they really don't. Errors can accumulate with float point computations. Things can be done to improve accuracy without adding more digits.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
Currency comes to mind, although I've never used them from C++ other than for the occasional LARGE_INTEGER hack.
___________
Klaus
[www.vbbox.com]
|
|
|
|
|
Hi,
Just installed VS.NET, and i've been recompiling my apps in VC++7. I'm getting a lot of compiler warnings about conversion from ULONGLONG to various other data types.
I'm guessing that ULONGLONG is a new data type. What does it correspond to? I can't find much in MSDN about it, just something to do with performance monitor which is hardly relevant.
Some MFC member functions seem to return it, such as CFile::GetLength(). Please tell me more about it! and why is there virtually nothing in MSDN about it?
thanks
Jon
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
unsigned 64 bit integer. Some MFC routine have been modified to return this value. If found this information in MSDN.
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
I'm trying to implement a Popup Static Window with WS_SYSMENU so that the window can be moved around the screen. I can create the window but the window cannot be moved. Is it possible.
Thanks.
|
|
|
|
|
make sure you're also using WS_CAPTION
And if words were wisdom, I'd be talking even more. The Offspring, I Choose
|
|
|
|
|
is it possible to create the following application using vc++?
inputs to the application :
1) IP address of a computer on a network
2) the name of the "shared" folder on that remote computer
what my application should do :
1) display a listing of all the files in the shared folder on the remote
machine
2) retrieve a file from the shared folder on the remote machine to my machine.
basically..the functionality is somewhat similar to windows explorer's 'Map Network Drive'...only..my application needs to do it.
can anyone help me out here???
thanks a lot anyways!
|
|
|
|
|
er... if i understand what you're asking, it's simple.
In windows, pretty much wherever you see a full path, you can use a network path.
For example, CreateFile will work with "\\[machine]\[share]\test.txt" as well as it'd work with "c:\test.txt". Assuming the machine, and share exists and you have permissions to access them.
Sorry to dissapoint you all with my lack of a witty or poignant signature.
|
|
|
|
|
thanks for the pointer!! ..didn't realize it was that simple!
|
|
|
|
|
You can enum the files in the shared folder using the functions
CFileFind::FindFile And CFileFind::FindNextFile for example
CFileFind pFind;
bRet = pFind.FindFile("\\[Computer name]\\[shared folder]\\*");
while(bRet)
{
bRet = pFind.FindNextFile();
m_pList.AddString(pFind.GetFileName());
}
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
thanks!! ..definitely found this useful!
|
|
|
|
|
How do u combine two projects into one single project.
Example,
Programmer 1 : Programmed one dialog box for part of the whole project.
Programmer 2 : Programmed another dialog box for another part of the whole project
Now another programmer needs to combine these two projects into one. Both of them used MFC and classwizards. How does he combine the dialog boxes and everything???
Hope someone has a solution.
Thanxs.
P.S. Newbie qn....
|
|
|
|
|
Maybe this thread will give you some ideas.
|
|
|
|
|
Hi !
I've done an little client/server application which works on Windows CE.
When I launch the server on my desktop machine, I can connect a client from Pocket via ActiveSync. But at connection, the client IP address shown by the server is my desktop machine IP address. Then, when I launch the server on PocketPC, I don't have any address to connect to ! Is ActiveSync giving an IP address ? If so, how may I take it ?
Thanks for any help.
Emmanuel Derriey
|
|
|
|
|
Does anybody know how to access OLE Object data members in access with CRecordSets.
I want to store a larnge array of numbers as OLE Object data type in MS Access and than store and update the data from CDaoRecordset derived classes. How can I do that... Hints?
Thanks
|
|
|
|
|
I am trying to use a CTreeCtrl in a CDialog box.
I want to set the background colour of the tree control to the same colour as the dialog. I have tried using setBKColor(COLORREF clr), however this didn't work, I also tried getting the CDC from the CTreeCtrl and seting the color that way and it still didn't work.
Any ideas on why?
do I need so set some special property to enable me to change the background?
cheers
Andy
|
|
|
|
|
CTreeCtrl::SetBkColor works perfectly for me. The method is implemented with TVM_SETBKCOLOR, which is available on Win98, Win2000 or on systems with IE4 or later installed. Maybe you're using some ancient Windows version?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|