I have Windows 7 x64 in Spanish and the line: HWND lHwnd = FindWindow("Shell_TrayWnd",NULL);
In my computer returns: lHwnd=0x0002008c {unused=0 }
Hope it helps.
Jose David Pujo
Posts
-
Minimizing Windows -
VS2005, Edit and Continue, Apply Code Changes always disabledWell, good news! Finally I got the clue to this subject: Is seems that deleting the .ilk file of the project solves the problem. It may be necessary to rebuild-all, re-open the project ... Now it's working fine. Jon, let me know if this solution works for you. I made some other changes in my project that may have also affected... cu
-
VS2005, Edit and Continue, Apply Code Changes always disabledI still haven't solved the problem. If you have any clue about it please make me know. Thanks anyways. Now i know i'm not alone.
-
Working with DBCheck if you are using transactions among the context
-
22 " Monitor questionThank you very much for replaying, Now i dubt on buying a 24" panel instead of my first idea of 22 inches. I will use it only for coding, not for gaming, neither watching movies... Then, 24 inches Samsung better than BenQ ? (I'm very happy with my BenQ monitor) What do you think about it?
-
22 " Monitor questionI need to buy a new 22" TFT monitor for software developing. I have to replace my old 17 inches BenQ panel. I will use it just for programming (Visual Studio coding) and I need a panel with clear fonts and suitable for spending many hours in front of it (avoiding eye fatigue). Any ideas? brand/models? Thanks in advance,
-
Automation of excel,word and powerpointJust use the no_namespace keywork in the #import "..." Then you must refer each function with the namespace before:
#import <c:\app\office\office\excel9.olb> no_namespace
...
Excel::_ApplicationPtr excp;
... -
Zero copy on windowsHi again, I remembered a way to copy files across network: TransmitFile Function The TransmitFile function transmits file data over a connected socket handle. This function uses the operating system's cache manager to retrieve the file data, and provides high-performance file data transfer over sockets. Note This function is a Microsoft-specific extension to the Windows Sockets specification. http://msdn.microsoft.com/en-us/library/ms740565(VS.85).aspx[^] Hope this one works...
-
Zero copy on windowsI'm almost sure that there isn't any thing like that in Windows API. The standard functions: CopyFile, CopyFileEx, MoveFile don't work as you want: http://msdn.microsoft.com/en-us/library/aa363851(VS.85).aspx[^] PD: If you find such functionallity please post it. :laugh:
-
Convert image to byte arrayYou can start with GetDIBits GDI API function. GetDIBits The GetDIBits function retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format. int GetDIBits( HDC hdc, // handle to DC HBITMAP hbmp, // handle to bitmap UINT uStartScan, // first scan line to set UINT cScanLines, // number of scan lines to copy LPVOID lpvBits, // array for bitmap bits LPBITMAPINFO lpbi, // bitmap data buffer UINT uUsage // RGB or palette index );
-
VS2005, Edit and Continue, Apply Code Changes always disabledHello, I can't understand why I have always disabled the "Apply Code Changes" menu item while debugging. Visual Studio 2005. - I have set the Tools / Options / Debug -> enabled Edit and Continue - I have set the C++ option in my project -> Program Database for Edit and Continue - I have deleted all Debug folders and .ncb files (just for case) - I have rebuilded-all my project. Still not working Suprisingly the same project at home is working fine with "Edit and Continue"... I'm just getting mad. Some suggestions? Thanks a lot!. PD: I searched forums and found some replys without success
-
DrawText in animatewindow. [modified]I agree, WM_TIMER will work fine
-
Framing a window - Not at creation [modified]Maybe you could use SetWindowsLong + SetWindowPos (with SWP_FRAMECHANGED flag enabled). Look: SWP_FRAMECHANGED Applies new frame styles set using the SetWindowLong function. Sends a WM_NCCALCSIZE message to the window, even if the window's size is not being changed. If this flag is not specified, WM_NCCALCSIZE is sent only when the window's size is being changed. http://msdn.microsoft.com/en-us/library/ms633545.aspx
-
DrawText in animatewindow. [modified]I suggest at the end of the block, after DrawText.
-
DrawText in animatewindow. [modified]try
RedrawWindow (hWnd, 0,0,RDW_ERASE | RDW_INVALIDATE | RDW_FRAME | RDW_ALLCHILDREN);
Maybe parameters should be diferent: Link: http://msdn.microsoft.com/en-us/library/ms534900(VS.85).aspx[^]
-
Drawing Auto-adjusted proportioned textI think that there isn't any GDI API function to make such job. try this link: http://msdn.microsoft.com/es-es/library/4acfw2ha(VS.80).aspx#_mfc_cdc_text_functions[^]
-
ftp connection in C++Try the WinINet API. I'm using it in my apps. http://msdn.microsoft.com/en-us/library/aa383630(VS.85).aspx[^]
-
Basic string manipulation questionGood try, i've got another one:
char *email="myemail@mail.com";
char *domain= strchr(email,'@')?strchr(email,'@')+1: 0;:)
-
Basic string manipulation questionSimple function:
int GetDomain (const char /*IN*/*email, char /*OUT*/*domain)
{
if (!email || !domain) return -1; // err 1
char *c= strchr ((char*)email, '@');
if (!c) return -2; // err 2
strcpy (domain, c+1);
return 0;
}...
char a[100]="";
int e= GetDomain ("sample@domain.es", a); -
/OPT:WIN98 setting ¿still useful?Thanks you very much.