|
Screen mate?
Is that some kinda fancy desktop application?
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
yes. sometime called "desktop toy"
the screen mate will move on desktop and do something fun
I want to know what's component that screen mate move over (such as edge of window app)
Thank a lot
|
|
|
|
|
The personnel manageress in my company has a very cute penguin screen mate!
Maxwell Chen
People say "No news is good news". Then, no code is good code!?
|
|
|
|
|
I have written a button class that sends a user defined message when clicked. The message is passed as a parameter when the button is created.
It works if I know the specific window to post the message to. How do I post the message so a class that is not known untill runtime can handle it?
Would it make more sense to store a CWnd* as member data for the window to send the message to?
Thanks, ~Paul~
|
|
|
|
|
Anonymous wrote:
It works if I know the specific window to post the message to. How do I post the message so a class that is not known untill runtime can handle it?
If you have a valid HWND, then you can PostMessage to it.
Anonymous wrote:
Would it make more sense to store a CWnd* as member data for the window to send the message to?
If you prefer the MFC way, that might be an option depending on your design needs.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
I would rather post globally to the application so that any class can handle it. Is that possible?
In fact, I thought that was how the message maps worked. Guess I was mistaken.
|
|
|
|
|
Anonymous wrote:
I would rather post globally to the application so that any class can handle it. Is that possible?
Then you'd be better off, using PostThreadMessage
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
I am writing a web server and I tried making it a NT Service, it seems that it is isolated and cannot be accessed, does anybody have any ideas on how to fix this I would prefer not to have a window but I am willing to as a last resort use an icon in the system tray.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
|
It is a class that I believe is derived from MFC sockets.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
I have had trouble with CSocket derived classes in services
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Bummer. I guess I will just have to settle for a taskbar icon
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
If you badly want to make it a service, you can use native Winsock instead of the MFC sockwet classes
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
If you badly want to make it a service, you can use native Winsock instead of the MFC sockwet classes
I will plan to rewrite the classes as soon as I get a running version, I'll just make the service version then.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
How can I close a port progmatically? I want to close port X so when someone tries to access X it doesn't respond (like stealth mode).
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
Only if a socket is bound to a port can someone connect to it. If you simply close the listenbing socket, then you disable people from being able to connect to that port.
But then sometimes you want some people to have access to the port and to deny it for others. Thats when you use a firewall.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
Thats when you use a firewall.
I was kind of trying to make a simple firewall. I am not sure what the best way to do it is.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
Matt Newman wrote:
I was kind of trying to make a simple firewall.
That's beyond what winsock can do. Firewalls involve packet capturing.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
How to make a socket listen on a port!?
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Rickard Andersson wrote:
How to make a socket listen on a port!?
I was trying to completely block of access to unused ports.
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
01001001 00100000 01010000 01100001 01100100 00100000 01001101 01111001 00100000 01010000 01101111 01110011 01110100 00100000 01000011 01101111 01110101 01101110 01110100
|
|
|
|
|
I should know how to do this but for the life of me I can't find the answer. How do I convert an __int64 value to a string. TCHAR[XXX] or CString doesn't matter.
|
|
|
|
|
I'd try using an ostringstream. It's a better alternative than CString::format or ( heaven forbid ) sprintf in any case.
I have an article on CP if you don't know how to use it.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Thanks for the feedback.
CString strTemp;
__int64 iValue = ULONG_MAX + ULONG_MAX;
strTemp.Format("%d", iValue);
This does not produce the correct result. It works for 32 bit numbers, but it does not appear to work for 64 bit numbers. I have not tried the STL solution, though. I will try it next time I get a chance.
I have solved the problem, though.
|
|
|
|
|
Just as Chris said, you have a CString str; you can do a str.Format("%d", yourIntData);
|
|
|
|
|
Thanks for the feedback.
CString strTemp;
__int64 iValue = ULONG_MAX + ULONG_MAX;
strTemp.Format("%d", iValue);
This does not produce the correct result. It works for 32 bit numbers, but it does not appear to work for 64 bit numbers.
I have solved the problem, though.
|
|
|
|