PDA

View Full Version : Use wxWidget variables



ruben.rodrigues
16th May 2011, 08:39
Hi all!

Can I use wxWidget variables and if yes how?? I need to use it to convert a date variable that I get from a machine and the company who wrote the code uses a wxDateTime variable.

Thanks

squidge
16th May 2011, 08:45
Sure you can, just like any other C++ library. #include the header and add any appropriate libs to your .pro file.

ruben.rodrigues
16th May 2011, 09:58
Sure you can, just like any other C++ library. #include the header and add any appropriate libs to your .pro file.

I have downloaded the version 2.9.1 and installed at "C:\wxWidgets-2.9.1\include\wx".

I tried to include in my project paths and also on my .pro file but when I include the datetime.h it tell me that it wasn't found even when I see the file at the autocomplition.

How do I include it?

I tried this way on the .pro:
LIBS += -L"C:\wxWidgets-2.9.1\include\wx"

nish
16th May 2011, 11:53
use INCLUDEPATH +=