last day (14 days later) » 

1:03 AM
0
A: Setting the window icon in a nana C++ GUI application

Santiago VarelaIf you use the VS debugger and set a breakpoint to stop at line: nana::API::window_icon_default(nana::paint::image("hunger.ico")); Set a variable watch for: nana::paint::image("hunger.ico") Is nana::paint::image("hunger.ico") defined and != null_ptr? What happens if you pass the absolute...

 
Yes, I tried it with nana::paint::image img("hunger.ico");, which is defined and != NULL, but still doesn't work. Also, using the full absolut path does not help.
Separating the instantiation from the function call actually is what I tried.
 
How about the windows absolute path were the backslashes are used for navigation?
 
Tried that as well.
 
STR(/*absolute path*/) too?
STR(/*path*/) is in many nana examples I've looked at.
Hey man
My latest edit is based on many nana examples I found on the web?
 
hi :)
I tried STR
but that isn't recognized by the compiler
 
1:05 AM
Damn...
nana::API::window_icon_default(nana::paint::image(std::string("hunger.ico")));
 
well, that is what I am doing
 
I understand, but from the 4th constructor here:
http://qpcr4vir.github.io/nana-doxy/html/d9/de1/classnana_1_1paint_1_1image.html
make that "hunger.ico" explictly a std::string
 
yes, I already did
I saved the full path into a std::string and used that before
alsways the same result :(
 
I see...
Sorry man. I ran out of ideas for now...
 
thanks anyway for your time!
 
1:10 AM
No prob.
 

last day (14 days later) »