Hi Guys,

I have my own custom plugin which runs inside my RB project. Several classes
in the plugin use a function which accepts an integer argument which is an
enum defined in the RB project cast to an integer to be passed on to the
plugin such as :

MyRBpluginclass::pluginfunc( int enumArg1);

Which gets called in the RB project as:

Dim p as New myplugin()
P. pluginfunc( integer(myRBenum.enumelement ) )


For many reasons I would like to NOT have to case the RB project enum item
before passing it to my plugin, but - having tried in my plugin simply to
replace the string :

  {(REALproc) pluginfunc, REALnoImplementation,
"pluginfunc( enumArg1  as Integer)" },

With 

  {(REALproc) pluginfunc, REALnoImplementation,
"pluginfunc( enumArg1  as myRBenum.enumelement )" },

Rgus didn't work.  ( I was hoping that simply leaving the function in the
plugin C++ code accepting an integer while changing the declaration string
to the RB project enum wo9uld be enough.

Question - do I have to define the RB project enum in question inside the
plugin as well ? This seems to me to be problematic since we end up having
dual enums.

Internally in the plugin I use an equivalent enum anyway ( an enum from the
3rd pty C++ library I use -  I then replicate this enum in my RB project ).



Cheers

Dan



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to