Click here to Skip to main content
16,013,730 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to show Text File in PrintPreviewDialog in vb.net (WinForm) Pin
kedarrkulkarni16-Sep-08 21:06
kedarrkulkarni16-Sep-08 21:06 
QuestionAnti Spyware Pin
pavanip16-Sep-08 20:46
pavanip16-Sep-08 20:46 
AnswerRe: Anti Spyware Pin
Ashfield16-Sep-08 21:10
Ashfield16-Sep-08 21:10 
AnswerRe: Anti Spyware Pin
Tom Deketelaere16-Sep-08 23:12
professionalTom Deketelaere16-Sep-08 23:12 
QuestionWeird TabControl binding error Pin
Mycroft Holmes16-Sep-08 16:37
professionalMycroft Holmes16-Sep-08 16:37 
QuestionPinvoke DLL Pin
SUperbom16-Sep-08 10:21
SUperbom16-Sep-08 10:21 
AnswerRe: Pinvoke DLL Pin
Ajay.k_Singh16-Sep-08 23:03
Ajay.k_Singh16-Sep-08 23:03 
AnswerRe: Pinvoke DLL Pin
Gideon Engelberth18-Sep-08 5:46
Gideon Engelberth18-Sep-08 5:46 
In general, I would assume that the **outAlarmList indicates an array instead of just a pointer to a pointer to a single structure. The documentation of the function or some other piece of context tell you. However, you will need to declare things a little differently on the .NET side than if it was outAlarmList[]. Since the "array" seems to be an array of pointers, you will have to declare the RDS_AlarmList as a class (making sure to still mark it with the StructLayout attribute).
This single pointer to the second parameter means that you want to either declare RDS_AlarmSearchParam as a Structure and pass ByRef (the normal approach) or declare it as a Class and pass ByVal

So you should end up with this:

<StructLayout(LayoutKind.Sequential)> _
Public Structure RDS_AlarmSearchParam

<StructLayout(LayoutKind.Sequential)> _
Public Class RDS_AlarmList

<DllImport(fill in information)> _
Public Shared Function RDA_ReadAlarmList(ByVal outAlarmList() As RDS_AlarmList, _
                                         ByRef inAlarmSearchParam as RDS_AlarmSearchParam)

QuestionAdding Event Handlers At Runtime? Pin
Saul Johnson16-Sep-08 10:12
Saul Johnson16-Sep-08 10:12 
AnswerRe: Adding Event Handlers At Runtime? Pin
Dave Kreskowiak16-Sep-08 11:39
mveDave Kreskowiak16-Sep-08 11:39 
GeneralRe: Adding Event Handlers At Runtime? Pin
Saul Johnson16-Sep-08 20:18
Saul Johnson16-Sep-08 20:18 
QuestionWindows form grid that displays data vertically Pin
Kschuler16-Sep-08 9:35
Kschuler16-Sep-08 9:35 
QuestionCalling a Stored Procedure with Parameter as a FilePath in VB6 Pin
phn11016-Sep-08 9:27
phn11016-Sep-08 9:27 
AnswerRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
Dave Kreskowiak16-Sep-08 10:09
mveDave Kreskowiak16-Sep-08 10:09 
GeneralRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
phn11016-Sep-08 10:23
phn11016-Sep-08 10:23 
GeneralRe: Calling a Stored Procedure with Parameter as a FilePath in VB6 Pin
Dave Kreskowiak16-Sep-08 11:37
mveDave Kreskowiak16-Sep-08 11:37 
QuestionVisual Source safe Pin
raghav_bhat16-Sep-08 6:30
raghav_bhat16-Sep-08 6:30 
AnswerRe: Visual Source safe Pin
John_Adams16-Sep-08 7:57
John_Adams16-Sep-08 7:57 
QuestionShould I revert to DAO? Pin
MartinSW16-Sep-08 4:19
MartinSW16-Sep-08 4:19 
AnswerRe: Should I revert to DAO? Pin
Dave Kreskowiak16-Sep-08 5:42
mveDave Kreskowiak16-Sep-08 5:42 
GeneralRe: Should I revert to DAO? Pin
MartinSW16-Sep-08 6:01
MartinSW16-Sep-08 6:01 
GeneralRe: Should I revert to DAO? Pin
Dave Kreskowiak16-Sep-08 7:03
mveDave Kreskowiak16-Sep-08 7:03 
Question[Message Deleted] Pin
pavanip16-Sep-08 0:07
pavanip16-Sep-08 0:07 
AnswerRe: Anti Spyware software PinPopular
Dave Kreskowiak16-Sep-08 1:49
mveDave Kreskowiak16-Sep-08 1:49 
QuestionCheck dll files at the Start of the Application Pin
pdnet15-Sep-08 23:48
pdnet15-Sep-08 23:48 

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.