Re: Calling 'C' Dll in VB 3 by Don
Don
Thu Jul 31 18:22:18 CDT 2003
Thanks, Chris
I will try that.
Don
>-----Original Message-----
>It's a COM library, so it must be registered as well.
>
>www.innovativedss.com/comreg.asp
>
>--
>Chris Tacke, eMVP
>Advisory Board Member
>www.OpenNETCF.org
>---
>Windows CE Product Manager
>Applied Data Systems
>www.applieddata.net
>
>"Don Woods" <drwoods@attglobal.net> wrote in message
>news:06c001c357b2$5c54c380$a101280a@phx.gbl...
>> Chris,
>>
>> Thanks for the response. I found the file in a runtime
>> sub-directory of the Windows CE toolkit. How do I get
it
>> to the Emulator? I tried the remote file viewer, but
>> even though I copied it, the app still can't 'see' it.
>> Where do I need to put it, or how do I get it to the
>> emulator correctly?
>>
>> Also, is there anyway I can tell VB to upload my dll
when
>> it uploads the program? I've been getting it there by
>> running VC, opening it's project, and having it update
>> the remote output files and then going back to VB.
>>
>> Thanks,
>> Don
>> >-----Original Message-----
>> >pvbdecl.dll is part of the eVB runtimes required for
>> using Declare. It is
>> >in your runtimes as part of the installed SDK on the
PC.
>> >
>> >--
>> >Chris Tacke, eMVP
>> >Advisory Board Member
>> >www.OpenNETCF.org
>> >---
>> >Windows CE Product Manager
>> >Applied Data Systems
>> >www.applieddata.net
>> >
>> >"Don Woods" <drwoods@attglobal.net> wrote in message
>> >news:02ba01c357a7$b5538350$a601280a@phx.gbl...
>> >> I have a 'C' dll which i ported to PocketPC and can
>> >> successfully call from a PocketPC 'C' application.
I
>> am
>> >> trying to call it in VB 3. The DLL is compiled with
>> >> _stdcall. In VB it is declared this way:
>> >>
>> >> Declare Function KCVersion Lib "KComm.dll"
>> >> Alias "_KCVersion" ( _
>> >> ByRef x As Integer, ByRef y As Integer, ByRef z As
>> >> Integer) As Integer
>> >>
>> >> It accepts 3 int parms and returns an int. The 3
parms
>> >> are pointers and receive a 3 part version number.
>> >>
>> >> When I try to run it on the PocketPC emulator I get
the
>> >> following error:
>> >>
>> >> Application Error: Cannot find extension file
>> >> pvbDecl.dll. Please run setup to restore this file.
>> >>
>> >> Anybody know what pvbDecl.dll is? My dll is
KComm.dll.
>> >>
>> >> Anybody know what's going on here? If I comment out
the
>> >> above Declare, the application loads fine, but
>> obviously
>> >> doesn't execute the functions.
>> >>
>> >> Thanks,
>> >> Don
>> >
>> >
>> >.
>> >
>
>
>.
>