[Bug 52024] App Never Receives Winsock FD_* Messages After FD_ACCEPT

WineHQ Bugzilla wine-bugs at winehq.org
Tue Dec 21 18:18:39 CST 2021


https://bugs.winehq.org/show_bug.cgi?id=52024

--- Comment #13 from Jason Brown <jbrown at statslog.com> ---
(In reply to Zebediah Figura from comment #12)
> It seems to crash after failing to coerce the (ANSI) string "Hello!" to an
> integer. Do you have the source of this application? Can you provide any
> insight into why this is happening?

I do have the source - the code shouldn't be trying to convert the ANSI string
Hello! to an integer, instead it should be converting a Unicode (UTF-16LE)
string "Hello!" to an ANSI string and store it in a byte array. The VB code
looks like this:

Dim la_Bytes() As Byte  ' Byte array

la_Bytes = StrConv("Hello!", vbFromUnicode)   ' Convert from a Unicode string
to an ANSI string and store it in a byte array.

One thing that I've found is that for VB apps under Wine it's almost always
required to use the Native OLEAUT32.dll. If you install the VB6 runtime with
"winetricks -q vb6run" that will install the native OLEAUT32.dll. You can then
use the native override for that DLL and it might fix the problem.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list