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:
Qt Code:
  1. qip.h:77: error: `PIP_ADAPTER_ADDRESSES` does not a name of type
To copy to clipboard, switch view to plain text mode 

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:
Qt Code:
  1. ######################################################################
  2. # Automatically generated by qmake (2.01a) Cz 19. cze 15:49:43 2008
  3. ######################################################################
  4.  
  5. TEMPLATE = app
  6. TARGET =
  7. DEPENDPATH += . release
  8. INCLUDEPATH += .
  9.  
  10. # Input
  11. HEADERS += qip.h \
  12. c:\mingw\include\iphlpapi.h \
  13. c:\mingw\include\winsock2.h
  14. FORMS += qip.ui
  15. SOURCES += main.cpp qip.cpp
  16. RESOURCES += qipresources.qrc
  17. TRANSLATIONS += trans_pl.ts
  18. QT += network
  19. RC_FILE = qip_resource.rc
To copy to clipboard, switch view to plain text mode 

I don`t sure that my idea was good. Maybe there is more convenient and smart way
Regards,
Bartek