Looking for help wrapping a DLL into a B4P library...

Tex8503

Active Member
Licensed User
Longtime User
Cool beans. I'm excited to give this a shot. The only problem I know of straight away is that I won't be able to add Dolphin.dll as a component because I can't move it out of the 'windows' directory on the device. Is there another way I can reference it in B4P to achieve the same result?

EDIT: I misread your post and thought it said decoder.dll instead of dolphin.dll - my mistake! I'll give this a shot shortly.
 
Last edited:

Tex8503

Active Member
Licensed User
Longtime User
Got an error when trying it... Posting the screen of the error but I'm gonna look into it too.

EDIT : Also here's my B4P code:

Sub Globals

End Sub

Sub App_Start
Form1.Show
hwell.New1
hwell.StartScan
End Sub

Sub btnscan_click
hwell.StopScan
End Sub
 

Attachments

  • Screen01.jpg
    Screen01.jpg
    54.6 KB · Views: 233
Last edited:

Tex8503

Active Member
Licensed User
Longtime User
The plot thickens... If I even just try to initialize it with hwell.new - I get that error...

EDIT: Never mind - I really need to be careful. I had the scanwedge still running so it couldn't gain exclusive access to the imager.

EDIT 2: It works! I'm extremely excited to try and do more with this now that I've got a starting point to try other things. Thank you very much, Agraham!
 
Last edited:

Tex8503

Active Member
Licensed User
Longtime User
My next goal is to figure out how to map these to the scan buttons (which is the 43 key). I can't seem to get B4P to recognize these as keys... Is there a way I can do this with the 'Door' library? Or do I need to write this out in the dolphin.dll?
 

Tex8503

Active Member
Licensed User
Longtime User
So I'm starting to make improvements and learn a bit about C#. I'm trying to add
the public class sound that's in HandheldProducts.Embedded.Hardware - but it won't let me seem to do it as its telling me I need another constructor. I thought I did this - but it seems to be fighting me.

Do you know of any tutorials online that you can recommend that will show me the info I need to get started trying to do what I'm trying to do?
 

agraham

Expert
Licensed User
Longtime User
I don't know of any specific tutorials on-line but there are lots if you Google. My preferred reference for C# is "C# : The Complete Reference" by Herb Schildt.

I don't understand enough about what you are trying to do to comment. I presume it is the C# compiler that is complaining. If you want to post the .cs file I will comment on it if you want.
 

Tex8503

Active Member
Licensed User
Longtime User
Think I figured out my issue. I'll look that book and see if I can find it. Thanks again for all your help, agraham. I've actually already gone ahead and done a port of the code for the Honeywell Dolphin CE devices. My next task will be looking at the Motorola devices, starting with the MC55, because we'll have an upcoming project where we'll need to use them.

Thanks again!
 
Top