Post

 Resources 

Console


directx events in vb5 ? richard (1 reply, 0 views) (2001-Jul-19)
-
Hi - can anyone tell me if there is a problem using directX events in VB5 exe's? The short piece of code listed below seems to work fine in VB5's integrated environment, but if I compile it and run the .exe instead, it causes a page fault in msvbvm50.dll upon exiting. Have I missed something or is there a bug ? thanks for any help. Dim DX As New DirectX7 Dim DS As DirectSound Dim dsEvent As Long Implements DirectXEvent Private Sub Form_Load() Set DS = DX.DirectSoundCreate("") DS.SetCooperativeLevel frmMain.hWnd, DSSCL_PRIORITY dsEvent = DX.CreateEvent(Me) End Sub Private Sub DirectXEvent_DXCallback(ByVal eventid As Long) End Sub Private Sub Form_Unload(Cancel As Integer) DX.DestroyEvent dsEvent End Sub


-
Back to Forum

Re: directx events in vb5 ? richard (0 replies) (2001-Jul-19)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 54 visitors within the last 20 minutes
RSS News Feed