View Full Version : Error::defined after prior declaration as dllimport:

11th June 2009, 22:52
Hi, i am using this code .............

QFile::QFile ( const QString & "proc.txt")
QFile file("prac.txt");
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))

while (!file.atEnd())
QByteArray line = file.readLine();

then i face this type of Error
warning: function 'QFile::QFile(const QString&)' is defined after prior declaration as dllimport: attribute ignored
reply Plz

11th June 2009, 22:59
Sorry for being direct: You really should first learn to program with C++ and then go to Qt, since Qt is pure C++ (If you don't stuff like PyQt.)

And for further questions please use our newbie sections!

To your error: Don't name your own classes after qt classes and look how parameters are passed to your function.

12th June 2009, 02:37
oh my GOD... hahahahah . LOL LOL LOL LOL