Click here to Skip to main content
15,902,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: socket programming in vb Pin
Nick Parker25-Jul-02 8:17
protectorNick Parker25-Jul-02 8:17 
GeneralVB and Excel 2000 interaction Pin
patty23-Jul-02 22:12
patty23-Jul-02 22:12 
GeneralRe: VB and Excel 2000 interaction Pin
afronaut25-Jul-02 15:36
afronaut25-Jul-02 15:36 
GeneralRe: VB and Excel 2000 interaction Pin
patty25-Jul-02 22:49
patty25-Jul-02 22:49 
QuestionHow to get info abt printer in vb 6 Pin
Birdy23-Jul-02 20:03
Birdy23-Jul-02 20:03 
GeneralINET Control Web Proxy Problems Pin
TheChocolatay22-Jul-02 6:49
TheChocolatay22-Jul-02 6:49 
Generalvb6 webbrowser control Pin
Anonymous22-Jul-02 3:34
Anonymous22-Jul-02 3:34 
GeneralConverting IEEE Format Singles To Internal Longs Pin
Jason Teagle22-Jul-02 0:29
Jason Teagle22-Jul-02 0:29 
Does anyone know if VB can now (VB6.0) perform a conversion between the internal representation of a single-precision number (held as a long, 4 bytes) and an actual Single? By this I mean, the value 1.0 as a Single = &h3F800000 internally. If I have a Long containing &h3F800000, is it possible to convert to a Single of 1.0, and vice versa (Single -> Long holding internal representation).

So far I have had to use a C DLL to do this.

Other possible ways to do this might involve using Variants, Byte arrays or some way of accessing the memory used to store the variables (used to be VARSEG and VAROFFSET in QuickBasic) - but I can't find a way.

Note that CLng(Single) and CSng(Long) don't do it, since CSng(&h3F800000) = 1065353216.0, which isn't quite 1.0 {:v)

Note also that you can't use Any as the type in your own functions {:v(

If anyone's wondering why I need this, it's to pull bytes out of a Modbus message and decode them, or to encode them and plug them into a message.


GeneralRe: Converting IEEE Format Singles To Internal Longs Pin
Richard Deeming22-Jul-02 23:46
mveRichard Deeming22-Jul-02 23:46 
GeneralRe: Converting IEEE Format Singles To Internal Longs Pin
Jason Teagle22-Jul-02 23:49
Jason Teagle22-Jul-02 23:49 
Generaledit explorer.exe Pin
Manish Wadhera20-Jul-02 20:53
Manish Wadhera20-Jul-02 20:53 
GeneralRe: edit explorer.exe Pin
SHaroz21-Jul-02 16:37
SHaroz21-Jul-02 16:37 
GeneralRe: edit explorer.exe Pin
SHaroz21-Jul-02 16:40
SHaroz21-Jul-02 16:40 
Generalcontrol panel applet Pin
Manish Wadhera20-Jul-02 20:49
Manish Wadhera20-Jul-02 20:49 
GeneralMicrosoft Excel Chart Pin
Silversurfaren19-Jul-02 7:54
sussSilversurfaren19-Jul-02 7:54 
GeneralRe: Microsoft Excel Chart Pin
Silversurfaren21-Jul-02 2:43
sussSilversurfaren21-Jul-02 2:43 
GeneralRe: Microsoft Excel Chart Pin
afronaut25-Jul-02 15:47
afronaut25-Jul-02 15:47 
GeneralRadio Buttons Not working correctly Pin
JohnnyG19-Jul-02 7:10
JohnnyG19-Jul-02 7:10 
GeneralRe: Radio Buttons Not working correctly Pin
Jeremy Falcon19-Jul-02 7:32
professionalJeremy Falcon19-Jul-02 7:32 
GeneralRe: Radio Buttons Not working correctly Pin
JohnnyG19-Jul-02 8:11
JohnnyG19-Jul-02 8:11 
GeneralRe: Radio Buttons Not working correctly Pin
Jeremy Falcon22-Jul-02 3:43
professionalJeremy Falcon22-Jul-02 3:43 
GeneralRe: Radio Buttons Not working correctly Pin
JohnnyG19-Jul-02 8:47
JohnnyG19-Jul-02 8:47 
GeneralProblems with namespaces... Pin
MrGlover18-Jul-02 16:02
MrGlover18-Jul-02 16:02 
GeneralRe: Problems with namespaces... Pin
Kevin McFarlane21-Jul-02 5:20
Kevin McFarlane21-Jul-02 5:20 
Generalmemory leaks Pin
Marcus Spitzmiller18-Jul-02 10:20
Marcus Spitzmiller18-Jul-02 10:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.