C++ plug-in with a form

ScottMattes

Member³
Previously I have done plug-ins using Delphi and now I am trying to do the same thing with MS C++, but I am having problems adding a form.

The demo C++ plug-ins work just fine and I have even modified one to put a check mark in the menu when the user selects an action, so I know the basics work. Unfortunately, I haven't been able to get in contact with the author.

Has anyone written a plug-in for PL/SQL Dev using C++ that displays a form?

Marco, any help would be appreciated!

Thank you.
 
Well, I am using MS Visual Studio 2010 and PL/SQL Dev 9.

I can open the plug-in demos (both the MFC and Win32) and build them and when I put the resulting .dll file into the plugin directory and start PLSD I can use the plug-in. So, if I needed to do nothing with a form all would be OK.

When I go to add a form to the MFC demo, the project is changed to a CLR based project and two errors are displayed at build time:

Error 11 error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj) C:\Users\Dad\Documents\plsqldev900\PlugInDoc\VC++\copies\VC++ original\VC++\DemoMfc\mfcs100d.lib(dllmodul.obj)

Error 13 error LNK1169: one or more multiply defined symbols found C:\Users\Dad\Documents\plsqldev900\PlugInDoc\VC++\copies\VC++ original\VC++\DemoMfc\Debug\DemoMfc.dll 1

along with 10 warnings about strcat being unsafe and 1 about DESCRIPTION not supported and being ignored.

The Win32 project gets just one error after I add a form to the project:

Error 1 error D8016: '/clr' and '/MTd' command-line options are incompatible C:\Users\Dad\Documents\plsqldev900\PlugInDoc\VC++\copies\VC++ original\VC++\DemoWin32\cl

Any ideas?
 
So, I found a solution for D8016, yippeeee!

NOTE: asdf is the name of the form I added to the project.

But, after I put "#include "asdf.h"" into DemoWin32.cpp I get a ton of errors, starting with C2871: System : a namespace with this name does not exist.

Delphi was ssssssooooooo much easier!
 
Back
Top