Click here to Skip to main content
16,005,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: CallbackWrapper Pin
Luc Pattyn8-May-10 9:50
sitebuilderLuc Pattyn8-May-10 9:50 
AnswerRe: overall Pin
Luc Pattyn8-May-10 9:57
sitebuilderLuc Pattyn8-May-10 9:57 
GeneralRe: overall Pin
Hrizip8-May-10 10:52
Hrizip8-May-10 10:52 
GeneralRe: overall Pin
Luc Pattyn8-May-10 11:04
sitebuilderLuc Pattyn8-May-10 11:04 
AnswerRe: Adapting a DLL to VB.NET, using PINVOKE Pin
Hrizip8-May-10 22:32
Hrizip8-May-10 22:32 
GeneralRe: Adapting a DLL to VB.NET, using PINVOKE Pin
Luc Pattyn9-May-10 1:57
sitebuilderLuc Pattyn9-May-10 1:57 
GeneralRe: Adapting a DLL to VB.NET, using PINVOKE Pin
Hrizip9-May-10 2:38
Hrizip9-May-10 2:38 
AnswerRe: Adapting a DLL to VB.NET, using PINVOKE Pin
Hrizip12-May-10 23:54
Hrizip12-May-10 23:54 
Dim numRef As Byte*
      Fixed numRef = buffer


I have this thing that puzzles me. OMG | :OMG:
I suppose that fixed means that garbage collector isnt allowed anywhere near the memory location to prevent accidental removal.
That I can do in VB.net. Thumbs Up | :thumbsup:

On the other hand I have no idea what Byte* is, seems to me its a pointer, what I do know from debugging is that it seems to retain only the first element in buffer (which is an array of 1023 I think, irrelevant at this point).

Does the pointer point only to the first element? Confused | :confused:
So if you store 1023 bytes in byte* it retains only the first byte?

Please help Wink | ;)



Added more info at 12:00

The next line of code is the following;

flag2 = Win32.ReadFile(Me.m_handle, numRef, 50, (numBytesRead), AddressOf overlapped)


numref in this case is taken from the line before and hence flag2 returns boolean true. Interesting thing is, in my patchwork code I use the following

Dim flag2 As Boolean = False
              Dim numRef As Byte() = Nothing
              numBytesRead = Nothing
              numRef = buffer
flag2 = False
                  flag2 = Win32Serijski.ReadFile(Me.m_handle, numRef, 50, numBytesRead, overl)


And in contrast to the original code, my flag2 ALWAYS returns TRUE, while in the original code it returns true only if theres NEW data in the buffer. Confused | :confused:
QuestionHow could I debug the connection process of a COM AddIn Pin
Sonhospa8-May-10 8:12
Sonhospa8-May-10 8:12 
AnswerRe: How could I debug the connection process of a COM AddIn Pin
Luc Pattyn8-May-10 8:40
sitebuilderLuc Pattyn8-May-10 8:40 
GeneralRe: How could I debug the connection process of a COM AddIn Pin
Sonhospa8-May-10 12:26
Sonhospa8-May-10 12:26 
GeneralRe: How could I debug the connection process of a COM AddIn Pin
Luc Pattyn8-May-10 12:33
sitebuilderLuc Pattyn8-May-10 12:33 
GeneralRe: How could I debug the connection process of a COM AddIn Pin
Sonhospa8-May-10 13:09
Sonhospa8-May-10 13:09 
GeneralRe: How could I debug the connection process of a COM AddIn Pin
Luc Pattyn8-May-10 13:28
sitebuilderLuc Pattyn8-May-10 13:28 
NewsRe: How could I debug the connection process of a COM AddIn Pin
Sonhospa10-May-10 5:04
Sonhospa10-May-10 5:04 
Questionmanage 2 sim in my mobile phone Pin
Joshua828-May-10 7:24
Joshua828-May-10 7:24 
AnswerRe: manage 2 sim in my mobile phone Pin
Dave Kreskowiak8-May-10 13:33
mveDave Kreskowiak8-May-10 13:33 
GeneralRe: manage 2 sim in my mobile phone Pin
Joshua829-May-10 23:04
Joshua829-May-10 23:04 
GeneralRe: manage 2 sim in my mobile phone Pin
Dave Kreskowiak10-May-10 2:19
mveDave Kreskowiak10-May-10 2:19 
QuestionTrying to override a protected method in DataGridView [Answered] Pin
kepatter7-May-10 5:19
professionalkepatter7-May-10 5:19 
AnswerRe: Trying to override a protected method in DataGridView Pin
Alan N7-May-10 6:56
Alan N7-May-10 6:56 
AnswerRe: Trying to override a protected method in DataGridView Pin
William Winner7-May-10 7:14
William Winner7-May-10 7:14 
GeneralRe: Trying to override a protected method in DataGridView Pin
kepatter7-May-10 9:23
professionalkepatter7-May-10 9:23 
GeneralRe: Trying to override a protected method in DataGridView Pin
William Winner7-May-10 10:26
William Winner7-May-10 10:26 
GeneralRe: Trying to override a protected method in DataGridView Pin
kepatter7-May-10 11:50
professionalkepatter7-May-10 11:50 

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.