Click here to Skip to main content
16,005,473 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to upload .dll files Pin
Dave Kreskowiak8-Feb-06 8:02
mveDave Kreskowiak8-Feb-06 8:02 
QuestionI stumble with Crystal report on VB.NET2005 Pin
Swiss Mantoro7-Feb-06 19:06
Swiss Mantoro7-Feb-06 19:06 
QuestionMs Access Data Updation using VB.Net Pin
mayhem_rules7-Feb-06 18:09
mayhem_rules7-Feb-06 18:09 
AnswerRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak8-Feb-06 8:00
mveDave Kreskowiak8-Feb-06 8:00 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules8-Feb-06 18:04
mayhem_rules8-Feb-06 18:04 
GeneralRe: Ms Access Data Updation using VB.Net Pin
Dave Kreskowiak9-Feb-06 3:02
mveDave Kreskowiak9-Feb-06 3:02 
GeneralRe: Ms Access Data Updation using VB.Net Pin
mayhem_rules10-Feb-06 0:18
mayhem_rules10-Feb-06 0:18 
Questionusing DVP1412.dll in VB.NET Pin
bskirkman7-Feb-06 17:44
bskirkman7-Feb-06 17:44 
General Question: Why would a program exit after a dll call without any error given? Is there any way to find it an error occurs or what the error is within a dll?

Very Specific one:
The following shows some dll declaration conversions for DVP1412.dll (see link at bottom).
The first 2 methods are called and return values that would be correct, however the third call will close program without giving an error while trying to initialise the board.


VB.NET code with VCpp declarations commented out:
<br />
<StructLayout(LayouKind.sequential)>Public Class DVPCaptureCard<br />
    'int DVP1412_CreateSDKInstence(void **pp);<br />
    Declare Function DVP1412_CreateSDKInstence Lib "DVP1412.dll" (<MarshalAs(UnmanagedType.LPStruct)>ByRef pp As DVPCaptureCard) As Int32<br />
    'virtual int DVP1412_GetNoOfDevices() = 0;<br />
    Declare Function DVP1412_GetNoOfDevices Lib "DVP1412.dll" () As Int32<br />
    'virtual int DVP1412_InitSDK(int NoOfDevs, int* IDList) = 0;<br />
    Declare Function DVP1412_InitSDK Lib "DVP1412.dll" (ByVal NoOfDevs As Int32, ByRef IDList As Int32()) As Int32<br />
    ....<br />
    .... rest of methods<br />
end class<br />
<br />
'then on the main form<br />
Private Sub Form1_Load( ....)<br />
    Dim cap as DVPCaptureCard = new DVPCaptureCard()<br />
    result = cap.DVP1412_CreateSDKInstance(cap) ' result = 1 (success)<br />
    result  = cap.DVP1412_GetNoOfDevices() ' result = 1 (1 card is connected)<br />
    <br />
    Dim pn(16) as int32<br />
    result = cap.DVP1412_InitSDK(1, pn)   'program exits here and doesnt reach next line, no error shown<br />
<br />
    ....<br />
    ....<br />
'program closes early: The program has exited with code 0<br />

The method declaration seems ok because changes to it will return an incorrect parameter value from the method (and wont crash) but with what seems the correct use it will crash.
anyone been able to use DVP1412_InitSDK with the DVP1412 board?

original Visual Cpp code is from http://www.advantech.com/support/detail_list.asp?model_id=DVP-1412[^]
QuestionHow to remove this Office COM Add-in Pin
cylix20007-Feb-06 17:31
cylix20007-Feb-06 17:31 
QuestionProblem on changing recordset to dataset Pin
drexler_kk7-Feb-06 17:14
drexler_kk7-Feb-06 17:14 
AnswerRe: Problem on changing recordset to dataset Pin
alien viper7-Feb-06 21:37
alien viper7-Feb-06 21:37 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk7-Feb-06 22:14
drexler_kk7-Feb-06 22:14 
AnswerRe: Problem on changing recordset to dataset Pin
Guffa7-Feb-06 22:36
Guffa7-Feb-06 22:36 
GeneralRe: Problem on changing recordset to dataset Pin
drexler_kk8-Feb-06 20:48
drexler_kk8-Feb-06 20:48 
QuestionHELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom7-Feb-06 13:22
isgrom7-Feb-06 13:22 
AnswerRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River7-Feb-06 14:53
Mekong River7-Feb-06 14:53 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 5:51
isgrom8-Feb-06 5:51 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 7:56
mveDave Kreskowiak8-Feb-06 7:56 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
isgrom8-Feb-06 9:06
isgrom8-Feb-06 9:06 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Dave Kreskowiak8-Feb-06 11:35
mveDave Kreskowiak8-Feb-06 11:35 
GeneralRe: HELP! How to convert msaccess bitmap image to long binary format??? Pin
Mekong River9-Feb-06 20:18
Mekong River9-Feb-06 20:18 
QuestionCopy data from Datagrid to form Pin
Jlawrnce7-Feb-06 10:54
Jlawrnce7-Feb-06 10:54 
AnswerRe: Copy data from Datagrid to form Pin
Jlawrnce7-Feb-06 11:53
Jlawrnce7-Feb-06 11:53 
GeneralRe: Copy data from Datagrid to form Pin
Jlawrnce7-Feb-06 13:56
Jlawrnce7-Feb-06 13:56 
QuestionSorry now in english => system.UnauthorizedAccessException during access on system directory Pin
cosma2177-Feb-06 10:28
cosma2177-Feb-06 10:28 

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.