FabPaint & FabSplitShell

Deutschsprachiges X#-Forum – German language forum

Moderator: wriedmann

Post Reply
lagraf
Posts: 417
Joined: Thu Jan 18, 2018 9:03 am

FabPaint & FabSplitShell

Post by lagraf »

Hallo zusammen,
hat Fabrice die beiden Libs inzwischen auf X# migriert und public gestellt?
Ich habe versucht die Fab PaintLib und Fab PaintLib Control umzustellen, stosse aber dabei auf den Fehler

error XS0103: The name 'OSPrintF' does not exist in the current context 54,4 TrackMouse.prg FabMouseTrackSelection:__DrawSelect

Franz
lagraf
Posts: 417
Joined: Thu Jan 18, 2018 9:03 am

Re: FabPaint & FabSplitShell

Post by lagraf »

Ich habe ausserdem noch Fehler in folgendem Code:

Code: Select all

oHttp := CHttp{"BMTest"}
oHttp:Axit()
Der Fehler bei der Zeile oHttp:Axit() lautet:
error XS0245: Destructors and object.Finalize cannot be called directly. Consider calling IDisposable.Dispose if available.

Wie kann ich den Fehler beheben, lDisposable.Dispose sagt mir nichts?

LG Franz
lagraf
Posts: 417
Joined: Thu Jan 18, 2018 9:03 am

Re: FabPaint & FabSplitShell

Post by lagraf »

Die FabTools für X# habe ich inzwischen im Download Bereich gefunden, ich probiers gleich mal aus!
Bleibt dann noch der XS0245 Fehler beim Axit().
LG Franz
User avatar
Chris
Posts: 4562
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: FabPaint & FabSplitShell

Post by Chris »

Hi Franz,

It's not possible to directly call the destructor (Axit() method in VO) of an object in .Net. The destructor of the cHttp class only calls Destroy(), so you can simply call this method instead in the X# version of your code.
Chris Pyrgas

XSharp Development Team test
chris(at)xsharp.eu
lagraf
Posts: 417
Joined: Thu Jan 18, 2018 9:03 am

Re: FabPaint & FabSplitShell

Post by lagraf »

Danke, habe ich korrigiert!
Franz
lagraf
Posts: 417
Joined: Thu Jan 18, 2018 9:03 am

Re: FabPaint & FabSplitShell

Post by lagraf »

Bin grad an der FabSplitShell dran, hat jemand die beiden Files hsplitbar.cur und vsplitbar.cur?
Bei mir am PC sind sie nicht zu finden und in der FabSplitShell werden sie als Resource definiert.
Franz
g.bunzel@domonet.de
Posts: 97
Joined: Tue Mar 01, 2016 11:50 am
Location: Germany

Re: FabPaint & FabSplitShell

Post by g.bunzel@domonet.de »

Hallo Franz,

...ist im Anhang.

Gerhard
Attachments
CursorImage.zip
(776 Bytes) Downloaded 155 times
Post Reply