Suddenly i have discovered that menu option "New ATL Object..." is lost in my Visual Studio. What's happend? how it can be repaired? help, plz!
DanielP
Posts
-
"New ATL Object..." is lost! -
CImageList / CComboBoxEx - what's wrong?What does InsertItem() return? suggestions: 1. you don't need invoke GetBuffer(0). you can use just Lock() and UnLock(). 2. Clear COMBOBOXEXITEM before using by ZeroMemory(). 3. set cchTextMax in COMBOBOXEXITEM
-
Icons??Some rules i observe: 1. icon consists of no more then 3 objects 2. there is one main object 3. use standard icons for standard actions (cut, copy, paste, etc) and common consideration: use standard colors (red - emergancy, error, caution; green - success) but i, personally, do not draw icon. i prefer that designer do it
-
Can't install Platform SDKdo it via Add-Remove Programs
-
Mem Usage???I think VirtualQueryEx()
-
Toggle Window/Control Visibility?hide it: ::ShowWindow( hwnd, SW_HIDE ); show it: ::ShowWindow( hwnd, SW_SHOW );
-
Combo Box showing Directories & FilesThere is no. It's better way to invoke standard Open Dialog by GetOpenFileName().
-
Anyone here ever programmed an MMC snapin?set in GetResultViewType(): *pViewOptions |= MMC_VIEW_OPTIONS_EXCLUDE_SCOPE_ITEMS_FROM_LIST;
-
memory leaks...It's true. If memory size is plenty large then you can see it in Task Manager
-
Use Plateform SDK question.Go to Tools->Options->Directories page, add ?:\PROGRAM FILES\MICROSOFT PLATFORM SDK\INCLUDE path to directories list and move it to the top of the list.
-
unnamed registry keysjust set lpSubKey to NULL: RegQueryValueEx(hKey, NULL, 0, &type, (unsigned char*)buf, &bufsize)
-
ShellExecute()that's right code. And what is happend then? (Note that lpVerb can be setted to NULL too )
-
Renaming registryWhen I do that my program works very fast too :))) ..And why you suppose it works slowly? Most of Registry is cached in memory therefore it's just memory copying. But if you don't believe me, run Regmon and see for yourself
-
ctrl+alt+del(windows 2000)it works only for Windows 95/98/Me
-
Renaming registryThere is no such way. Regedit at first creates new key, copies all subkeys, and then deletes old key.
-
ShellExecute()Set NULL. To know current dir - invoke GetModuleFileName()