paulzazzarino
11-02-2005, 11:03 PM
This is the wierdest thing. I am using the hpcamlib.dll to collect photo snapshots. Calling a C# libary to platform invoke some functiions within a dll which HP provides (hpcammgr.dll). Running 2.0 CF on an HP device.
If I run the VB demo the dll locates the functions correctly. Note the VB app uses the same C# assembly as the C# app.
If I run the C# demo the dll is located but when I call the first function I get a NotSupportedException exception. This does work with the VB app.
Note: a native C++ app works fine, as does the VB demo. What am I missing here?
OK C++ --> hpcamapi.dll ---> who cares it works!!!
OK VB --> hpcamlib.dll --> hpcammgr.dll hpcamapi.dll
NOT! C# --> hpcamlib.dll --> hpcammgr.dll hpcamapi.dll
the VB and C# app each reference the same assembly, what am I missing here. (I thought C# was supposed to get rid of dll hell!)
If I run the VB demo the dll locates the functions correctly. Note the VB app uses the same C# assembly as the C# app.
If I run the C# demo the dll is located but when I call the first function I get a NotSupportedException exception. This does work with the VB app.
Note: a native C++ app works fine, as does the VB demo. What am I missing here?
OK C++ --> hpcamapi.dll ---> who cares it works!!!
OK VB --> hpcamlib.dll --> hpcammgr.dll hpcamapi.dll
NOT! C# --> hpcamlib.dll --> hpcammgr.dll hpcamapi.dll
the VB and C# app each reference the same assembly, what am I missing here. (I thought C# was supposed to get rid of dll hell!)