Wrox Programmer Forums
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2005, 01:42 AM
Authorized User
 
Join Date: Oct 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Winsock control bug

I am using winsock control in VB to connect a device. When i connect at form_load event it is working fine. But the same program when i put in windows start up it is not working. The dataArrival event is occuring before the connection establishment and 'Runtime error' is coming. If anyone knows about it please help me.

Thanking you in advance

Software proffesional from Bangalore,INDIA
__________________
Tell me what you need and i will tell you how to get along without it.
-----------------------------------------------------------------
Ratheesh
Bangalore, INDIA
[email protected]
 
Old May 16th, 2005, 06:54 AM
Registered User
 
Join Date: May 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to deepakbhota Send a message via Yahoo to deepakbhota
Default

Kindly send the code snipet, so i could test to find where exactly the error is.

Deepak B. Hota
Software Engineer,
[email protected]
Always get the best out of best.
 
Old May 16th, 2005, 01:57 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

put an error handling...
set a global variable when the connection is establishe, and check if that variable is set before doing anything else
Marco
 
Old May 29th, 2007, 04:46 AM
Registered User
 
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
pls can u send a sample vb code to send data to a net work printer using its IP address through winsock.

Thnks





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Winsock regedit Visual Basic 2005 Basics 2 January 17th, 2008 07:14 PM
Bug or no to bug learning C using VS.Net to compil tesh All Other Wrox Books 0 February 14th, 2007 01:06 PM
Winsock ShadowSax Pro VB 6 0 August 23rd, 2006 10:07 PM
How to Handle a Winsock Control in better way tinku Beginning VB 6 0 March 8th, 2004 01:32 PM
Winsock error DriesNeyrinck Pro VB.NET 2002/2003 0 July 10th, 2003 08:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.