News:

  • May 01, 2026, 09:00:48 PM

Login with username, password and session length

Author Topic: ECOM & VB2010 express error 273F  (Read 14270 times)

reclusive

  • Newbie
  • *
  • Posts: 2
ECOM & VB2010 express error 273F
« on: May 18, 2011, 01:39:40 PM »
I have tried the SDK with VB6 and it works fine, but when I tried it with VB2008 or VB2010 I get "Error 273F trying to query network" when I click on the Scan Network button when using UDP/IP (if I use IXP then no error but also no devices found).  What is this error and how do I fix it?

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 261
    • Host Engineering, Inc.
Re: ECOM & VB2010 express error 273F
« Reply #1 on: May 18, 2011, 04:21:18 PM »
0x273F = 10047 decimal
errors in the 10000 range are Winsock errors, and can be found in Winsock2.h

#define WSAEAFNOSUPPORT         (WSABASEERR+47)

Which typically means that the protocol you are trying to use isn't installed , or isn't bound to the NIC you're trying to use. In this case that's probably not the issue.

The issue is probably a 16-bit vs 32-bit application issue, or an aligmnent issue, or maybe even has to do with something .NET related.

When you opened the SDK code in VB2008 (or VB2010) did it ask you you about 'converting' the project?
Good design costs a lot. Bad design costs even more.

reclusive

  • Newbie
  • *
  • Posts: 2
Re: ECOM & VB2010 express error 273F
« Reply #2 on: May 18, 2011, 04:59:25 PM »
Yes, it converted and I had to fix a few things like the way VB6 stores &h8005 in an integer as -32763, but in VB2010 it errors out of range using short type which is also 2 bytes and has the same range( it only sees it as 32773).
A VB6 integer is a VB2010 short and a VB6 long is a VB2010 integer.
I also tried to make sure the user defined arrays were initialized first but it didn't help.