Type: Posts; User: Oliver Twesten
Search took 0.03 seconds.
November 15th, 2004, 01:48 PM
I wonder whether there is a way to clear the $_POST superglobal array or even set an array element to a new value.
I've got a self-referencing form where the user can enter some text and...
September 22nd, 2004, 03:48 AM
Oh, I just found it: VC98\CRT\SRC\STAT.C function declaration "int __cdecl _tstati64".
It really uses FindFirstFile / FindClose API. I must say that I did not believe these APIs are that fast!
September 22nd, 2004, 03:42 AM
Where did you look it up? I just searched the MS VC directory and the web but did not find the implementation of stati64.
BTW: The function names are _stati64 and _wstati64().
September 21st, 2004, 05:33 AM
At least on my Win2k workstation, _stati64 is screaming fast compared to CreateFile / GetFileSize / CloseFile!
Maybe it is a drawback that it does not support security attributes, but I do not...
September 20th, 2004, 04:57 AM
I just tried GetFileAttributesEx(...) and it really seems to be *much* faster than GetFileSize(...)!
The only drawback is that GetFileAttributesEx(...) is not supported by Win95.
September 17th, 2004, 01:09 PM
Thank you for your suggestions!
But GetFileSize etc. require that the file was previously opened by a call to CreateFile. This is the API I'm currently using, but it seems a little slow to...
September 17th, 2004, 08:08 AM
What is the fastest way to retrieve the (64 bit) filesize of a file?
I need to get the size of *many* files from various locations (on WinXP systems,only), so what would be faster:
August 23rd, 2004, 02:00 PM
You're right, it's long ago. I just peeked into my old code and here's what I can tell from a first glance:
- I added an own CToolTipCtrl member variable.
- I handled TTN_NEEDTEXT...
June 13th, 2004, 10:05 AM
Use pointers and swap them instead of the variable values :)
That's good to hear :)
Thank you very much!
Dear Paul McKenzie
Thank you for this information! I use VC6.0 with the brand-new service pack (I do not remember the number).
Using enums would be a solution, but may I ask one more question...
This simple code below compiles without error when pased into one file. But when I split the definitions and declarations into separate files (e.g. Base.h, Base.cpp, Derived.h, Derived.cpp -...
February 27th, 2004, 01:43 PM
Hi Yves M & Andreas
Thank you for your suggestions. Yes, from the three examples I do also prefer the second one. But I think it still has some drawbacks:
1) The progress dialog is not modal....
February 27th, 2004, 10:25 AM
This is a general design question.
Say I want to implement some class member functions that perform long term calculations that should be able to report progress. The functions should not...
February 19th, 2004, 02:58 PM
Yes, I think this was a valuable discussion and I learned a lot (I think ;))...
Sometimes, things in the Windows world are just not ideal (this one I knew before;)). What bothers me most is that I...
February 19th, 2004, 01:07 PM
You're right, this would be the most simple and cleanest solution - it was my very first attempt to solve this problem.
But unfortunately, the result is not as expected because in a series of...
February 19th, 2004, 07:38 AM
Sorry if this sounds as if I just do not want to try your solution. The point is, that I can not get it to work for my special case. Maybe you can help me and I'll surely use the...
February 18th, 2004, 03:41 PM
Right. So can we "fix" this by sending WM_LBUTTONDOWN and WM_LBUTTONUP?
February 18th, 2004, 07:20 AM
Funny, I just found a quite similar solution and wanted to post it. My attempt was to handle WM_LBUTTONDBLCLK
void CMyButton::OnLButtonDblClk(UINT nFlags, CPoint point)
February 17th, 2004, 09:27 PM
Yes, you're right... it works well for my situation, but it is not generally desireable. Thanks for this note, I'll better keep it in mind!
February 17th, 2004, 06:57 PM
Just had the same problem, thank you for the tip of CS_DBLCLKS style. I think that I found a solution without deriving my own class:
That's better for my case; maybe someone else...
February 11th, 2004, 03:48 PM
I do not know if anyone already pointed out the article "Surviving the release version" by Joseph M. Newcomer:
I think this one is very...
February 11th, 2004, 03:44 PM
I do not know, but since MS obviously tends to use very simple sorting algorithms, it does not seem to be improbable that they also use very simple search algos (=linear search O(n))......
February 5th, 2004, 11:33 AM
Thanks for this idea. You're right that handling of SC_MAXIMIZE etc. is no good way to go - it is most obvious when maximizing the window by double-clicking on the title area instead...
February 5th, 2004, 09:08 AM
may I quote myself...
But thanks anyway.
Click Here to Expand Forum to Full Width