Page 1 of 1
Smartboards COM/C++ interface
Posted: Sat Feb 09, 2013 11:38 am
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!
Re: Smartboards
Posted: Sat Feb 09, 2013 12:42 pm
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.
Re: Smartboards
Posted: Sat Feb 09, 2013 2:35 pm
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

Re: Smartboards
Posted: Sat Feb 09, 2013 4:06 pm
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.
Re: Smartboards
Posted: Sat Feb 09, 2013 6:08 pm
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

Re: Smartboards
Posted: Sun Feb 10, 2013 5:02 pm
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?
http://www.fileden.com/files/2012/8/19/ ... /smart.zip
Re: Smartboards COM/C++ interface
Posted: Mon Feb 11, 2013 6:47 pm
by Polo
Anyone has any experience with this kind of dll?

Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 12:25 pm
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?

Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 6:32 pm
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.
Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 6:39 pm
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?

Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 6:44 pm
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.
Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 7:01 pm
by Polo
Thanks to both of you, gonna try that!
Re: Smartboards COM/C++ interface
Posted: Fri Feb 15, 2013 8:04 pm
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
