Click here to Skip to main content
15,906,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: is this VBA? Pin
Pablo.ar17-Aug-04 16:12
Pablo.ar17-Aug-04 16:12 
QuestionHow to close child windows?? Pin
viettho17-Aug-04 6:15
viettho17-Aug-04 6:15 
AnswerRe: How to close child windows?? Pin
Dave Kreskowiak17-Aug-04 10:29
mveDave Kreskowiak17-Aug-04 10:29 
Generalimporting fortran dll's Pin
alankrita17-Aug-04 5:54
alankrita17-Aug-04 5:54 
GeneralRe: importing fortran dll's Pin
Dave Kreskowiak17-Aug-04 10:26
mveDave Kreskowiak17-Aug-04 10:26 
GeneralRe: importing fortran dll's Pin
progload17-Aug-04 15:19
progload17-Aug-04 15:19 
GeneralRe: importing fortran dll's Pin
progload17-Aug-04 15:24
progload17-Aug-04 15:24 
GeneralwaveOutGetDevCaps Pin
mivey417-Aug-04 5:14
mivey417-Aug-04 5:14 
I have been struggling with several of the winmm.dll API's. One of them is the waveOutGetDevCaps function. The arguments aren't complicated but despite every attempt I can't get it to work properly. I have tried searching for on-line documentation and there are multitudes of them but they all use the function passing the same parameters receiving the same successful results. I can't figure this out. Can anyone help me with this.

<snippet of="" code="">

Public Const MAXPNAMELEN = 32
Public Structure WAVEOUTCAPS
Dim wMid As Short
Dim wPid As Short
Dim vDriverVersion As Integer
Dim szPname As String
Dim dwFormats As Integer
Dim wChannels As Short
Dim dwSupport As Integer
End Structure

Public Declare Function waveOutGetDevCaps Lib "winmm.dll" Alias "waveOutGetDevCapsA"
(ByVal uDeviceID As Integer, _
ByRef lpCaps As WAVEOUTCAPS, ByVal uSize As Integer) As Integer




Dim caps As New WAVEOUTCAPS
Dim dev, hWaveOut, hwnd As Integer
Dim buffer As String = (MAXPNAMELEN)

dev = waveOutGetDevCaps(0, caps, Len(caps))

'the string value produced here is evaluated as null as well as any of the other members which produce 0. I have tried switching the ByRef and ByVal keywords around but this hasn't proven to be a resolution.

txtCaps.Text = "Channels = " & caps.szPname

Any help would be appreciated.

Thanks! Smile | :)

"For God so loved the world...." John 3:16
I only have one boss, J.C.

GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak17-Aug-04 5:37
mveDave Kreskowiak17-Aug-04 5:37 
GeneralRe: waveOutGetDevCaps Pin
mivey417-Aug-04 7:38
mivey417-Aug-04 7:38 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak17-Aug-04 10:22
mveDave Kreskowiak17-Aug-04 10:22 
GeneralRe: waveOutGetDevCaps Pin
mivey418-Aug-04 5:52
mivey418-Aug-04 5:52 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak18-Aug-04 6:27
mveDave Kreskowiak18-Aug-04 6:27 
GeneralRe: waveOutGetDevCaps Pin
Dave Kreskowiak18-Aug-04 12:21
mveDave Kreskowiak18-Aug-04 12:21 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 6:34
Anonymous17-Aug-04 6:34 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 6:53
Anonymous17-Aug-04 6:53 
GeneralRe: waveOutGetDevCaps Pin
mivey417-Aug-04 9:11
mivey417-Aug-04 9:11 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 9:34
Anonymous17-Aug-04 9:34 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 9:59
Anonymous17-Aug-04 9:59 
GeneralRe: waveOutGetDevCaps Pin
Anonymous17-Aug-04 10:24
Anonymous17-Aug-04 10:24 
GeneralRe: waveOutGetDevCaps Pin
mivey418-Aug-04 6:25
mivey418-Aug-04 6:25 
GeneralNeed to switch between Applications Pin
awhucks17-Aug-04 4:49
awhucks17-Aug-04 4:49 
GeneralRe: Need to switch between Applications Pin
Pablo.ar17-Aug-04 6:48
Pablo.ar17-Aug-04 6:48 
GeneralRe: Need to switch between Applications Pin
awhucks17-Aug-04 7:36
awhucks17-Aug-04 7:36 
GeneralRe: Need to switch between Applications Pin
awhucks17-Aug-04 7:51
awhucks17-Aug-04 7:51 

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.