OK - it's been an awful long time since I last wrote any c++, but I want to use it for an LCDSmartie plugin. So I've downloaded the current MS Visual C++ 2005 Express Beta (I know, I know, but budget's tight). That installed OK and I built and ran a little test app.
Then I opened and built the DemoC++Plugin sample. MSVC++ converted the project without complaint. I didn't modify the code and it seems to build OK apart from complaining that 'itoa' was declared deprecated.
I copied the resultant dll into the LCDSmartie\plugins folder, started LCDSmartie and set up a screen to show
$dll(DemoC++Plugin.dll,1,TEST1,TEST) as line 1 and
$dll(demo.dll,5,paramA,paramB) as line 2
demo.dll works OK, my build of DemoC++Plugin.dll doesn't. No output.
Tried changing all the settings I can think of but no luck, so does anyone have a list of blindingly obvious things I should have tried already?
I can post more info if it'll help.
Thanks
Phil.
Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
DemoC++Plugin won't work in Visual C++ 2005 Express Beta
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo
-
- Posts: 4
- Joined: August 22nd, 2005, 10:13 pm
-
- Plugin Author
- Posts: 21
- Joined: July 12th, 2005, 8:42 am
Re: DemoC++Plugin won't work in Visual C++ 2005 Express Beta
I don't have a definitive answer, just guessing:hypercene wrote:demo.dll works OK, my build of DemoC++Plugin.dll doesn't. No output.
-try renaming the dll from DemoC++Plugin.dll to DemoCpp.dll (get rid of the '+' chars and make the name 8.3 style)
-try to call function 5 (does not exist in dll, so LCD Smartie should pop up an error message)
-
- Posts: 4
- Joined: August 22nd, 2005, 10:13 pm
No - what was messing it up was that bozo here was using Smartie 5.1 instead of 5.3.
I have now upgraded to 5.3 rc3 and democ++plugin.dll works as advertised. I've also added a trivial function of my own to prove the point and this works too.
Tip#1: MS Visual Express 2005 beta works OK. Lacks UI support for include paths, but there are workarounds. The itoa warning isn't actually stopping function 2 working as specified - it's only "deprecated" not discontinued.
Tip#2: Get the current release before asking dumb questions in the forum!
I shall now slink off shamefaced into the shadows and re-emerge only when I have another stupid problem I should be able to fix on my own.
Thank you for listening...!
Phil.

I have now upgraded to 5.3 rc3 and democ++plugin.dll works as advertised. I've also added a trivial function of my own to prove the point and this works too.
Tip#1: MS Visual Express 2005 beta works OK. Lacks UI support for include paths, but there are workarounds. The itoa warning isn't actually stopping function 2 working as specified - it's only "deprecated" not discontinued.
Tip#2: Get the current release before asking dumb questions in the forum!
I shall now slink off shamefaced into the shadows and re-emerge only when I have another stupid problem I should be able to fix on my own.
Thank you for listening...!
Phil.