Using MSComm control in ActiveX dll to send SMS from web
Hi there
I need to access my PC from the internet and communicate with an SMS device attached to my serial port to send an SMS message.
My thoughts are to access a web page on my PC (I have already created a quick program that identifies the current IP address of my machine and stores it on our webserver) that uses CreateObjext() to create a VB ActiveX component that communicates with the serial port.
[If you have any better ideas then please shout :) ]
1) I have used the MSComm control successfully within a VB .EXE. How can I use it within an ActiveX dll component? I have added the control from Projects; Components then tried declaring it but it is still set to Nothing.
2) There seems to be a problem creating objects on my PC from the web (obviously to prevent malicious programs running). What is the best way araound this?
All thoughts would be most welcome!
Thanks
Kester
Problem partly solved - Now how do I create component from web?
Sorry that first question was stupid and just demonstrates my inexperience of VB & ActiveX.
I just needed to add the MSComm control as a Reference rather than a Component!! And then I can instantiate it.
The problem remains: How can I create this component from the web using:
CreateObject(MyNewComponent, MyPCsIPAddress)
as this fails due to Permission Denied error (to prevent hacking etc). MS Knowledge base says "Turn Off Internet Security"
What does this mean? I have deactiveated the Windows XP Firewall but it must be something else?
Someone must have an idea?
Thanks
kester