PDA

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



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

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

while (!file.atEnd())
{
QByteArray line = file.readLine();
//process_line(line);
}


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

Lykurg
11th June 2009, 21: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.

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