Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5719 > unrolled thread

First compiling in vulcan (fabpaintlib example)

Started bygeert@lucidsolutions.be
First post2013-08-22 14:11 -0700
Last post2013-08-28 00:45 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  First compiling in vulcan (fabpaintlib example) geert@lucidsolutions.be - 2013-08-22 14:11 -0700
    Re: First compiling in vulcan (fabpaintlib example) D.J.W. van Kooten <public@ic2remove.this.com> - 2013-08-23 10:44 +0200
    Re: First compiling in vulcan (fabpaintlib example) "Chris Pyrgas" <cpc@anadelta.com> - 2013-08-27 00:42 +0300
      Re: First compiling in vulcan (fabpaintlib example) geert@lucidsolutions.be - 2013-08-28 00:45 -0700

#5719 — First compiling in vulcan (fabpaintlib example)

Fromgeert@lucidsolutions.be
Date2013-08-22 14:11 -0700
SubjectFirst compiling in vulcan (fabpaintlib example)
Message-ID<66ad5667-9653-4376-ab16-50735acdd06d@googlegroups.com>
error override of virtual method 'Vulcan.VO.CustomControl.Destroy( Vulcan.__Usual[] )' has STRICT calling convention but overridden method is CLIPPER


in


METHOD Destroy() 
	//
	IF ( SELF:oImg != NULL_OBJECT )
		SELF:oImg:Destroy()
	ENDIF
	//
	SUPER:Destroy()
	//
return self

leaves me with a lot of ??? Anyone any idea	

[toc] | [next] | [standalone]


#5720

FromD.J.W. van Kooten <public@ic2remove.this.com>
Date2013-08-23 10:44 +0200
Message-ID<d68e19l4r9ild107gb0qql6aq98olaf1th@4ax.com>
In reply to#5719
On Thu, 22 Aug 2013 14:11:03 -0700 (PDT), geert@lucidsolutions.be
wrote:

Hello Geert,


>error override of virtual method 'Vulcan.VO.CustomControl.Destroy( Vulcan.__Usual[] )' has STRICT calling convention but overridden method is CLIPPER

>in
>

>METHOD Destroy() 


I have 1 transported application which works in Vulcan, Destroy code
there looks like this:

DESTRUCTOR 
	SELF:Destroy()
RETURN 

METHOD Destroy() 
	aElements := {}
RETURN NIL

Dick

[toc] | [prev] | [next] | [standalone]


#5735

From"Chris Pyrgas" <cpc@anadelta.com>
Date2013-08-27 00:42 +0300
Message-ID<kvgi2e$f4s$1@mouse.otenet.gr>
In reply to#5719
Hello,

> error override of virtual method 'Vulcan.VO.CustomControl.Destroy( 
> Vulcan.__Usual[] )' has STRICT calling convention but overridden method is 
> CLIPPER
>
> in
>
> METHOD Destroy()
> //
> IF ( SELF:oImg != NULL_OBJECT )
> SELF:oImg:Destroy()
> ENDIF
> //
> SUPER:Destroy()
> //
> return self
>
> leaves me with a lot of ??? Anyone any idea


This is because the compiler thinks that the METHOD Destroy() in your code 
is of STRICT calling convention, while the base Destroy() method is using 
the CLIPPER calling convention, scenario which is not allowed. In order to 
fix this, you can declare your method explicitly as CLIPPER:

METHOD Destroy() CLIPPER
...

Alternatively, you can enable the "Implicit CLIPPER Calling Convention" 
(/vo5) compiler option in the project properties, which instructs the 
compiler to treat methods without paramaters (like the Destroy() method) as 
CLIPPER by default.

hth,
Chris

[toc] | [prev] | [next] | [standalone]


#5741

Fromgeert@lucidsolutions.be
Date2013-08-28 00:45 -0700
Message-ID<d6940ae7-addb-463d-a53b-02d97d1187ad@googlegroups.com>
In reply to#5735
Thx, 
Geert

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web