|
dhon wrote:
how can i make my .cpp file member of my project?
From the "Project" menu, take "Add to Project" and then "New"
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
what does it take to make a borderless splitter window in VC6? I want to put a few views one next to each other, without the "border" between them.
is there any "simple" way to do it (meaning, one call does the work) or should I derive a class from CSplitterWnd, change a few internal member variables (sizes & colors), and force them to draw a splitter which blends with the background?
thanks.
|
|
|
|
|
Views are just windows, so you can arrange them in what ever way pleases you. If it works best for you to use CSplitterWnd, then do so; it is not too difficult to create a derived class that will draw the splitters in any way you choose. Do a search here for splitter; I think you'll have several articles to choose from.
--------
I don't think that I'm a sell-out but I do "Enjoy Coke!"... -- Bloodhound Gang, The Inevitable Return Of The Great White Dope
|
|
|
|
|
How I know what my screen mate move pass each window component (such as edge of window..etc.) ?
Thank a lot
|
|
|
|
|
What is a screen mate?
(and if you reply "that square thing in front of you mate", i will hurt you )
--------
I don't think that I'm a sell-out but I do "Enjoy Coke!"... -- Bloodhound Gang, The Inevitable Return Of The Great White Dope
|
|
|
|
|
Shog9 wrote:
and if you reply "that square thing in front of you mate", i will hurt you
LOL
Seriously I think he means some kinda funny desktop program that does fun stuff, like walk into the screen randomly and strip or something.
Nish
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
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!
------------------------------------
|
|
|
|