Click here to Skip to main content
15,913,944 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Adding Progress Bar as a ListViewSubItem Pin
Joshua Quick7-Apr-06 11:34
Joshua Quick7-Apr-06 11:34 
QuestionGraph ActiveX Control for download/upload rate Display Pin
Devraj Raut7-Apr-06 10:35
Devraj Raut7-Apr-06 10:35 
AnswerRe: Graph ActiveX Control for download/upload rate Display Pin
Joshua Quick7-Apr-06 11:26
Joshua Quick7-Apr-06 11:26 
QuestionInserting a row using datagridview Pin
projectcode17-Apr-06 10:22
projectcode17-Apr-06 10:22 
QuestionCopyMemory VB.NET Pin
chiragdanech7-Apr-06 9:26
chiragdanech7-Apr-06 9:26 
AnswerRe: CopyMemory VB.NET Pin
Joshua Quick7-Apr-06 12:07
Joshua Quick7-Apr-06 12:07 
GeneralRe: CopyMemory VB.NET Pin
chiragdanech8-Apr-06 7:14
chiragdanech8-Apr-06 7:14 
AnswerRe: CopyMemory VB.NET Pin
Joshua Quick8-Apr-06 9:18
Joshua Quick8-Apr-06 9:18 
By default, the compiler will "optimize" your structure by re-ordering its fields. Because of this, you'll need to define that your structure's fields be layed out sequentially in memory. You can do this via the StructLayout attribute as follows.
<System.Runtime.InteropServices.StructLayout(Runtime.InteropServices.LayoutKind.Sequential)> _
Public Structure SAFEARRAYBOUND
   Dim cElements As Integer
   Dim lLbound As Integer
End Structure

I've found an article on this website explaining how to do a CopyMemory call in VB.NET. It also goes over .NET marshalling too. Perhaps this will help you?
http://www.codeproject.com/vb/net/netcopymemorysample.asp[^]
GeneralRe: CopyMemory VB.NET Pin
chiragdanech8-Apr-06 9:22
chiragdanech8-Apr-06 9:22 
QuestionRe: CopyMemory VB.NET Pin
Joshua Quick8-Apr-06 9:41
Joshua Quick8-Apr-06 9:41 
AnswerRe: CopyMemory VB.NET Pin
chiragdanech8-Apr-06 9:47
chiragdanech8-Apr-06 9:47 
GeneralRe: CopyMemory VB.NET Pin
Joshua Quick9-Apr-06 10:49
Joshua Quick9-Apr-06 10:49 
GeneralRe: CopyMemory VB.NET Pin
chiragdanech9-Apr-06 10:55
chiragdanech9-Apr-06 10:55 
AnswerRe: CopyMemory VB.NET Pin
Joshua Quick9-Apr-06 12:12
Joshua Quick9-Apr-06 12:12 
QuestionPDF to printdocument Pin
aWaLsH5237-Apr-06 5:51
aWaLsH5237-Apr-06 5:51 
QuestionWindows Service Not in the list Pin
Brent Lamborn7-Apr-06 5:35
Brent Lamborn7-Apr-06 5:35 
AnswerRe: Windows Service Not in the list Pin
Purple Monk7-Apr-06 5:50
Purple Monk7-Apr-06 5:50 
GeneralRe: Windows Service Not in the list Pin
Brent Lamborn7-Apr-06 9:22
Brent Lamborn7-Apr-06 9:22 
QuestionProblem with form loading Pin
wliong7-Apr-06 5:34
wliong7-Apr-06 5:34 
AnswerRe: Problem with form loading Pin
Purple Monk7-Apr-06 5:55
Purple Monk7-Apr-06 5:55 
GeneralRe: Problem with form loading Pin
wliong7-Apr-06 6:41
wliong7-Apr-06 6:41 
Questionconverting a report to PDF and saving it(in VB 6.0) Pin
dex58ter7-Apr-06 4:10
dex58ter7-Apr-06 4:10 
AnswerRe: converting a report to PDF and saving it(in VB 6.0) Pin
Vikrant Badhai7-Apr-06 23:38
Vikrant Badhai7-Apr-06 23:38 
QuestionPrintPreviewDialog Class - Default Title Pin
paas7-Apr-06 3:45
paas7-Apr-06 3:45 
AnswerRe: PrintPreviewDialog Class - Default Title Pin
paas7-Apr-06 9:43
paas7-Apr-06 9:43 

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.