Smartboards COM/C++ interface

Just starting out? Need help? Post your questions and find answers here.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Smartboards COM/C++ interface

Post by Polo »

Hi all,

Anybody has any experience with Smartboards?
http://en.wikipedia.org/wiki/Smart_Board

It has plugins for Word Powerpoint etc so that Word knows if a pen has been taken from the pen tray (then you can write on a document) or when you're using your fingers (selection only). I'd like to be able to do the same in Purebasic but I'm not really sure how to do that!
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Smartboards

Post by SFSxOI »

Its just a fancy touch screen and the touch API is used so maybe this might help > http://msdn.microsoft.com/en-us/library ... S.85).aspx

or maybe more specifically for manipulating objects something like this example > http://msdn.microsoft.com/en-us/library ... s.85).aspx or this example > http://msdn.microsoft.com/en-us/library ... s.85).aspx and there is a guy over at codeplex working on something similar (or at least I think he was) also at > http://multitouchvista.codeplex.com so you may be able to get some ideas from the source code there to convert or point you in the right direction to get you started.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards

Post by Polo »

I use it every day on XP so not sure the links are relevant. ;)
Also it's about knowing if the pen or eraser has been picked up, the touch without the pen will work for all applications anyway :)
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: Smartboards

Post by SFSxOI »

I misunderstood your post then. sorry 'bout that.

I was informed by the manufacturer of our smartboard that it used the touch api and we only use it with Windows 7 and 8, I guess I just jumped to incorrectly assuming it was basically the same for all of them. Never seen one used with Windows XP. Heck, we don't have any XP systems here except the ones used for downward legacy compatability testing or in our test bed we use for analyzing malware and those are use specific for those purposes and isolated from, and not used for, anything else.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards

Post by Polo »

This board is quite specific because of the pen tray, it has sensors to detect which pen or eraser isn't on the tray and that's mostly what I want to be able to retrieve, but I cannot find any info on the API :cry:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards

Post by Polo »

Right, I did find the SDK, they provide a COM interface or C++ interface, I've got no idea how to use that in Purebasic.

I've uploaded the doc, samples and DLLs here, would someone be so kind to help me get started? :oops:
http://www.fileden.com/files/2012/8/19/ ... /smart.zip
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards COM/C++ interface

Post by Polo »

Anyone has any experience with this kind of dll? :?:
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards COM/C++ interface

Post by Polo »

After fiddling around with the Com DLL and C++ DLL I can't find any ways to get it working.
I'm a bit surprised I'm the first one struggling to use a DLL? :?
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: Smartboards COM/C++ interface

Post by Danilo »

Polo wrote:After fiddling around with the Com DLL and C++ DLL I can't find any ways to get it working.
I'm a bit surprised I'm the first one struggling to use a DLL? :?
The COM DLL must be registered in your system with regsrv. After that you could try to use "COMatePlus" or how it is called.
PureBasic has no direct support for using COM DLLs and objects out of the box easily, but somebody who knows "COMatePlus"
may be able to help you.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards COM/C++ interface

Post by Polo »

That doesn't sound good as I'm not sure I'll be able to register the DLL on some computers. What about that C++ DLL? :oops:
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Smartboards COM/C++ interface

Post by Fred »

IMHO, you can't use it directly in PB, you will have a write a DLL wrapper in C++ which expose the needed function in a C way.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards COM/C++ interface

Post by Polo »

Thanks to both of you, gonna try that!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Smartboards COM/C++ interface

Post by Polo »

Guess using the 2/3 functions I need will take me a couple of months, really does my head in!
I've got no clue on how to use the dll from the dll I'm actually creating in VC2010.
I link the provided lib file but then somehow my DLL needs to know where the other dll is?
Hate C :oops:
Post Reply