Click here to Skip to main content
15,914,500 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDatabase question Pin
sangsram8-Jan-05 14:17
sangsram8-Jan-05 14:17 
GeneralInserting rows from data grid Pin
Anonymous8-Jan-05 10:49
Anonymous8-Jan-05 10:49 
GeneralRe: Inserting rows from data grid Pin
Anonymous9-Jan-05 22:52
Anonymous9-Jan-05 22:52 
GeneralRe: Inserting rows from data grid Pin
Paps210-Jan-05 9:47
Paps210-Jan-05 9:47 
GeneralAVICap32 API in VB.NET Pin
[DK]KiloDunse8-Jan-05 10:06
[DK]KiloDunse8-Jan-05 10:06 
GeneralRe: AVICap32 API in VB.NET Pin
[DK]KiloDunse9-Jan-05 23:51
[DK]KiloDunse9-Jan-05 23:51 
Generalsetup wizard Pin
Boniolopez8-Jan-05 4:49
Boniolopez8-Jan-05 4:49 
GeneralCallback function not working?? Video capture. Pin
[DK]KiloDunse8-Jan-05 0:37
[DK]KiloDunse8-Jan-05 0:37 
Hi.

I can't seem to get my¨callback function to work... plz help.

This code will throw an error:

Public Function myCallBack(ByVal lwnd As Long, ByVal lpVHdr As Long) As Boolean<br />
<br />
        Dim VideoData() As Byte<br />
        Dim gh As GCHandle = GCHandle.Alloc(lpVHdr, GCHandleType.Pinned)<br />
        Dim AddrOflpVHdr As IntPtr = gh.AddrOfPinnedObject()<br />
<br />
        ' The error come's here.<br />
        Dim VideoHeader As VIDEOHDR = CType(Marshal.PtrToStructure(AddrOflpVHdr, _<br />
        GetType(VIDEOHDR)), VIDEOHDR)<br />
<br />
        gh.Free()<br />
<br />
    End Function


The error is:

An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module.
Additional information: Object reference not set to an instance of an object.
GeneralRe: Callback function not working?? Video capture. Pin
OICU8128-Jan-05 20:05
OICU8128-Jan-05 20:05 
GeneralRe: Callback function not working?? Video capture. Pin
[DK]KiloDunse8-Jan-05 20:31
[DK]KiloDunse8-Jan-05 20:31 
GeneralRe: Callback function not working?? Video capture. Pin
OICU8129-Jan-05 6:13
OICU8129-Jan-05 6:13 
GeneralRe: Callback function not working?? Video capture. Pin
[DK]KiloDunse9-Jan-05 23:50
[DK]KiloDunse9-Jan-05 23:50 
Generaldelete Pin
Makniteasy8-Jan-05 0:30
Makniteasy8-Jan-05 0:30 
GeneralRe: delete Pin
Levi Rosol8-Jan-05 4:35
Levi Rosol8-Jan-05 4:35 
GeneralRe: delete Pin
Makniteasy8-Jan-05 9:56
Makniteasy8-Jan-05 9:56 
Questionvb connect to mysql?? Pin
Ercoolz7-Jan-05 23:47
Ercoolz7-Jan-05 23:47 
AnswerRe: vb connect to mysql?? Pin
Mekong River8-Jan-05 4:25
Mekong River8-Jan-05 4:25 
QuestionThread + Closing application? Pin
DixrouE7-Jan-05 22:21
DixrouE7-Jan-05 22:21 
AnswerRe: Thread + Closing application? Pin
[DK]KiloDunse8-Jan-05 1:16
[DK]KiloDunse8-Jan-05 1:16 
GeneralRe: Thread + Closing application? Pin
DixrouE8-Jan-05 10:48
DixrouE8-Jan-05 10:48 
GeneralCreating Splash Screens Pin
cpod7-Jan-05 16:20
cpod7-Jan-05 16:20 
GeneralRe: Creating Splash Screens Pin
Robert Rohde7-Jan-05 21:21
Robert Rohde7-Jan-05 21:21 
GeneralRe: Creating Splash Screens Pin
cpod9-Jan-05 8:21
cpod9-Jan-05 8:21 
GeneralRe: Creating Splash Screens Pin
Mekong River8-Jan-05 4:30
Mekong River8-Jan-05 4:30 
QuestionDesigning Crystal Report at VB runtime ? Pin
viettho7-Jan-05 13:20
viettho7-Jan-05 13:20 

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.