Red Gate forums :: View topic - Have been given an SDK based on VC, and some dlls I need
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
PInvoke.Net
PInvoke.Net forum

Have been given an SDK based on VC, and some dlls I need

Search in PInvoke.Net forum
Post new topic   Reply to topic
Jump to:  
Author Message
JTrahair



Joined: 13 Apr 2010
Posts: 1
Location: Spain, although English

PostPosted: Tue Apr 13, 2010 12:41 pm    Post subject: Have been given an SDK based on VC, and some dlls I need Reply with quote

I have to connect (using Bluetooth) a handheld computer of the sort used by parcels delivery drivers, and a battery operated receipt printer. The computer manufacturer's preferred bluetooth doesn't wake the printer when it goes to sleep (after 60 seconds, to conserve battery). They have given me an SDK with some dlls which do not import into VB2005. I (think I) have to use PInvoke to get round this problem. One of the dlls they supply is supposed to allow me to wake the printer up by using a call from it, but which dll, which call?

I am reasonably proficient in VB.Net, but not VC.

Will PInvoke.Net help me or should I look elsewhere? Thank you.
Back to top
View user's profile Send private message
Paul.Martin



Joined: 03 Feb 2010
Posts: 83
Location: Cambridgeshire

PostPosted: Tue Apr 13, 2010 1:52 pm    Post subject: Reply with quote

Your best bet is to just ask the computer manufacturer.

You will need to use PInvoke if the dlls are written in native code (i.e. not VB.NET, C# or similar).


PInvoke.net probably wont help as it is a community project where users contribute how the call dlls using PInvoke. So unless someone has used the dlls which you have been given they probably wont be there, but feel free to search for some of the dll names to see (and if not feel free to add them afterwards).


Did the computer manufacturers give you any of the header files (they usually have an extension ".h") with the SDK? If so they are the best place to start looking for the methods to call. Hopefully the methods will have sensible names.

If you find something which looks possible then feel free to post back giving the full signature of the method given in the header file and we can see if we can sort out a PInvoke version of the signature.


The best thing to do first though is just talk to the computer manufacturer as otherwise you are going to have a long search.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group