Click here to Skip to main content
16,016,527 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralInput Boxes in VB.Net2003 Pin
BooleanOperator25-Nov-03 17:43
BooleanOperator25-Nov-03 17:43 
GeneralLoading A Data Grid from A Module Pin
wvjim25-Nov-03 10:02
wvjim25-Nov-03 10:02 
GeneralRe: Loading A Data Grid from A Module Pin
Anonymous26-Nov-03 23:57
Anonymous26-Nov-03 23:57 
GeneralRe: Loading A Data Grid from A Module Pin
Dave Kreskowiak29-Nov-03 6:04
mveDave Kreskowiak29-Nov-03 6:04 
GeneralNeed help with class design: data types, etc Pin
Toni Danza25-Nov-03 10:01
Toni Danza25-Nov-03 10:01 
GeneralVB.NET toolbar in mdi parent window Pin
krolrules25-Nov-03 4:50
krolrules25-Nov-03 4:50 
GeneralRe: VB.NET toolbar in mdi parent window Pin
Dave Kreskowiak25-Nov-03 8:11
mveDave Kreskowiak25-Nov-03 8:11 
QuestionHow to safely disconnect from a webcam .... Pin
Mohan G25-Nov-03 4:20
Mohan G25-Nov-03 4:20 
hello

i have written an application to take pictures from a webcam (using APIs) and to save the picture into database.its working fine ...
But when i try to close my application its NOT CLOSING PERFECTLY. some times it hangs too.(expect this problem the application is running smoothly)

i am calling the "EndAppln" procedure in a closebutton_click and in the queryunload event of the main form

please see the code below . . . .

Any one please suggest any changes to be made to my application TO SAFELY CLOSE MY APPLICATION ?.

'***** variables declared in a bas module
Public Const CAP_START = &H400
Public Const CAP_GET_CAPSTREAMPTR = CAP_START + 1
Public Const CAP_SET_CALLBACK_ERROR = CAP_START + 2
Public Const CAP_SET_CALLBACK_STATUS = CAP_START + 3
Public Const CAP_SET_CALLBACK_YIELD = CAP_START + 4
Public Const CAP_SET_CALLBACK_FRAME = CAP_START + 5
Public Const CAP_SET_CALLBACK_VIDEOSTREAM = CAP_START + 6
Public Const CAP_SET_CALLBACK_WAVESTREAM = CAP_START + 7
Public Const CAP_DRIVER_CONNECT = CAP_START + 10
Public Const CAP_DRIVER_DISCONNECT = CAP_START + 11
'*****

private sub EndAppln

' the below given are functions declared a module and called from the main form

capSetCallbackOnError = SendMessage(lwnd,CAP_SET_CALLBACK_ERROR, 0,lpProc)

capSetCallbackOnStatus = SendMessage(lwnd,CAP_SET_CALLBACK_STATUS,0,lpProc)

capSetCallbackOnYield = SendMessage(lwnd,CAP_SET_CALLBACK_YIELD, 0,lpProc)

capSetCallbackOnFrame = SendMessage(lwnd,CAP_SET_CALLBACK_FRAME,0,lpProc)

capSetCallbackOnVideoStream = SendMessage(lwnd,CAP_SET_CALLBACK_VIDEOSTREAM, 0,lpProc)

capSetCallbackOnWaveStream = SendMessage(lwnd,CAP_SET_CALLBACK_WAVESTREAM, 0,lpProc)

capSetCallbackOnCapControl = SendMessage(lwnd,CAP_SET_CALLBACK_CAPCONTROL, 0,lpProc)

''''' end of the callback

DoEvents
capDriverDisconnect (mywdc)
capCaptureStop (mywdc)
DestroyWindow (mywdc) ' the API declared in the bas module
UnLoad Me
End
End Sub

Thanks in advance

Mohan G


Mohan G
AnswerRe: How to safely disconnect from a webcam .... Pin
Dave Kreskowiak25-Nov-03 7:41
mveDave Kreskowiak25-Nov-03 7:41 
GeneralRe: How to safely disconnect from a webcam .... Pin
Mohan G30-Nov-03 0:32
Mohan G30-Nov-03 0:32 
GeneralRe: How to safely disconnect from a webcam .... Pin
Dave Kreskowiak30-Nov-03 11:25
mveDave Kreskowiak30-Nov-03 11:25 
GeneralRe: How to safely disconnect from a webcam .... Pin
Mohan G30-Nov-03 18:58
Mohan G30-Nov-03 18:58 
GeneralRe: How to safely disconnect from a webcam .... Pin
Dave Kreskowiak1-Dec-03 11:36
mveDave Kreskowiak1-Dec-03 11:36 
General#Write Problems... Pin
Anonymous24-Nov-03 15:46
Anonymous24-Nov-03 15:46 
GeneralRe: #Write Problems... Pin
Dave Kreskowiak25-Nov-03 3:38
mveDave Kreskowiak25-Nov-03 3:38 
GeneralProblems connecting VB6 to SQL Server with ADO Control Pin
LaptopBoy31124-Nov-03 15:12
LaptopBoy31124-Nov-03 15:12 
GeneralCustom Control Lib VB Std Edition Pin
Rickjs24-Nov-03 6:51
Rickjs24-Nov-03 6:51 
GeneralRe: Custom Control Lib VB Std Edition Pin
Dave Kreskowiak24-Nov-03 8:22
mveDave Kreskowiak24-Nov-03 8:22 
Generalhandling remote registry on a network Pin
R Sharma24-Nov-03 5:23
R Sharma24-Nov-03 5:23 
GeneralRe: handling remote registry on a network Pin
Dave Kreskowiak24-Nov-03 8:05
mveDave Kreskowiak24-Nov-03 8:05 
GeneralRe: handling remote registry on a network Pin
R Sharma24-Nov-03 8:26
R Sharma24-Nov-03 8:26 
Generalwww.itbooksearch.com.Huge IT ebook resources,You need not amazon any more. Each $4. Pin
Anonymous24-Nov-03 2:05
Anonymous24-Nov-03 2:05 
QuestionHow to convert files stored in LOB data type of Oracle to physical files Pin
Yogesh_Dwivedi23-Nov-03 19:32
Yogesh_Dwivedi23-Nov-03 19:32 
Questionhow to open outlook2000 "Contact people" interface use VB Pin
jjwangel23-Nov-03 17:39
jjwangel23-Nov-03 17:39 
AnswerRe: how to open outlook2000 "Contact people" interface use VB Pin
Game Tester24-Nov-03 13:35
Game Tester24-Nov-03 13:35 

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.