logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
StorkBite  
#1 Posted : Monday, March 20, 2006 10:51:20 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
The code samples are left undefined and are inefficient. I have tried different methods and there might be a mix of solutions, but I am looking for a universal answer. What is the precision of the return values supposed to be? 32-bit signed values? That is the only way I can get it to work, but the VB6 and PB code list the return values as LONG which will return a 64-bit signed code in .NET. It bombs the code every time. I need a clarification.
Branden Russell  
#2 Posted : Monday, March 20, 2006 10:59:35 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

The return codes are int (32 bit signed). VB6 and PB use a long differently than .NET. .NET long is 62 bit signed.
StorkBite  
#3 Posted : Monday, March 20, 2006 11:04:32 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Thanks! That is what I am finding out the hard way, but I didn't want to deviate without some assurance that I wasn't about to start chasing chickens. :fish: We used to have a chicken chasing emoticon... where is it when you need it?!
StorkBite  
#4 Posted : Monday, March 20, 2006 11:10:28 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
One more precision conversion question... In structures such as MSFLSecurityInfo (just an example), there is a variable cPeriodicity. This is C++ type CHAR, an 8-bit signed value. This will convert to SBYTE in .NET, but I'm getting a lot of problems with it. It seems like BYTE will work, an 8-bit unsigned value. Will this be a problem to stick with BYTE?
Branden Russell  
#5 Posted : Monday, March 20, 2006 11:32:34 PM(UTC)
Branden Russell

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/28/2005(UTC)
Posts: 276
Location: Salt Lake City, UT

You should be fine with the unsigned. It has the right number of bits and all the regular characters are positive.
StorkBite  
#6 Posted : Monday, March 20, 2006 11:49:15 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Thanks!
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.