Click here to Skip to main content
15,892,737 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: add text file to sql database, VB6.0 Pin
Mohammad Daba'an8-Oct-04 6:34
Mohammad Daba'an8-Oct-04 6:34 
GeneralRe: add text file to sql database, VB6.0 Pin
Dave Kreskowiak8-Oct-04 7:18
mveDave Kreskowiak8-Oct-04 7:18 
GeneralRe: add text file to sql database, VB6.0 Pin
Mohammad Daba'an8-Oct-04 22:09
Mohammad Daba'an8-Oct-04 22:09 
GeneralRe: add text file to sql database, VB6.0 Pin
Dave Kreskowiak11-Oct-04 4:23
mveDave Kreskowiak11-Oct-04 4:23 
GeneralBad GAC! Bad! ...or... COM Object Problem with VB.Net Pin
Mike the Red6-Oct-04 6:38
Mike the Red6-Oct-04 6:38 
GeneralRe: Bad GAC! Bad! ...or... COM Object Problem with VB.Net Pin
Steven Campbell6-Oct-04 11:59
Steven Campbell6-Oct-04 11:59 
GeneralRe: Bad GAC! Bad! ...or... COM Object Problem with VB.Net Pin
Mike the Red7-Oct-04 7:58
Mike the Red7-Oct-04 7:58 
GeneralVB6 and API calls Pin
aslm6-Oct-04 3:50
aslm6-Oct-04 3:50 
Hi, working on some VB6 code and have a question about API calls.

How do I find the proper formating for the "Declare Function" statements that is needed for dll calls in VB. I have used the API Viewer for some functions, variables and constants but for other there is no info in the database file.

One example, the function SetupDiGetClassDevs in setupapi.dll is documented in msdn as

HDEVINFO SetupDiGetClassDevs(
const GUID* ClassGuid,
PCTSTR Enumerator,
HWND hwndParent, DWORD Flags);

but to use this is vb I need to first define the types used and the the actual function, would be something like, if I understand it correct:

Private Declare Function SetupDiGetClassDevs Lib "setupapi.dll" Alias "SetupDiGetClassDevsA" _
(ByRef ClassGuid As GUID, ByRef Enumerator As Long, ByRef hwndParent As Long, ByVal Flags) As Long

Then for the Flags parameter ther is several constants define DIGCF_ALLCLASSES, DIGCF_DEVICEINTERFACE, DIGCF_PRESENT, DIGCF_PROFILE and for those I cant find the actual values that I need for redefining them in VB.

The same goes for a lot of other API calls that I would like to use. Is there any update datafile for the API Viewer to dovnload or any other sorce of info on how to do, or is it all up to digg into the include files and stuff to track down the info?

regards Me
GeneralRe: VB6 and API calls Pin
Anonymous6-Oct-04 12:24
Anonymous6-Oct-04 12:24 
GeneralProblem in "LookupAccountName" function Pin
zeemalik6-Oct-04 0:33
zeemalik6-Oct-04 0:33 
QuestionWH_CBT Global hook? Pin
Hadi Fakhreddine5-Oct-04 20:26
Hadi Fakhreddine5-Oct-04 20:26 
AnswerRe: WH_CBT Global hook? Pin
Anonymous6-Oct-04 11:03
Anonymous6-Oct-04 11:03 
GeneralRe: WH_CBT Global hook? Pin
Hadi Fakhreddine7-Oct-04 20:27
Hadi Fakhreddine7-Oct-04 20:27 
GeneralRe: WH_CBT Global hook? Pin
Anonymous11-Oct-04 9:26
Anonymous11-Oct-04 9:26 
GeneralUsing OpenPrinter/SetPrinter in Win2K3 Pin
cnurse5-Oct-04 20:05
cnurse5-Oct-04 20:05 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
Anonymous6-Oct-04 8:31
Anonymous6-Oct-04 8:31 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
cnurse6-Oct-04 18:36
cnurse6-Oct-04 18:36 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
Anonymous6-Oct-04 19:05
Anonymous6-Oct-04 19:05 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
cnurse6-Oct-04 19:30
cnurse6-Oct-04 19:30 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
cnurse6-Oct-04 20:02
cnurse6-Oct-04 20:02 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
Anonymous6-Oct-04 20:51
Anonymous6-Oct-04 20:51 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
cnurse6-Oct-04 21:00
cnurse6-Oct-04 21:00 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
Anonymous6-Oct-04 21:07
Anonymous6-Oct-04 21:07 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
cnurse6-Oct-04 19:05
cnurse6-Oct-04 19:05 
GeneralRe: Using OpenPrinter/SetPrinter in Win2K3 Pin
Anonymous6-Oct-04 19:11
Anonymous6-Oct-04 19:11 

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.