T O P I C R E V I E W |
quantuz |
Posted - Jul 12 2012 : 06:37:22 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 |
2 L A T E S T R E P L I E S (Newest First) |
quantuz |
Posted - Jul 15 2012 : 17:22:23 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 |
xequte |
Posted - Jul 13 2012 : 02:39:48 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
|