PlugIn with C++ 2010

stef

Member³
I'm trying to recompile my old PlugIn to the new C++Builder 2010. But now i get an error by this part
---> snip
switch (Index)
{
case 2 :
(void *)SYS_Registry = Addr;
 
Please Help does anybody work with CBuilder 2010.

@Marco,

The example (plugIni: Demo2)is also not working anymore!

thx a lot
 
Hi

For the timing being I rewrote the function declaration now and made the cast on the right side.
For the one who is interested.

This looks like:

typedef char* (*TCharPointerFnct)(); // type Callback function
TCharPointerFnct SYS_Registry; // Callback function

// Registration of PL/SQL Developer callback functions
void RegisterCallback(int Index, void *Addr)
{
switch(Index)
{
case 1:
SYS_Version = (TIntPointerFnct)Addr;
break;
case 2:

SYS_Registry = (TCharPointerFnct)Addr;
break;
case 3:
SYS_RootDir = (TCharPointerFnct)Addr;
 
Back
Top