|
> Virtual COM mapped to that IP is on mine System say COM8. I know its IP only .
The IP address of the virtual port is not needed as this will require you to write your own virtual com port driver which will be difficult without any documentation.
You need the ip address of the remote system only.
> so how read and write?
Use the serial communications APIs.
John
|
|
|
|
|
Hi,
How can i send the command to the remote machine, and then execute it remotely (such as send following msg net send myhost "reply" to remote machine, then execute the command. It will display reply in my machine screen, how could i do that?)
.::LDLP::.
|
|
|
|
|
Net send is done with sockets. Windows has an alerter service that catches the message and sends it to the console. Here is some info on the Alerter service: "Notifies selected users and computers of administrative alerts. If the service is stopped, programs that use administrative alerts will not receive them. If this service is disabled, any services that explicitly depend on it will fail to start."
John
|
|
|
|
|
How does one use MFC (especially the dialogs) with the Visual Studio .NET 2003 AddIns?
I always get an error message saying that DLLMain has been defined twice. I have changed the Project settings and included the necessary files but still no luck.
I am the handsome one in the crowd.
|
|
|
|
|
I'm trying to open the system store from IIS web extension and I
get an ACESS_DENIED error. It works when I run extension in "High-Isolation" mode under account belonging to Administrators group (which is not safe at all!!!), but id doesn't work if I run it under local IWAM_ account or specially-created "non-administrator" domain account. Where (and how) adjustments should be done to make it work?
Here is the call I make (C++)
store = CertOpenStore( CERT_STORE_PROV_SYSTEM,
PKCS_7_ASN_ENCODING | X509_ASN_ENCODING,
NULL,
CERT_SYSTEM_STORE_LOCAL_MACHINE,
L"MY"
);
Thanks,
Andrey
|
|
|
|
|
Hi
try CERT_SYSTEM_STORE_CURRENT_USER instead of
CERT_SYSTEM_STORE_LOCAL_MACHINE.
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
I have tried both of them - the same problem - this API call returns NULL and "ACCESS_DENIED" error code is returned by GetLastError();
|
|
|
|
|
hi all
How can I create a application in VC++ 6.0 that is invisible and that does not show up in taskbar.
I created the application, but it only hides after blinking. How can I overcome that. ?
Thanks in advance
Regards
Shiraz
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
zainu wrote:
How can I create a application in VC++ 6.0 that is invisible and that does not show up in taskbar.
It sounds like you are talking about ShowWindow(SW_HIDE) .
zainu wrote:
I created the application, but it only hides after blinking. How can I overcome that. ?
Go to this page and read section 4.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi
Thanks, but my problem is not that.
I called ShowWindow(SW_HIDE) in OnInitDialog() and OnPaint().
It is hiding only after blinking.
How Can i overcome that ?
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
Visit http://www.voidnish.com
Mr nishant has written article for your problem in tips and trick section
-----------------------------
"I Think It will Work"
Formerly Known As "Alok The Programmer" at CP
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
zainu wrote:
I called ShowWindow(SW_HIDE) in OnInitDialog() and OnPaint().
It is hiding only after blinking.
Right. That's what happens with a dialog-based application. Since you did not specify, I erroneously assumed at least an SDI application.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi thanks
I got it!
It was because i was using DoModal().
I called creat() in the constructor. made the property of dialog window to invisible. thats all.
Now its working fine.
Thank your very mcuh.
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
When posting, it usually helps to denote whether it is a modal or modeless dialog!
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
When I do a printout of a VB form from the file menu “Print” option, my custom ActiveX control is not printed. Is it a problem in the VB or am I missing something in my custom ActiveX control?
Please help .
Daed
|
|
|
|
|
This is a C++ forum so I think you won't have a lot of success here. Try the VB forum...
|
|
|
|
|
My control is built using VC++ MFC, so may be I missed writing some code in there. Anywayzzz, I'll try the VB forum. Thanks!
|
|
|
|
|
Hello !
I'm writing my own wizard. I need to add dynamically new pages to the wizard so it will be a little bit hard to use CPropertySheet and CPropertyPage. I just want to know a good solution to display one dialog in my wizard and then display another one (when the user travels through the different pages).
So how can I 'embbed' my dialog in my wizard ?
Thank you
|
|
|
|
|
I think you can add pages to a property sheet dynamically, depending on the situation (with AddPage )
If your wizard is really complex, do it manually, insert "pages" as you go; it's not that difficult to do.
Here's a way to add child dialogs to a dialog : http://www.codeproject.com/dialog/CRHChildDialog.asp
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Thanks for your response.
I don't have a big experience with CPropertySheets and wizard mode but I think this won't be possible. Here is what I need:
The first 'dialog' I need to show in my Wizard is used to select several devices that need to be configured. So, at startup I just have one single page in my wizard, all the other pages will be used for configuring the devices I have selected in the first page (!!! but the Next button need to be first in gray and when devices are selected it becomes selectable).
When the wizard is displayed (DoModal) I cannot interract with it from the outside. So if I want to add a page, I need to do it from within the class (so need to derive a class from CPropertySheet).
As I don't have experience with that, I'll ask if you think all these kind of things are possible ??
Thank you
|
|
|
|
|
I am using Advantechs ADAM 4571L device
that is a Ethernet Data Gateway
i can alot it a IP by using there Utility.
But i have not find its Port
where i can connect through my application
using CSocket->Connect( ''IP" , port);
how can i find its listening port
thanx
Regards.
|
|
|
|
|
zahid_ash wrote:
how can i find its listening port
Using the manual.
"After all it's just text at the end of the day. - Colin Davies
"For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus
|
|
|
|
|
ITs manual does not give any thing like this
IT mapps Virtual COM port ,,,
I mapped COM8 to its IP using its Utility
how can i read from that COM8 thats i think a virtual COM port.
thanx
Regards.
|
|
|
|
|
Reading and writing to com ports (even virtual ones) is the same as reading and writing to files.
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)
|
|
|
|
|
sorry i m stating my question with modification.
I know the IP and a COM port on that IP
i want to send and recive from that IP's COM port
so how can i do that ... IP is involved know
Actualy i have a device to which u can alot IP and mapp a COM port on it by its utility.
now i want to read from that.
thanx
Regards.
|
|
|
|