Our new official repo is on github
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

Discussing issues that occur during plugin development.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo

Post Reply
hypercene
Posts: 4
Joined: August 22nd, 2005, 10:13 pm

DemoC++Plugin won't work in Visual C++ 2005 Express Beta

Post by hypercene »

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.

_X7JAY7X_
Hardware Genie - Plugin Author
Posts: 374
Joined: February 16th, 2005, 10:24 pm
Location: Michigan

Post by _X7JAY7X_ »

What does smartie say when you call the .dll? Or is it completely blank?

J

hypercene
Posts: 4
Joined: August 22nd, 2005, 10:13 pm

Post by hypercene »

Blank.

Does Smartie have its own error log?

I think I checked the system application event log and didn't see anything there.

smack
Plugin Author
Posts: 21
Joined: July 12th, 2005, 8:42 am

Re: DemoC++Plugin won't work in Visual C++ 2005 Express Beta

Post by smack »

hypercene wrote:demo.dll works OK, my build of DemoC++Plugin.dll doesn't. No output.
I don't have a definitive answer, just guessing:
-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)

hypercene
Posts: 4
Joined: August 22nd, 2005, 10:13 pm

Post by hypercene »

Thanks - I did try a version without the "++" but I think it was over 8 chars. The function 5 call is a good idea: should have thought of that myself. I'll try both tonight when I get home from work.

_X7JAY7X_
Hardware Genie - Plugin Author
Posts: 374
Joined: February 16th, 2005, 10:24 pm
Location: Michigan

Post by _X7JAY7X_ »

Has anyone used 2005 beta?

You may need 2003, I think that declared deprceted warning is what is messing it up.

J

hypercene
Posts: 4
Joined: August 22nd, 2005, 10:13 pm

Post by hypercene »

No - what was messing it up was that bozo here was using Smartie 5.1 instead of 5.3. :oops:

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.

_X7JAY7X_
Hardware Genie - Plugin Author
Posts: 374
Joined: February 16th, 2005, 10:24 pm
Location: Michigan

Post by _X7JAY7X_ »

Alright, nice to know 2005 works fine.

Post Reply