[ROOT] Re: From Unix to windowsNT...

From: Valeri Fine (fine@bnl.gov)
Date: Wed Aug 22 2001 - 18:44:45 MEST


Hello, Matt 

> 
> I have a code that runs without any bugs on Unix.
> But this code gives me some errors when I launch it on WindowsNT.
> 
> The errors occurs when I create a TCanvas :
> 
> **** TGWin32PixmapObject::W32_CopyTo is not implemented
> 
> But I don't use any class that is called TGWin32PixmapObject.
> I just create a TCanvas like this :
> TCanvas *c1 = new TCanvas ("c1", "c1", 10, 10, 100, 100);
> 
> I have also a errors when I close the same TCanvas :
> 
> *** TGWin32PixmapObject: Create Bitmap error - 87  0
> 

 One has to see your code to understand what is going wrong there.
 For sure TCanvas class needs an access to  the WIN32 layer and WIN32 
 classes internally . Since all ROOT "painting" operatioins end up with the pixmap 
 manipulations you code does require TGWin32<something>

On the other hand the message:

"**** TGWin32PixmapObject::W32_CopyTo is not implemented
indicated that there is some problem within your code.
I am guessing you want to create TCanvas object from some GUI.

Could you give a working example to reproduce your problem ?

> My last problem that occurs on WindowsNT and not on Linux is with the
> command :
> gVirtualX->ReadGIF(0, 0, image.gif); 

 This method uses some special UNIX library to manage GIF files directly.
 This library has not been ported to Win32 yet.

> It no longer put my image.gif on the current TCanvas. Nothing happens.
 
> Should I do something special for running my code on Windows ?
> Or is there some others functions that work both on Unix and Windows and
> that make the same result ?

 As far as I know at the moment there is no single universal method to do this 
 for both platforms in question.

Of course it can be done, there is no magic here, and there is no technical problem.
Just some one has to do to that (ROOT is kind of Free Software where users are treated 
as co-developers).


  Best regards, 
                                  Valeri



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET