does anybody know why this code don't work 
Author Message
 does anybody know why this code don't work

Hello,
does anybody know why this code don't work,
I want to display the menu of a video codec

regards
Frank

Declare Function ICOpen Lib "msvfw32.dll" (ByVal fccType As Int32, _
 ByVal fccHandler As Int32, ByVal wMode As Int32) As Int32
Declare Function ICSendMessage Lib "msvfw32.dll" (ByVal hic As Int32, _
 ByVal msg As Int32, ByRef dw1 As Int32, ByRef dw2 As Int32) As Int32
Declare Function mmioStringToFOURCC Lib "winmm.dll" Alias "mmioStringToFOURCCA" _
 (ByVal sz As String, ByVal uFlags As Int32) As Int32

Const DRV_USER = &H4000
Const ICM_RESERVED_LOW = (DRV_USER + &H1000)
Const ICM_RESERVED = ICM_RESERVED_LOW
Const ICM_CONFIGURE = (ICM_RESERVED + 10)
Const MMIO_TOUPPER = &H10
Const ICMODE_QUERY = 4

Private Sub Button1_Click(ByVal sender As System.Object, _
 ByVal e As System.EventArgs) Handles Button1.Click
 Dim fccType As Int32
 Dim fccHandler As Int32
 Dim hic As Int32

 fccType = mmioStringToFOURCC("VIDC", MMIO_TOUPPER)
 fccHandler = mmioStringToFOURCC("cvid", MMIO_TOUPPER)
 hic = ICOpen(fccType, fccHandler, ICMODE_QUERY)
 ICSendMessage(hic, ICM_CONFIGURE, Handle.ToInt32, 0)
End Sub



Tue, 21 Dec 2004 02:13:26 GMT  
 does anybody know why this code don't work
Frank,

Quote:
>Declare Function ICSendMessage Lib "msvfw32.dll" (ByVal hic As Int32, _
> ByVal msg As Int32, ByRef dw1 As Int32, ByRef dw2 As Int32) As Int32

Looks like the last two parameters should be declared ByVal.

Mattias

===
Mattias Sj?gren (VB MVP)

http://www.msjogren.net/dotnet/



Sat, 25 Dec 2004 09:59:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Migration to VS 2003 worked though I don't know why

2. Doe's anybody knows how to...

3. Refresh/Requery don't seem to work while doing file I/O

4. I don't know why..

5. PLS Help, I don't know why to write

6. VB4 16bit GPF and I don't know why (I bother sometimes)

7. I don't know why..

8. ADO Error! Don't know why

9. PLS Help, I don't know why to write

10. Don't know y not work

11. Sprites and why they don't work

12. Wallpaper Why don't this work in Win95

 

 
Powered by phpBB® Forum Software