ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Custom fileformat BCB C++
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

quantuz

Sweden
55 Posts

Posted - Jul 12 2012 :  06:37:22  Show Profile  Reply
Hi!

I cant get my own fits fileformat to work when running BCB 6, it have worked in the past
I removed the IEAddExtIOPlugin("imagemagick.dll"); so it should not interfer
Code as follows in Formcreate method, but no fits option in the load dialogue whats the problem?
The fits.pas file is constructed like the unc.pas file
Running BCB 6 and IE 3.1.1

TIEFileFormatInfo * FileFormatInfo = new TIEFileFormatInfo();
FileFormatInfo->FileType=1008; // ioFITS;
FileFormatInfo->FullName="FITS Flexible Image Trans.System";
FileFormatInfo->Extensions="fit;fits;fts";
FileFormatInfo->InternalFormat=false;
FileFormatInfo->DialogPage=FileFormatInfo->DialogPage >> ppALL;
FileFormatInfo->ReadFunction=ReadFITS;
FileFormatInfo->WriteFunction=WriteFITS;
FileFormatInfo->TryFunction=TryFITS;
IEFileFormatAdd(FileFormatInfo);

Regards,
//Christer

xequte

39111 Posts

Posted - Jul 13 2012 :  02:39:48  Show Profile  Reply
Hi Christer

So this code is in the create event for your main form?

Also can you check that AutoSetFilter property of the open dialog is set to true.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

quantuz

Sweden
55 Posts

Posted - Jul 15 2012 :  17:22:23  Show Profile  Reply
Hi Nigel!

It works now! I found the problem, I deleted the FileFormatInfo to quick, should wait for form close event..
Also have to make a new FileFormatInfo for each format to add..

Regards,
//Christer
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: