|
Which port is the client app listening? Add the port number to the telnet command, e.g if your app is on port 123 do: telnet 127.0.0.1 123
|
|
|
|
|
yeah thanks, have tried that. The default port is 23. The port the client listens on is 4000.
i.e 127.0.0.0 4000
When u run telnet, is it always considered to be the server??
Thanks.
|
|
|
|
|
Try running it like this instead:
telnet 127.0.0.1 Port
Where Port = the port number your app is listening on. The way you are doing it tries to conenct to the telnet port (23) by default. Unless of course your app is listening to port 23...
--Dean
|
|
|
|
|
Ok trying something else now. I have changed the client to send a message to telnet. The client app takes a port and a message to send when the send button is pressed.
I have a little server that I have tested my client with so I know that the server definitly works. But I really want to get telnet to see my client app. So how do I get telnet to see my client app and output the message.
Thanks.
|
|
|
|
|
Ok trying something else now. I have changed the client to send a message to telnet, which I want to use ase server for testing. The client app takes a port and a message to send when the send button is pressed.
I have a little server that I have tested my client with so I know that the server definitly works. But I really want to get telnet to see my client app. So how do I get telnet to see my client app and output the message.
Thanks.
|
|
|
|
|
Hmm, now you have a different problem. The telnet program is a client application, as is the application you are writing. You can't really connect the two together because neither is acting like the server and accepting an incoming connection. The best thing to do would probably be to add some code to your small server app to print all of the incoming packets it receives from your client app.
--Dean
|
|
|
|
|
Is there a way to ShellExecute IE in a manner that allows you to hide the toolbar, status bar, etc? Are there command line options that I can pass to IE?
Jon Sagara
In India, when someone says "mad cow", you know it's actually a bull charging at him.
-- Rohit Sinha
|
|
|
|
|
This website has info on what registry keys you need to set to change the appearance of IE. To my knowledge there are no parameters passed to IE that can do this job for you.
http://is-it-true.org/nt/xp/registry/rtips36.shtml
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Cool site!
Actually, we found hh.exe, which does what we need it to do. Thanks for the site suggestion.
Jon Sagara
In India, when someone says "mad cow", you know it's actually a bull charging at him.
-- Rohit Sinha
|
|
|
|
|
You're welcome. That used to be one of my favorite websites but I haven't visited it recently.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Some lateral thinking, instead of playing with registry setting. It sounds like you just need a popup.
A little javascript will do that.
So write a little html with script to disk, with the required URL, and shellexecute that.
LostGolfBall
|
|
|
|
|
Yes, but that means opening up a full IE window just to execute the file that will pop up a smaller window.
Jon Sagara
In India, when someone says "mad cow", you know it's actually a bull charging at him.
-- Rohit Sinha
|
|
|
|
|
Anyone knows of a good shareware tool that parse your source files and convert them to UML diagrams ?
Thanks
Shay Harel
|
|
|
|
|
I use Doxygen to generate documentation.
http://www.stack.nl/~dimitri/doxygen/
And it uses the Dot Library, which is part of Graphviz. To draw more complex class diagrams
http://www.research.att.com/sw/tools/graphviz/
It seems to work quite well.
|
|
|
|
|
hi all
i want to add a list control to an sdi application how can i do it and furthermore i want to display icons with each item .... please reply as soon as possible ... and plz tell with explanation as i am a beginner ...
do tell me that where to place the code as well coz i am facing problems in this regard also
take cares and
happy programming
Nauman Ghazi
Bahria University
|
|
|
|
|
It sounds like you want a list view. When you create your SDI project, derive the view class from CListView.
|
|
|
|
|
sir
i am doing a project ... infact and at a place i had to realize that i need a list control ... the sdi is made and it contains alot of work ... how can i add list view without deriving it in start .....
can i do it by making an object of CListView ... and calling create function?
regards
Nauman GHazi
|
|
|
|
|
Sir
i have also asked that how to display an icon with the items of listview .... and that was the main question..
Regards
Nauman Ghazi
Bahria University
|
|
|
|
|
Use the LVS_ICON or LVS_SMALLICON style.
|
|
|
|
|
So I have a class that does not make use of MFC/Windows code in any way, though I sometimes use it in MFC projects. However, when I do use the class in an MFC project, VS.net complains that there is no '#include "stdafx.h"' line in the .cpp file of the class. Likewise, if I add the line to my file and use the class in a non-MFC project, as you would expect, I get a 'cannot find file "stdafx.h"' (since it doesn't exist in the non-MFC project.)
Today I tried to remedy this situation by adding an #ifdef at the beginning of the .cpp file as follows:
#ifdef WINVER
#include "stdafx.h"
#endif
... other includes
... implementation of class
However, if I add this code (at the very beginning of the file) VS.Net chokes with "fatal error C1020: unexpected #endif".
Any ideas?
--Dean
|
|
|
|
|
Probably your best option is not to include any #include <stdafx.h> and, when compiling into an MFC project, change the settings of the .cpp alone to "not using precompiled headers".
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Do not include atdafx.h in you file. Instead (1) goto projects->settings (2) select all configurations (3) select you file from tree view (4) select C/C++ tab (5) from drop down box select precompiled headers (6) check not using precompiled headers.
Now when you compile while using MFC you will not gett the error about finding end of file while looking for precompiled header.
Trust in the code Luke. Yea right!
|
|
|
|
|
Thanks to both of you... I had not even thought of that. I am still puzzled as to why I am getting this error, though. The #endif is not unexpected -- it matches the #ifdef and there is no other possible text beforehand to provide an unbalanced #if* #endif pair.
--Dean
|
|
|
|
|
The way PCHs are implemented in Visual C++, the compiler igoners everything up to the infamous #include <stdafx.h> line, which explains the unbalanced #endif .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Dean Goodman wrote:
Likewise, if I add the line to my file and use the class in a non-MFC project, as you would expect, I get a 'cannot find file "stdafx.h"' (since it doesn't exist in the non-MFC project.)
That is so not true. It's about precompiled headers, and have nothing to do with MFC.
If you make a new ATL project, in VC, you also get stdafx.h and .cpp
I use precompiled headers in all my projects, even console applications because it speeds up the compile time.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|