Doles
19th June 2008, 17:04
Hi all,
I`m brand-new Qt programmer. I`ve written my first serious program. It is a kind of network monitor, very simple just shows basic informations such as IP, Broadcast etc. On Linux it works correctly but on Windows I get the GUID numbers in QComboBox (on Linux of course there are names like a "eth0" or "lo"). I decided to use some WinAPI functions to convert this numbers to normal ASCII name. But of course now I have some problems with my source code. When I fire up "make" i get this message:
qip.h:77: error: `PIP_ADAPTER_ADDRESSES` does not a name of type
I don`t know what is wrong. This is my source code:
File: qip.h
http://paste.org/index.php?id=3096
File: qip.cpp
http://paste.org/index.php?id=3097
And this is the QIP.pro file:
################################################## ####################
# Automatically generated by qmake (2.01a) Cz 19. cze 15:49:43 2008
################################################## ####################
TEMPLATE = app
TARGET =
DEPENDPATH += . release
INCLUDEPATH += .
# Input
HEADERS += qip.h \
c:\mingw\include\iphlpapi.h \
c:\mingw\include\winsock2.h
FORMS += qip.ui
SOURCES += main.cpp qip.cpp
RESOURCES += qipresources.qrc
TRANSLATIONS += trans_pl.ts
QT += network
RC_FILE = qip_resource.rc
I don`t sure that my idea was good. Maybe there is more convenient and smart way
Regards,
Bartek
I`m brand-new Qt programmer. I`ve written my first serious program. It is a kind of network monitor, very simple just shows basic informations such as IP, Broadcast etc. On Linux it works correctly but on Windows I get the GUID numbers in QComboBox (on Linux of course there are names like a "eth0" or "lo"). I decided to use some WinAPI functions to convert this numbers to normal ASCII name. But of course now I have some problems with my source code. When I fire up "make" i get this message:
qip.h:77: error: `PIP_ADAPTER_ADDRESSES` does not a name of type
I don`t know what is wrong. This is my source code:
File: qip.h
http://paste.org/index.php?id=3096
File: qip.cpp
http://paste.org/index.php?id=3097
And this is the QIP.pro file:
################################################## ####################
# Automatically generated by qmake (2.01a) Cz 19. cze 15:49:43 2008
################################################## ####################
TEMPLATE = app
TARGET =
DEPENDPATH += . release
INCLUDEPATH += .
# Input
HEADERS += qip.h \
c:\mingw\include\iphlpapi.h \
c:\mingw\include\winsock2.h
FORMS += qip.ui
SOURCES += main.cpp qip.cpp
RESOURCES += qipresources.qrc
TRANSLATIONS += trans_pl.ts
QT += network
RC_FILE = qip_resource.rc
I don`t sure that my idea was good. Maybe there is more convenient and smart way
Regards,
Bartek