Seems it won't be that easy. You'd probably have to dig into the base class and find a way to initialise the object properly. It'd be much faster if you got rid of C++ streams and used stdio or if you used Qt streaming classes and files.
Seems it won't be that easy. You'd probably have to dig into the base class and find a way to initialise the object properly. It'd be much faster if you got rid of C++ streams and used stdio or if you used Qt streaming classes and files.
But the same constructor works fine on windows. According to me since it is a C++ stream, it should work.
But then I need to change a lot of code then and you know it is really overhead.Qt Code:
It'd be much faster if you got rid of C++ streams and used stdio or if you used Qt streaming classes and files.To copy to clipboard, switch view to plain text mode
There has to be some way...Isnt it???
Sure there is a way. Dig into ios::base and find a way to use your FILE* as the appropriate buffer for the stream. That's quite time consuming, so that's why I suggested to find an alternative. Substituting using Qt streams should be quite quick using search&replace tools.
OH!!! File locking doesnt work on windows. I'm surprised..Might be i'm doing somethig wrong..
Firstly
doesnt work on Microsoft Visual Studio .NET 2003. It works on only Microsoft Visual Studio 2005/.NET Framework 2.0.Qt Code:
void _lock_file( FILE* file );To copy to clipboard, switch view to plain text mode
I use Microsoft Visual Studio .NET 2003. Can people there tell me how to lock a file on windows (Microsoft Visual Studio .NET 2003 ) such that, it should be shared locking not exclusive. i.e the file should be locked to prevent other processes to read the same file.
Thanks.
Marcel, looking for some other links...
Thanks
If you are using the Qt 4 Commercial edition. I think you are entitled to use the QtFileLock in the Qt Solutoins
Just have a look at these
http://trolltech.com/products/qt/add...ions/catalog/4
http://trolltech.com/products/qt/add.../qtlockedfile/
http://doc.trolltech.com/solutions/4...ockedfile.html
Last edited by sunil.thaha; 25th May 2007 at 06:26. Reason: updated contents
We can't solve problems by using the same kind of thinking we used when we created them
vermarajeev (25th May 2007)
Bookmarks