Search:
Type: Posts; User: peterchen
Search:
Search took 0.50 seconds.
-
Both are "more than just compilers", they are complete "Integrated Development Environments" (IDE's), containing:
* Compiler (of course :D )
* Editor
* Debugger (for step-by-step execution etc....
-
November 23rd, 2002, 04:37 PM
Gorgor: Thanks! It's always nice to hear a post has been helpful, especially if it's 2 years old....
souldog:
all this is very compiler-dependent, but there's a "normal" implementation, at least...
-
September 4th, 2002, 01:27 PM
problems with FindWindow(Ex):
* FindWindow(Ex) will hang, if there is any (even invisible) desktop window that belongs to a hung app
* FindWindow relies on the application title, which is quick...
-
September 4th, 2002, 12:55 PM
Anthony:
microsoft has implemented this feature in MS Word for a few menus: certain menus of the "drawing" toolbar have a small top stripe that turns the menus into floating toolbars
the...
-
September 4th, 2002, 12:46 PM
If you have a HWND to the main second app, you can use SendMessageTimeout.
if you just want to "ping" it to see if it's alive, use a "harmless" message such as WM_GETTEXTLENGTH. Or you just...
-
September 4th, 2002, 12:38 PM
Set focus to the edit in OnInitDialog, but return FALSE (instead of TRUE, which is "the default)
-
September 4th, 2002, 12:34 PM
Keith Rule's CMemDC class should be the answer for this. Although I never used it, everybody and my grandma love it:
http://www.codeproject.com/gdi/flickerfree.asp
-
September 4th, 2002, 12:20 PM
To declare a pointer to a member function:
struct cfoo {
int bar(int x);
};
int (cfoo::*pFooBar)(int) = cfoo::bar;
// to call, you need an actual instance -
foo.*pFooBar(17);
-
September 4th, 2002, 12:10 PM
shlwapi 4.71 (requires IE4, but see below) offers:
PathCombine to concatenate two path's, and
PathCanonicalize to "make it pretty".
from MSDN:
"All systems with Internet Explorer 4.0 or 4.01...
-
August 20th, 2001, 07:33 AM
This information is written to the registry.
for example, for .txt ==> Notepad:
the key "HKEY_CLASSES_ROOT\.txt" has the default value "txtfile"
this assigns the ".txt" extension to a certain...
-
August 20th, 2001, 07:13 AM
Hi!
Tip:
You can open your control (.dll, or .ocx) in OLE Viewer (run OLE Viewer, choose "View Type Library.." from menu), where you can see all Components with their CLSID's implemented in the...
-
November 20th, 2000, 06:01 PM
Hi!
Depends on what you're doing. Typically, VC++ displays assembly only if a) there's no source available, or it doesn#t find the source code, or b) you explicitely requested this.
Usually,...
-
November 20th, 2000, 05:50 PM
Hi,
You have two ways:
a) kill & restart explorer process. To kill it, do Start / Shutdown... (so the Shut down / restart etc. dialog box opens). In the dialog box, hold ctrl-alt-shift, and...
-
November 20th, 2000, 05:38 PM
Hi!
You can only try to locate the Message Pump of the receiving thread, and put a breakpint there.
Peter
-
November 20th, 2000, 12:23 PM
Hi,
Yes, Icon *Resources* can be in multiple sizes & color depths, but when loaded and as a HICON, it has a definite size & depth (a MSDN suggests it's internally represented as some DDB's).
I...
-
November 20th, 2000, 07:31 AM
Thanks!
I already thought of that - but I was looking for a better way. As much as I understand the documentation, the bitmaps are copies of the icon, I'd like to avoid that...
Peter
-
November 20th, 2000, 05:33 AM
Hi all!
How to get the size of an Icon? I just have a HICON, and need it's dimensions.
Any help? (Rating guranteed ;-)
Peter
-
November 4th, 2000, 08:15 PM
hi,
a) Why & How do you want to use it? That's the first question that comes not only to Sam Hobb's mind ;-)
b) What it is:
To process windows messages, each (UI) thread has a so called...
-
November 4th, 2000, 08:08 PM
Ahh... the dreaded header Control again...
First, the header is a child window of the list, so ON_NOTIFY_REFLECT is bad... the Clazz Wizard generates wrong code here.
Change the Message Map...
-
November 4th, 2000, 08:00 PM
Hi,
For correct window positioning (save&restore), it is higly recommended to use GetWindowPlacement / SetWindowPlacement. These functions take care of various problematic issues (like Z order, and...
-
October 31st, 2000, 04:41 PM
Hi,
Well.. if you didn't hear of binary numbers before, perhaps this information is enough: If you add the ES_NUMBER style using '+', the result is wrong if the style was already set. Using '|',...
-
October 31st, 2000, 04:05 PM
The '|' operator does an bitwise 'or'. In long terms c=a|b means:
- look at a and b in binary
- for each bit position: if the bit is set in a, or b, or both, set the bit in c, otherwise, clear...
-
October 31st, 2000, 10:40 AM
Hi,
List Ctrl sends an LVN_DELETEITEM, and LVN_DELETEALLITEMS notifications when an item is deleted, so typically you would delete the myRect there.
Peter
-
October 23rd, 2000, 01:50 PM
Hi,
rand() % 6
will generate random number 0..5
Note that rand() is not useful for statistical purposes - and the modulo makes it worse (a bit). But if it just should 'look random', or it is...
-
October 13th, 2000, 04:40 PM
Hi,
I'd say even if they should move the entire thing onto .NET, the Document/Object Model, and the interface will stay the same. And I don't think MS will drop COM completely - although it will be...
|
Click Here to Expand Forum to Full Width
|