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

Visual Basic

 
GeneralRe: a question about row-index Pin
vbbeg4-Jun-07 7:11
vbbeg4-Jun-07 7:11 
GeneralRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 8:09
mveDave Kreskowiak4-Jun-07 8:09 
GeneralRe: a question about row-index Pin
Dave Kreskowiak4-Jun-07 13:33
mveDave Kreskowiak4-Jun-07 13:33 
GeneralRe: a question about row-index Pin
vbbeg4-Jun-07 17:24
vbbeg4-Jun-07 17:24 
QuestionProblem in adding dll files Pin
Nanda16054-Jun-07 0:59
Nanda16054-Jun-07 0:59 
AnswerRe: Problem in adding dll files Pin
WhiteGirl234-Jun-07 2:07
WhiteGirl234-Jun-07 2:07 
GeneralRe: Problem in adding dll files Pin
Nanda16054-Jun-07 2:17
Nanda16054-Jun-07 2:17 
GeneralRe: Problem in adding dll files Pin
Dave Kreskowiak4-Jun-07 4:05
mveDave Kreskowiak4-Jun-07 4:05 
You're getting this error message because your trying to add a reference to a .DLL that is not COM-based, just like the message says.

In order to use the functions in that .DLL, you do NOT add a reference to it. You call the functions through P/Invoke. Define the function headers in your code using the Declare statement and setting up the arguments that the function is expecting. For example, to call the Win32 Beep function found in kernel32.dll:
Declare Function Beep Lib "kernel32.dll" (ByVal frequency As Integer, ByVal duration As Integer) As Boolean

Then later in your code:
Dim r As Boolean
' Make a sound at 4000Hz, for 250 millisecond (1/4 second)
r = Beep(4000, 250)



A guide to posting questions on CodeProject[^]

Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007


Questionhelp! Pin
daredevil_beware164-Jun-07 0:55
daredevil_beware164-Jun-07 0:55 
AnswerRe: help! Pin
Christian Graus4-Jun-07 1:47
protectorChristian Graus4-Jun-07 1:47 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 1:51
daredevil_beware164-Jun-07 1:51 
GeneralRe: help! Pin
Christian Graus4-Jun-07 2:54
protectorChristian Graus4-Jun-07 2:54 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:05
Sathesh Sakthivel4-Jun-07 3:05 
QuestionRe: help! Pin
Sonia Gupta4-Jun-07 2:00
Sonia Gupta4-Jun-07 2:00 
AnswerRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:21
Sathesh Sakthivel4-Jun-07 3:21 
AnswerRe: help! Pin
daredevil_beware164-Jun-07 2:58
daredevil_beware164-Jun-07 2:58 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:07
Sathesh Sakthivel4-Jun-07 3:07 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 3:11
daredevil_beware164-Jun-07 3:11 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:18
Sathesh Sakthivel4-Jun-07 3:18 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 3:22
daredevil_beware164-Jun-07 3:22 
GeneralRe: help! Pin
Sathesh Sakthivel4-Jun-07 3:36
Sathesh Sakthivel4-Jun-07 3:36 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 23:46
daredevil_beware164-Jun-07 23:46 
AnswerRe: help! Pin
leckey4-Jun-07 3:59
leckey4-Jun-07 3:59 
GeneralRe: help! Pin
daredevil_beware164-Jun-07 23:51
daredevil_beware164-Jun-07 23:51 
QuestionCan't shut down ocx Pin
sprice864-Jun-07 0:14
professionalsprice864-Jun-07 0:14 

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.