Olaf,
I worked around the VFPwinsock and used the "gethostbyname IN ws2_32" and "gethostname IN ws2_32" to populate the LocalHostName and LocalIP. Hence it is working for me. By the way, I got the last version of the VFPwinsock from the official site and has since edited the custom control...
Olaf,
I am leaning towards the use of the following VFP socket that you referred to. I have on a custom object of the following codes. I was hoping that after it is initialized that I could READ the current PC IP address, HostName and Port. I am only able to READ the Port.
When my clients...
Gentlepeople
One more thing. I tried Olaf's idea of using the VFPsock. I created a custom class and created methods (for procedures) and properties according to the code the page that was referenced. The Com Server load well with no errors. However, when I tried to read the Ipaddres and...
Hey Olaf,
The Ole Error is coming from Winsock you say. Hmmm. What is the timeout? I see no such property anywhere on the control.
Thanks for your efforts.
Olaf,
I tried your suggestion of using a 'Form' container instead and got "OLE error code 0x80004005: Unspecified error." Using a different Winsock control now is a bit tasking as I have codes in the Winsock.ocx already working fine.
Thanks, I will keep trying.
Dan,Olaf
Thanks for your quick response. The error is "Object class is invalid for this container." That is strange though since it works well when I run the Application's EXE.
I will put it on a Form Class and will post the results later today. Thanks very much.
Gentle people, it is my first post here. It is also my first time trying to build a VFP COM server. Everything seem to be going on fine until it came across an instruction to instantiate a 'winsock' object. I use the winsock object to get info on IP Address and to do some Remote Control of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.