Click here to Skip to main content
15,896,207 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: checking black pixels then counting them Pin
Dave Kreskowiak10-Jun-13 7:39
mveDave Kreskowiak10-Jun-13 7:39 
QuestionFilter the data from excel using VB Pin
R@M-ITcian8-Jun-13 18:32
R@M-ITcian8-Jun-13 18:32 
AnswerRe: Filter the data from excel using VB Pin
Richard MacCutchan8-Jun-13 21:56
mveRichard MacCutchan8-Jun-13 21:56 
QuestionIntPtr and API functions Pin
treddie8-Jun-13 17:03
treddie8-Jun-13 17:03 
AnswerRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 21:55
mveRichard MacCutchan8-Jun-13 21:55 
GeneralRe: IntPtr and API functions Pin
treddie8-Jun-13 23:39
treddie8-Jun-13 23:39 
GeneralRe: IntPtr and API functions Pin
Richard MacCutchan8-Jun-13 23:41
mveRichard MacCutchan8-Jun-13 23:41 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 8:11
treddie9-Jun-13 8:11 
No, I already understand that part. The problem is that win32 API functions canNOT switch automatically...They're stuck in 32bit land. So it seems that conversion IS necessary when on a 64bit system right?

Also, just realized this morning, that for some API functions, it needs to be Int32 not UInt32, since some functions return an address of -1 on failure. Theoretically, it is the only negative number that would be returned, so this SHOULD be OK.

This whole thing bothers me though, because it means that any pointer that can be passed to a win32 function is stuck in the 32bit range of values. Although it would OK to widen this to 64bits after output from the function, by placing zeroes in the higher order 32 bits, it does not guarantee that a "low" 32bit address is even available. The only reason that might not be a problem is that a 32bit number is still awfully large and how many 32bit valid addresses ranges (blocks of memory) can you expect to be using during any Windows session, even with multitasking?

But on the other hand, is the bit order correct in an Int32 to be used directly as a pointer on a 64bit system, without having to convert to Int64? I am having return value problems in my functions and if I can put the addressing thing to rest, then I can move on to other culprits.

modified 9-Jun-13 15:24pm.

GeneralRe: IntPtr and API functions Pin
Richard MacCutchan9-Jun-13 9:25
mveRichard MacCutchan9-Jun-13 9:25 
GeneralRe: IntPtr and API functions Pin
treddie9-Jun-13 11:44
treddie9-Jun-13 11:44 
Questionstackhash _2f16 Pin
champagne_charly8-Jun-13 9:11
champagne_charly8-Jun-13 9:11 
AnswerRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 5:13
professionalEddy Vluggen9-Jun-13 5:13 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 5:54
champagne_charly9-Jun-13 5:54 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:04
professionalEddy Vluggen9-Jun-13 6:04 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 6:06
champagne_charly9-Jun-13 6:06 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen9-Jun-13 6:19
professionalEddy Vluggen9-Jun-13 6:19 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 8:10
champagne_charly9-Jun-13 8:10 
GeneralRe: stackhash _2f16 Pin
Dave Kreskowiak9-Jun-13 12:50
mveDave Kreskowiak9-Jun-13 12:50 
GeneralRe: stackhash _2f16 Pin
champagne_charly9-Jun-13 13:03
champagne_charly9-Jun-13 13:03 
GeneralRe: stackhash _2f16 Pin
Dave Kreskowiak9-Jun-13 14:22
mveDave Kreskowiak9-Jun-13 14:22 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 3:07
professionalEddy Vluggen10-Jun-13 3:07 
GeneralRe: stackhash _2f16 Pin
champagne_charly10-Jun-13 3:52
champagne_charly10-Jun-13 3:52 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 4:23
professionalEddy Vluggen10-Jun-13 4:23 
GeneralRe: stackhash _2f16 Pin
champagne_charly10-Jun-13 4:56
champagne_charly10-Jun-13 4:56 
GeneralRe: stackhash _2f16 Pin
Eddy Vluggen10-Jun-13 6:33
professionalEddy Vluggen10-Jun-13 6:33 

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.