Res: the procedure entry point ..... could not be located in the dynamic link library
Juliano João Bazzo <[email protected]> Tue, 2 Oct 2007 06:43:37 -0700 (PDT)
| Newsgroups | gmane.comp.kde.devel.cygwin |
|---|---|
| Message-ID | <[email protected]> |
--===============1946186688==
Content-Type: multipart/alternative; boundary="0-1568778773-1191332617=:48054"
--0-1568778773-1191332617=:48054
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
The QObject inclusing just took effect for a while. The Runtime error keeps=
happening.=0AMy other guess is a environment problem with VisualStudio and=
QTLibrary specially related with the QListWidget class.=0ADeclaring the QL=
istWidget at the .h works fine however when I create an instance in the .cp=
p, the runtime error show up.=0AMy .h:=0A#pragma once=0A#include <QListWidg=
et>=0A#include <QPushButton>=0A#include "StatusType.h"=0A=0Aclass CStatusLi=
stWidget :=0A public QObject=0A{ =0A Q_OBJECT=0Apublic:=0A CStatusListWidge=
t(void);=0A ~CStatusListWidget(void);=0A void addStatus(CStatusType *status=
);=0Aprivate slots:=0A void clearList();=0Aprivate:=0A void init();=0A QLis=
tWidget *m_ListWidget;=0A QPushButton *m_ClearPB;=0A};=0AMy .cpp:=0A#includ=
e "statuslistwidget.h"=0A#include <QVBoxLayout>=0A#include <QGroupBox>=0ACS=
tatusListWidget::CStatusListWidget(void)=0A{=0A this->init();=0A}=0A=0ACSta=
tusListWidget::~CStatusListWidget(void){}=0Avoid CStatusListWidget::init()=
=0A{=0A QVBoxLayout *mainLayout =3D new QVBoxLayout(); =0A QGroupBox *mainB=
ox =3D new QGroupBox("Status List", NULL);=0A mainBox->setLayout(mainLayou=
t);=0A m_ListWidget =3D NULL; //Just assigning a NULL is working as expecte=
d.=0A //m_ListWidget =3D new QListWidget(); //Creating an instance will com=
pile however break at runtime.=0A...=0AIf the problem happens and I just ma=
ke a build (instead of rebuild =3D clean + build), it keeps breaking even f=
or a working state identified previously. The working state just return to =
really works after a rebuild.=0AI tried with different machines and the pro=
blem is the same, i.e., somehow related with QListWidget.=0AAnybody can hel=
p me to solve such problem?=0AThanks!=0A=0A=0A Abra sua conta no Yahoo=
! Mail, o =FAnico sem limite de espa=E7o para armazenamento!=0Ahttp://br.ma=
il.yahoo.com/
--0-1568778773-1191332617=:48054
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman, new york, times, serif;=
font-size:12pt"><DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman=
, new york, times, serif">The QObject inclusing just took effect for a whil=
e. The Runtime error keeps happening.<BR>My other guess is a environment pr=
oblem with VisualStudio and QTLibrary specially related with the QListWidge=
t class.</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roma=
n, new york, times, serif">Declaring the QListWidget at the .h works fine h=
owever when I create an instance in the .cpp, the runtime error show up.</D=
IV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york=
, times, serif">My .h:<BR>#pragma once<BR>#include <QListWidget><BR>#=
include <QPushButton><BR>#include "StatusType.h"</DIV>=0A<DIV style=
=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">=
<BR>class CStatusListWidget :<BR> public QObject<BR>{ <BR> Q=
_OBJECT<BR>public:<BR> CStatusListWidget(void);<BR> ~CStatusListW=
idget(void);<BR> void addStatus(CStatusType *status);</DIV>=0A<DIV sty=
le=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif=
">private slots:<BR> void clearList();</DIV>=0A<DIV style=3D"FONT-SIZE=
: 12pt; FONT-FAMILY: times new roman, new york, times, serif">private:<BR>&=
nbsp;void init();<BR> QListWidget *m_ListWidget;<BR> QPushButton =
*m_ClearPB;<BR>};</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times=
new roman, new york, times, serif">My .cpp:</DIV>=0A<DIV style=3D"FONT-SIZ=
E: 12pt; FONT-FAMILY: times new roman, new york, times, serif">#include "st=
atuslistwidget.h"<BR>#include <QVBoxLayout><BR>#include <QGroupBox=
></DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, n=
ew york, times, serif">CStatusListWidget::CStatusListWidget(void)<BR>{<BR>&=
nbsp;this->init();<BR>}</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMI=
LY: times new roman, new york, times, serif"><BR>CStatusListWidget::~CStatu=
sListWidget(void){}</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: tim=
es new roman, new york, times, serif">void CStatusListWidget::init()<BR>{<B=
R> QVBoxLayout *mainLayout =3D new QVBoxLayout(); <BR> QGrou=
pBox *mainBox =3D new QGroupBox("Status List", NULL);<BR> mainBo=
x->setLayout(mainLayout);</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FA=
MILY: times new roman, new york, times, serif"> m_ListWidget =3D NULL;=
//Just assigning a NULL is working as expected.<BR> //m_ListWidget =
=3D new QListWidget(); //Creating an instance will compile however break at=
runtime.<BR>...</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times =
new roman, new york, times, serif">If the problem happens and I just make a=
build (instead of rebuild =3D clean + build), it keeps breaking even for a=
working state identified previously. The working state just return to real=
ly works after a rebuild.</DIV>=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMIL=
Y: times new roman, new york, times, serif">I tried with different machines=
and the problem is the same, i.e., somehow related with QListWidget.</DIV>=
=0A<DIV style=3D"FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, t=
imes, serif">Anybody can help me to solve such problem?<BR>Thanks!</DIV></d=
iv><br>=0A=0A=0A Abra sua conta no <a href=3D"http://br.rd.yahoo.com/m=
ail/taglines/mail/*http://br.mail.yahoo.com/">Yahoo! Mail</a>, o =FAnico se=
m limite de espa=E7o para armazenamento! =0A</body></html>
--0-1568778773-1191332617=:48054--
--===============1946186688==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
kde-cygwin mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-cygwin
--===============1946186688==--