For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
I tried to create a COM component for outlook using article "Building an Office2K COM addin with VC++/ATL". When I register COM, COM added in outlook (display a button in oulook), But If I again open outlook (means 2nd time), COM addin is not there.
What I need to change so that COM functionality should be there untill I unregister the COM component?
I need VC++ code,for copy the particular data from Notepad to another Notepad.
Example, i have lots of data, i need to copy the particular content from Notepad to another Note pad.
<Debug:LogRLZ> arg Answer = windows //WINDOWS option will go to excel sheet
<Debug:LogRLZ> arg Answer = patio_doors //patio_doors option will go to excel sheet
<Debug:LogRLZ> arg Answer = entry_doors //entry_doors option will go to excel sheet
I have a problem. I have a windows service compiled with various dll's and it includes a project in C++ that contains a reference to Oracle.DataAccess.
The server where that service was installed now has Windows Server 2008 R2 x64. When I try to install the service i get a error in the C++ project. I compiled the project for x64 and now it installs perfectly but when i try to use it i have a BadImage error refering to the Oracle.DataAccess.
I understand that the problem is because the Oracle.DataAccess is x32, but since i can't install oracle x64 in that machine is there anything I can do to make my c++ project run as x64 using the Oracle.DataAccess x32 in the Windows Server x64?
I writing a small application which will notify whenever any windows messages or Dialogue boxes appear with any of the (Error,Information,Warning,Question) Icons.
this is how i am doing..
WinHAn = FindWindowA(NULL,"Windows Security");
if(WinHAn != NULL)
static BOOL CALLBACK SearchIcon(HWND hwnd, LPARAM lParam)
style = GetWindowLongPtr(hwnd, GWL_STYLE);
if ((style & SS_ICON) == SS_ICON)
thisHan =(UINT64)SendMessageW(hwnd, STM_GETIMAGE,IMAGE_ICON, 0L);
searchHan =(UINT64) LoadIconA(NULL, (LPCSTR)(IDI_WARNING));
if(thisHan ==searchHan )
This is only for Warning messages.But it is not working. can any body tell me what the problem is..
You might add some more output to your program to see which code is reached or use the debugger for the same purpose. E.g. if a window with the title "Windows Security" is found and if such a window contains a static control with an icon.
Your check for SS_ICON is wrong (but this is not the reason for finding nothing). You should use:
if ((style & SS_TYPEMASK) == SS_ICON)
Finally I'm not sure if this can be done this way. While the LoadIcon description states that it may return a handle to an existing resource, this may be only true when the icon has been loaded by the same application.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Jul-14 20:28