Hey all,
I'm writing a console app (this question does not have anything to do with creating a console app, I am aware of the issues involved with that) and have a small problem. As a console app, the project has no forms. So, I cannot use the components to add the winsock functionality. If I do create the app normally (GUI not console) with a form , this is at the top portion of the form code (when viewed in a seperate text editor):
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
From what I see there, it is defining a registered object, and the file name is MSNWINSCK.OCX.
But as a "component" it needs to be placed on a form. I tried adding it at as "reference", but that failed because the "component" exists (even though it is not "checked").
Is there a way to make the same type of reference to the object that is placed in the header of the form, into a module?
Basically, how do I reference this object using code?
Any help would be appreciated.
I'm writing a console app (this question does not have anything to do with creating a console app, I am aware of the issues involved with that) and have a small problem. As a console app, the project has no forms. So, I cannot use the components to add the winsock functionality. If I do create the app normally (GUI not console) with a form , this is at the top portion of the form code (when viewed in a seperate text editor):
Object = "{248DD890-BB45-11CF-9ABC-0080C7E7B78D}#1.0#0"; "MSWINSCK.OCX"
From what I see there, it is defining a registered object, and the file name is MSNWINSCK.OCX.
But as a "component" it needs to be placed on a form. I tried adding it at as "reference", but that failed because the "component" exists (even though it is not "checked").
Is there a way to make the same type of reference to the object that is placed in the header of the form, into a module?
Basically, how do I reference this object using code?
Any help would be appreciated.