[BUG?] Plugin Class Constructor not compiles in RB 2006/2007

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Mar 30 14:33:50 CDT 2007


Hi All,

Today we have not that
    V4RB/Examples/Common/Vserver  -- which is console application project

Do not compiles because of error

    Parameters are not compatible with this function
     cc = new VConnection( "localhost", "sa", "sa" )
    
But the same line compiles fine in project which is not Console, but
Application.

* YES, we use latest RB Plugin SDK
* YES, we have mark Valentina classes to be console safe, as
        SetClassConsoleSafe( &ConnectionClass );
 
    I have try make this call as before, so after RegsterClass().


********************************************************************
Below is simple and fast way to reproduce:

1) download and install V4RB 2.5.8
    http://www.paradigmasoft.com/download/V4RB_2_macho_ub.dmg

2) In REALbasic make new project of "Console Application"
    and copy there below text of Run method:

3) try build or run this application, you will get error as above.


------------------------------------------------------
Run()
  dim cc as VConnection
  dim db as VDatabase
  
  Valentina.InitClient()
  
  // ---------------------------
  // CLASS of plugin even do not compiles if constructor have a parameter(s)
  
    // not compiles
  'cc = new VConnection( "localhost", "sa", "sa" )

    // compiles -- although plugin do not have such constructor
  cc = new VConnection( )
  
  'db = new VDatabase( cc ) // not compiles
  
  // ---------------------------
  // CLASS of REALbasic works fine
  dim ee as VCC
  ee = new VCC( 5 )

end
------------------------------------------------------

Here class VCC is a simple class to test made in the same project
And which have simple constructor with one parameter

VCC.VCC( p1 as integer)
    Dim c as integer
    C = p1
end


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list