Page 1 of 1

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

Posted: August 22nd, 2005, 10:57 pm
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.

Posted: August 23rd, 2005, 5:24 am
by _X7JAY7X_
What does smartie say when you call the .dll? Or is it completely blank?

J

Posted: August 23rd, 2005, 10:07 am
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.

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

Posted: August 24th, 2005, 10:02 am
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)

Posted: August 24th, 2005, 10:48 am
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.

Posted: August 24th, 2005, 8:02 pm
by _X7JAY7X_
Has anyone used 2005 beta?

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

J

Posted: August 24th, 2005, 9:54 pm
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.

Posted: August 25th, 2005, 4:50 am
by _X7JAY7X_
Alright, nice to know 2005 works fine.