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

Re: Calling 'C' Dll in VB 3 by Chris

Chris
Thu Jul 31 16:47:11 CDT 2003

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



Re: Calling 'C' Dll in VB 3 by Don

Don
Thu Jul 31 17:23:26 CDT 2003

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
>
>
>.
>

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
>> >
>> >
>> >.
>> >
>
>
>.
>

Re: Calling 'C' Dll in VB 3 by Don

Don
Tue Aug 05 10:17:26 CDT 2003

Chris,

I got the library registered. Thanks. I wasn't able to
use the first 2 methods: setting 'always' update the
project components, and using the Control Manager.
Control Manager gave the following error:

Failed to find suitable Control Manager Server for your
device.

I ended up using the file viewer to move the files and
then running regsvrce.

Also, I can't seem to get the debugger to work with VB
3. I can easily debug the code on the emulator w/ vc++
3. I wonder if there is something wrong with my
install? Any thoughts? I am alternating between using
vc++ 3 and vb 3, since I can't figure out how to get
my 'C' dll project onto the emulator automatically. I
now have to figure out why my 'C' dll function calls
aren't working, and the debugger would be very helpful...

Thanks again,
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
>