|
Loren,
Have you thought about using the timer event. In the OnInitDlg section of your code you could create a timer that calls the OnTimer event. Have it run every second. Then you can let the rest of your program do what you want it to do. I have this running a clock in a status bar. Work great.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Have you considered using windows hooks ?
gabby
|
|
|
|
|
Hi all.
I am trying to customize the cookie data in the http headers of my IE. That is to say I must add my own 'Cookie' header to standard IE http headers. But, each time when I use IWebBrowser2::Navigate2() function to add 'Cookie' header(such as 'Cookie: jsessionid=0DE9IIUD03D23'), the 'Cookie' header will be filtered by IE. It seems that the 'Cookie' header is maintained by IE itself and it is not changeable.
Is there any way to modify IE's 'Cookie' http header according to you need?
Any suggestion will be appreciated.Thanks very much.
Leo.
To be better, better and better ...
|
|
|
|
|
Hi All!
Can Anyone tell me how to patch a memory address in an .exe from the same exe?
|
|
|
|
|
Dennis L wrote:
...patch a memory address...
Exactly what does this mean?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
In the U.S., Memory Address Patches are available in most Pharmacies. If you can't find them you can use the Generic "Patch Patch" with the "Universal Patch Adaptor".
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
How to get "." formated IP Adress string from hostent structure, returned after gethostbyname(...)?
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Like:
CString strIPAddress;
struct sockaddr_in dest;
LPHOSTENT lpHostEnt = gethostbyname(szHost);
if (NULL != lpHostEnt)
{
memcpy(&(dest.sin_addr), lpHostEnt->h_addr_list[0], lpHostEnt->h_length);
strIPAddress = inet_ntoa(dest.sin_addr);
}
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
thankx, that was useful to me
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
Hi!
I have problems making URLs in RichEdits clickable.
What I have done so far:
1) Added the ENM_LINK flag to the SetEventMask parameter
2) Send a EM_AUTOURLDETECT message to the RichEdit with WPARAM = TRUE
3) In OnNotify, check for the EN_LINK message in NMHDR.
But unfortunately the OnNotify message never receives a message from the RichEdit control. Also the links don't get blue and underlined automatically
Any idea???
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Dominik Reichl wrote:
Any idea???
See if this article gives you any ideas.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Seems to be exactly what I was looking for
Thanks!!!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
I have a procedure that creates a new instance of my CListCtrl-derived object on the screen in a random position when the user clicks a button. That works fine. But I'm trying to let the user then drag the control around on the form once it's there and I'm trying to use the MoveWindow() function, but I'm doing something wrong. Here's what I have so far:
if(nFlags == 1)
{
CRect rect,rect2;
int x,y,rectx,recty;
x = point.x - prevPoint.x;
y = point.y - prevPoint.y;
this->GetWindowRect(&rect);
this->MoveWindow(&rect);
}
CListCtrl::OnMouseMove(nFlags, point);
after making sure that the left mouse button is down, I was trying to move it according to the position it was in when the mouse was first clicked, but that wasn't working, so I just tried to do it with the exact same coordinates and everytime I try to move it, it just appears a couple hundred pixels off to the right and down. (there's code left in from what I was trying at first also)
If it's broken, I probably did it
bdiamond
|
|
|
|
|
Perhaps the code is using screen coordinates but needs client coordinates, or vice versa. Check out ScreenToClient() and ClientToScreen() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've tried both of those also, and they still seem to be getting me nowhere. Thanks
If it's broken, I probably did it
bdiamond
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
You might need to experiment with setting the notify-style and having an ID other than IDC_STATIC , but I would recommend that you use a CWnd -derived class instead of a CStatic instead.
|
|
|
|
|
How to implement a scrollbar in CStatic-derived class. When I wrote:
EnableScrollBarCtrl(SB_HORZ);
SetScrollRange(SB_HORZ, 0, 100);
ShowScrollBar(SB_HORZ);
I can see a scrool bar but I can't control it. WM_HSCROLL don't received too.
What's a problem. How to implement it.
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
I have captured a frame from a video stream using capEditCopy, then created a IDataObject pointer called frame1,
IDataObject * frame1;
then used OleGetClipboard with frame1,
OleGetClipboard(&frame1);
Now as I understand this, and I don't understand this all that well, this means that the frame1 is now a pointer to the data that was placed on the clipboard with capEditCopy. If this is true, how do I know that it is grabbing the right stuff from the clipboard, if this is not true, can anyone suggest a way to get the data from the clipboard.
My aim is to get the data in some format, bitmap for example, that I can examine the RGB values of each of the pixels in the frame. What I don't understand also, is, what format is the data associated with frame1, I assume IDataObject. How can I turn this into a bitmap where I can examine the pixel values. Is this what the GetData function does, and if so how do I use it?
Any help with this would be very much appreciated. Thankyou in advance.
Micheal
|
|
|
|
|
The question is off-topic, but as the answer is quite simple, I'll bite:
No idea
But you should be able to figure this one out yourself (especially as it sounds like a homework-question). Will the library contain many books? The books contain many libraries? Can a loan belong to several people? Can a person have several loans? Go on like this, and you have solved the multiplicity (this is fun!)
The association, is a library a part of a book? A book a part of a library? A loan a part of a book? A book a part of a loan? Will the part outlive the whole?
And dependancy, is a library a part of a person, or is the library only using the person? Or vice versa?
|
|
|
|
|
Too kind
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fuity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
I feel like I'm someones mum... BTW, you've forgotten the 'r' in fruity in the sig
|
|
|
|
|
Thanks, And I was sure that I proof read it!
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Hi folks!
Is there a generic way to query the current CPU temperature?
Thanks,
Eric
|
|
|
|
|
Not that i know of. Usually the motherboard will come with utilities to doe this, but i don't recall ever seeing any with an API you could call into from your your code.
There might be something in the WMI computer system hardware classes.
e.g. Win32_TemperatureProbe
I've never used it so i don't know if/how it works.
...cmk
Save the whales - collect the whole set
|
|
|
|