By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,290 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,290 IT Pros & Developers. It's quick & easy.

vb6 to vb.net

P: n/a
Hi,

there a line in an old vb6 program which i dun understand...

"Begin dsSocketLib.dsSocket dsMsock"

i know they are using a dsSock32.ocx object, but how do i include that in my
new vb.net program??
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"notregister" <no*********@discussions.microsoft.com> schrieb:
there a line in an old vb6 program which i dun understand...

"Begin dsSocketLib.dsSocket dsMsock"

i know they are using a dsSock32.ocx object, but how do i include that in
my
new vb.net program??


Select the project in the solution explorer, choose "Add reference..." from
the project's "References" folder's context menu, select the "COM" tab,
press "Browse...", pick the OCX file and add a reference.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Thanks...but how do i decared the dsMSock function that is link to this
dssock32.ocx

"Herfried K. Wagner [MVP]" wrote:
"notregister" <no*********@discussions.microsoft.com> schrieb:
there a line in an old vb6 program which i dun understand...

"Begin dsSocketLib.dsSocket dsMsock"

i know they are using a dsSock32.ocx object, but how do i include that in
my
new vb.net program??


Select the project in the solution explorer, choose "Add reference..." from
the project's "References" folder's context menu, select the "COM" tab,
press "Browse...", pick the OCX file and add a reference.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Hi just to clarify wat i post earlier...i do wish to link an array dsMSock()
to dsSocketLib.dsSocket...how do i do that???

"Herfried K. Wagner [MVP]" wrote:
"notregister" <no*********@discussions.microsoft.com> schrieb:
there a line in an old vb6 program which i dun understand...

"Begin dsSocketLib.dsSocket dsMsock"

i know they are using a dsSock32.ocx object, but how do i include that in
my
new vb.net program??


Select the project in the solution explorer, choose "Add reference..." from
the project's "References" folder's context menu, select the "COM" tab,
press "Browse...", pick the OCX file and add a reference.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #4

P: n/a
Once you add the ocx to your form, you have the control. Just create the
array and then call the function as it is called in VB6.

Rgds,
Anand M
VB.NET MVP
http://www.dotnetindia.com

"notregister" wrote:
Hi just to clarify wat i post earlier...i do wish to link an array dsMSock()
to dsSocketLib.dsSocket...how do i do that???

"Herfried K. Wagner [MVP]" wrote:
"notregister" <no*********@discussions.microsoft.com> schrieb:
there a line in an old vb6 program which i dun understand...

"Begin dsSocketLib.dsSocket dsMsock"

i know they are using a dsSock32.ocx object, but how do i include that in
my
new vb.net program??


Select the project in the solution explorer, choose "Add reference..." from
the project's "References" folder's context menu, select the "COM" tab,
press "Browse...", pick the OCX file and add a reference.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.