Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralBandObject Help Pin
Member 165616028-Jan-05 6:51
Member 165616028-Jan-05 6:51 
GeneralRe: BandObject Help Pin
Dave Kreskowiak28-Jan-05 7:04
mveDave Kreskowiak28-Jan-05 7:04 
GeneralRe: BandObject Help Pin
Dave Kreskowiak28-Jan-05 7:09
mveDave Kreskowiak28-Jan-05 7:09 
GeneralRe: BandObject Help Pin
Member 165616028-Jan-05 7:15
Member 165616028-Jan-05 7:15 
GeneralRe: BandObject Help Pin
Dave Kreskowiak31-Jan-05 1:23
mveDave Kreskowiak31-Jan-05 1:23 
GeneralDropDown Selection Box Pin
DuckPlucker28-Jan-05 3:43
DuckPlucker28-Jan-05 3:43 
GeneralRe: DropDown Selection Box Pin
Dave Kreskowiak28-Jan-05 6:25
mveDave Kreskowiak28-Jan-05 6:25 
GeneralCalling VB DLLs from C Pin
Rusty7828-Jan-05 3:08
Rusty7828-Jan-05 3:08 
Hello,

I'd like to know if anyone has had any experience with calling DLLS created via VB 6.0 in a C application. The reason I ask is because we are using an Human Machine Interface application which uses a form of C (Called C-Scripting ... an equvalent to VBA) and we would like to use some custom database access dlls that we've already created in C. Do the DLLs have to be rebuilt in a specific way. The equivalent DLL call in VB would be :

Dim x As prjTPMCount.clsTPMCount
Dim vResultDLL As Variant

Set x = New prjTPMCount.clsTPMCount

vResultDLL = x.fctPLC_TPMCount

MsgBox vResultDLL(1, 1), vbInformation, "DLL 1 Output Connection Status"
MsgBox vResultDLL(2, 1), vbInformation, "DLL 2 Output Connection Status"

In C-Script, I tried to declare the .DLL as follows :

#pragma code("RACCTPMCount.dll")
int* fctPLC_TPMCount();
#pragma code()

int* iResult;

iResult = fctPLC_TPMCount();

My error code says it is unable to find the function "fctPLC_TPMCount" in RACCTPMCount.dll

Any help would be greatly appreciated

Cheers

Rusty
GeneralRe: Calling VB DLLs from C Pin
rwestgraham30-Jan-05 17:41
rwestgraham30-Jan-05 17:41 
QuestionHow to pass parameter to VC function like this? Pin
rushing27-Jan-05 23:55
rushing27-Jan-05 23:55 
Generalfilling a DataTable Pin
lxhan27-Jan-05 18:51
lxhan27-Jan-05 18:51 
GeneralRe: filling a DataTable Pin
The Man from U.N.C.L.E.27-Jan-05 23:15
The Man from U.N.C.L.E.27-Jan-05 23:15 
GeneralRe: filling a DataTable Pin
lxhan1-Feb-05 3:37
lxhan1-Feb-05 3:37 
GeneralRe: filling a DataTable Pin
mtone28-Jan-05 3:11
mtone28-Jan-05 3:11 
GeneralRe: filling a DataTable Pin
lxhan1-Feb-05 3:42
lxhan1-Feb-05 3:42 
GeneralBandObject Help Pin
Member 165616027-Jan-05 12:13
Member 165616027-Jan-05 12:13 
GeneralRe: BandObject Help Pin
Dave Kreskowiak28-Jan-05 3:42
mveDave Kreskowiak28-Jan-05 3:42 
Generalcreate word application in vb.net Pin
Member 162996427-Jan-05 11:02
Member 162996427-Jan-05 11:02 
GeneralSuppressing Save as Dialog box Pin
Anonymous27-Jan-05 10:58
Anonymous27-Jan-05 10:58 
Generalbound listbox duplicates displaymember after edit Pin
Mark Payton27-Jan-05 10:45
Mark Payton27-Jan-05 10:45 
GeneralRounding Pin
superprogrammingdude27-Jan-05 10:25
superprogrammingdude27-Jan-05 10:25 
GeneralRe: Rounding Pin
Dave Kreskowiak27-Jan-05 10:37
mveDave Kreskowiak27-Jan-05 10:37 
GeneralCheckBoxes in Detail of Master/Detail Datagrid Pin
dhorne4127-Jan-05 9:56
dhorne4127-Jan-05 9:56 
GeneralInstall windows service application Pin
leezardd27-Jan-05 9:07
leezardd27-Jan-05 9:07 
GeneralRe: Install windows service application Pin
Dave Kreskowiak27-Jan-05 10:34
mveDave Kreskowiak27-Jan-05 10:34 

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.