본문 바로가기

카테고리 없음

Microsoft Winsock Control Vb 2008 Functions



I need to put in some winsock controls in one of my applications but I can't find them anywhere in Visual Basic 2008 Express Edition. If there aren't any could someone give me the download link to Visual Basic 2006? There is no Winsock control in the toolbox that you can drag onto a form. The namespace System.Net.Sockets contains most of. 101 Code Samples for Visual Basic and C# (2003) Skip to main content. Download Center. Download Center. Download Center Home. Visual Basic Questions; Updated: 25 Dec 2018. 13,810,270 members.

Active4 years, 3 months ago

We upgraded our machines with a microsoft patch listed above and are now having issues with some winsock controls. While moving on to the new component library there were two issues that we faced:

  • We are creating a Winsock control dynamically using Form.Controls.Add(..). With the new dlls it gave us a run time error 731 stating that we needed to add the license.

This issue was resolved by adding a line License.Add(PrgID of the control) before adding the control.

Now the issue is when we try setting this control to an object of type mWinsock we get a runtime error Type Mismatch. Any thoughts?

Dylan Corriveau

2,2353 gold badges23 silver badges35 bronze badges

Winsock Control

abhay

4 Answers

Take a look at 'Description of the cumulative update rollup for the Visual Basic 6.0 Service Pack 6 Runtime Extended Files.'

Api

This December 30, 2008 update should remove and replace the faulty Dec 9 security update. It appears to deal with both 926857 and 957924.

958369 seems to be a Visual FoxPro KB article for the same faulty update (Dec 9). VFP uses many VB controls.

Vb 2008 visual studio

BobBob

You may need to add the control to the toolbox so that the VB6 project and form has a proper reference to it. You will need to do this even if you don't actually have it on the form at design time.

With the reference VB may not have all the information needed to resolve the methods and properties of the control at run-time

RS ConleyRS Conley

6,9051 gold badge15 silver badges34 bronze badges

Vb Winsock Api

Pes 18 patch full. Since the interface signatures have changed, you will have to remove the component reference from the project, save and close VB6 completely, unregister the old control, register the new version from the patch, reopen your project and add the component back in. If you do this you'll most likely lose support for machines that don't have the patch installed (or you will have to install it as part of your installation package)

Of course, you can always declare the reference 'As Object' if it's easier but your performance will drop a bit and you will lose support for WithEvents

rpetrichrpetrich

31.2k6 gold badges61 silver badges86 bronze badges

I encountered a similar issue when dynamically creating non-intrinsic controls in VB6. Perhaps Winsock is no longer considered intrinsic. Try declaring your variable as VBControlExtender instead of Winsock, as follows: Hamilton beach scovill crock watcher manually.

See this MSDN article for more information.

TemplarTemplar

3,4347 gold badges29 silver badges37 bronze badges