Click here to Skip to main content
15,917,610 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DataGridView - Why doesn't this work? Pin
penguin500023-Jul-07 4:41
penguin500023-Jul-07 4:41 
QuestionAccessing Database Pin
Toyeyen20-Jul-07 5:15
Toyeyen20-Jul-07 5:15 
AnswerRe: Accessing Database Pin
Paul Conrad29-Jul-07 6:13
professionalPaul Conrad29-Jul-07 6:13 
GeneralRe: Accessing Database Pin
Toyeyen20-Aug-07 1:51
Toyeyen20-Aug-07 1:51 
GeneralRe: Accessing Database Pin
Paul Conrad20-Aug-07 13:06
professionalPaul Conrad20-Aug-07 13:06 
Questionconverting byte array Pin
captainmogo20-Jul-07 4:47
captainmogo20-Jul-07 4:47 
AnswerRe: converting byte array Pin
Colin Angus Mackay20-Jul-07 4:54
Colin Angus Mackay20-Jul-07 4:54 
AnswerRe: converting byte array Pin
Luc Pattyn20-Jul-07 6:13
sitebuilderLuc Pattyn20-Jul-07 6:13 
Adding to Colin's reply:

On "little=endian" systems (such as all Intel/Intel-compatibles) the first byte has the
lowest weight (so you want to clear the fourth byte).
On "big-endian" systems (such as PowerPC, VAX, and then some) it is the opposite.
That's for the representation in memory; what you do in a file is up to you (most systems
use their memory convention, making file exchange difficult between LE/BE systems).
On a wire (such as Ethernet) there are fixed conventions; Ethernet is big-endian.

If you want to write code that supports both, I guess there is a methor or property somewhere,
that tells you what endianness your system has; but I would tend to just test it once at
run-time.

BTW there are two completely different approaches to your conversion problems:
1. write the formulas; looks like threeByteInt=(((byte2<<8)|byte1)<<8)|byte0);
2. use a struct with Marshaling attributes and explicit FieldOffset to simulate
real unions (ala C/C++) or commons (ala Fortran).

Smile | :)



QuestionRaiseEvent is not firing off the event I call Pin
Marcus J. Smith20-Jul-07 2:11
professionalMarcus J. Smith20-Jul-07 2:11 
AnswerRe: RaiseEvent is not firing off the event I call Pin
Ky Nam20-Jul-07 2:21
Ky Nam20-Jul-07 2:21 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Marcus J. Smith20-Jul-07 2:29
professionalMarcus J. Smith20-Jul-07 2:29 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Dave Kreskowiak20-Jul-07 5:07
mveDave Kreskowiak20-Jul-07 5:07 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Marcus J. Smith20-Jul-07 5:44
professionalMarcus J. Smith20-Jul-07 5:44 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Dave Kreskowiak20-Jul-07 6:59
mveDave Kreskowiak20-Jul-07 6:59 
AnswerRe: RaiseEvent is not firing off the event I call Pin
Naji El Kotob20-Jul-07 2:39
Naji El Kotob20-Jul-07 2:39 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Marcus J. Smith20-Jul-07 3:05
professionalMarcus J. Smith20-Jul-07 3:05 
GeneralRe: RaiseEvent is not firing off the event I call Pin
Naji El Kotob20-Jul-07 9:00
Naji El Kotob20-Jul-07 9:00 
QuestionHelp: Any body knows............. Pin
Ashish Kumar Vyas20-Jul-07 2:10
Ashish Kumar Vyas20-Jul-07 2:10 
AnswerRe: Help: Any body knows............. Pin
cutequencher20-Jul-07 4:37
cutequencher20-Jul-07 4:37 
AnswerRe: Help: Any body knows............. Pin
Dave Kreskowiak20-Jul-07 5:05
mveDave Kreskowiak20-Jul-07 5:05 
GeneralRe: Help: Any body knows............. Pin
Paul Conrad20-Jul-07 6:29
professionalPaul Conrad20-Jul-07 6:29 
GeneralRe: Help: Any body knows............. Pin
Dave Kreskowiak20-Jul-07 7:00
mveDave Kreskowiak20-Jul-07 7:00 
AnswerRe: Help: Any body knows............. Pin
Naji El Kotob20-Jul-07 9:18
Naji El Kotob20-Jul-07 9:18 
QuestionConfiguration Pin
WhiteGirl2320-Jul-07 2:03
WhiteGirl2320-Jul-07 2:03 
AnswerRe: Configuration Pin
Naji El Kotob20-Jul-07 2:44
Naji El Kotob20-Jul-07 2:44 

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.