|
Do what Maximilien suggested.
replace every oo with OO!
Russell
|
|
|
|
|
youbo wrote: };where is the error...
The "error" is that you did not use the debugger.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
CString::Find ("html::") ?
CString::Find ("href=") ?
I don't know of any *nice* tools for it, but there may be!
Or you could write a nice class for it, and make an article?
Iain.
|
|
|
|
|
|
This[^] article seems that has got a function that finds all the links in a web page. Don't ask me for the algorithm that it use;P
Russell
|
|
|
|
|
You are wellcome
Russell
|
|
|
|
|
Hello Friends,
I am using the Win32 Application. (its good to make clear).And I want to save the Device Context into any Bitmap File.
I.e.
I have a HDC called hdc. I just want to save it into a .bmp File.Is this possible to do. if yes please tell me How ??.
|
|
|
|
|
|
Thnx for help. But i already mention that I am Using Win32 Not MFC.
So. If you have the Solution for Win32 please tell me.
|
|
|
|
|
Yeah I saw your question(I said that article is MFC) and that article but if you see that article you can find answer to write HDC to a bmp file I wrote
|
|
|
|
|
#include "atlimage.h"
bool SafeDcToBmp( const CDC& cdc, LPCTSTR cBitmapPathAndName )
{
CImage image;
CRect cdcRect;
bool bSucc = false;
if( cdc.GetWindow( ) )
{
cdc.GetWindow( )->GetClientRect( cdcRect );
image.Create( cdcRect.Width( ), cdcRect.Height( ), 24 );
::BitBlt( image.GetDC( ), 0,0, image.GetWidth( ), image.GetHeight( ), cdc.m_hDC, 0,0,SRCCOPY );
bSucc = ( S_OK == image.Save( cBitmapPathAndName ) );
}
return bSucc;
}
//Usage
CDC cdc;
cdc.Attach( GetDC( )->m_hDC );
SafeDcToBmp( cdc, _T("c:\\MyFile.bmp") );
cdc.Detach( );
|
|
|
|
|
Your code is good but here a problem he didnt use of MFC,his program is Win32.;)
|
|
|
|
|
I am writing a mouse hook program to trace the mouse movement and something confused me. I use WH_MOUSE to hook the mouse event in global wide, but some message like WM_MOUSEMOVE can not hooked when the mouse leave the window with a left/right button down, so I have add the SetCapture() function to my code when the GetCapture() return NULL, but it does not worked well, in some window like "MS word" or "Winamp" it go wrong.
I have also tried the WH_MOUSE_LL, it realy worked well. but it slowness the animation In window XP when turn on the visual effect "animation the window when Maxminze or Minmize", you will find the mouse move slowness when you click the mini/max box in the titlebar in any window with the mouse move quickly.
It totally confused me, some one can help me.
Thanks.
|
|
|
|
|
First question, why do you want to hook the mouse?
|
|
|
|
|
Second question - What makes you think you can capture the mouse and no other app
is going to capture the mouse itself?
That's a naughty thing for a mouse hook to do Slowing the system down with your
hook is generally considered BAD as well.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I want hook the mouse to trace the mouse move track, so I can measure the mouse move distance on the screen. And in the hook, my App just want to filter the cursor' position from the "lParam" parameter.The problem is I can filter the cursor's position in any window with mouse move in its window's rect, but if I press a left/right button down in the window then keep the button hold and move the mouse out of this window, the mouse message will skip this hook which using WH_MOUSE.
So I use the WH_MOUSE_LL hook, every thing goes fine here, only slow the mouse when I click the min/max box on the window's title bar with mouse move quickly, if you are using WinXP turn on the visual style "animation the window when Maxminze or Minmize" and download sn app.zip from this address: "http://www.codeproject.com/useritems/MBtn2DblClickVC.asp" which hooked with WH_MOUSE_LL too, it will appear this problem also.
Could you give me some advise to solve this problem, using WH_MOUSE but how to capture the out window message, or using WH_MOUSE_LL but avoid slow the mouse move?
thanks.
|
|
|
|
|
Try Stop Services "ATI HotKey Poller"
i was solve this problem.
Alvin Hsieh
|
|
|
|
|
Where do i change the name of my exe??
When i run it, it shows Untitled-ProjectName....i need to change it to something else
|
|
|
|
|
|
yashveer wrote: Where do i change the name of my exe??
When i run it, it shows Untitled-ProjectName....
"Untitled" is not the name of your application. What you are referring to is the caption text. You did not indicate on which side of the '-' you wanted to change, so my suggestion is for the right side. The preferred method is to change IDR_MAINFRAME in the string resource table.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yashveer wrote: Where do i change the name of my exe??
You set it with CDocument::SetTitle() .
Normaly - loading a Document automagically changes the Document title to "DocumentName - ProjectName"
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: CDocument::SetTitle()
That, on my opinion, doesn't change the name of the exe file...but only the title on the window of the application
Russell
|
|
|
|
|
That is true.
I was under the impression that he was unhappy with the "Untitled-" part of what he thought was the name of his EXE.
But you are right - he might have wanted to change something different.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
I readed again the question, it isn't clear ... Probally you get the real question
Russell
|
|
|
|