|
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |
1. When i use wx object, i can't use the functions called from included file #2487 Posted by: 2003-08-20 20:25:13 |
I am do like this:
#include <mylib.h> #include <wx/wx.h>
.... ....
MyFrame(_T(testme()),....
...
in mylib.h , i do like this:
#include <string>
string testme();
string testme() { return "abc"; }
it prompt me errors, if it is just developing dos application, and call the header file, mylib.h, it is running ok, but, if use wx, it's going down... :(
what can i do now?
thanks... |
2. Re: When i use wx object, i can't use the functions called from included file #2488 |
Why not use wxString instead? |
3. Re: When i use wx object, i can't use the functions called from included file #2489 Posted by: 2003-08-20 22:12:43 |
Hi,
you means, use wxString inside mylib.h?
thanks. |
4. Re: When i use wx object, i can't use the functions called from included file #2498 |
Yes. Can't? |
5. Re: When i use wx object, i can't use the functions called from included file #2499 Posted by: 2003-08-21 08:54:13 |
yup, can't..
i have try with this:
wxString testme() { return "hi, this is testing only"; };
finally, giving me this error message:
parse error before ')'
same error message when i use string testme() { .. }
if i replace string to char, it gonna ok.
Or.. got any solutions that, i can return whole string from functions?
Thank you. |
6. Re: When i use wx object, i can't use the functions called from included file #2500 |
Have you included necessary wxWindows headers before use any wx objects? Return a wxString works for me :) |
7. Re: When i use wx object, i can't use the functions called from included file #2501 Posted by: 2003-08-21 13:42:44 |
yes i do, but, i dont know why.
Meanwhile, i wonder is the file crashed. Becuase, when i re-coding again, and compile, it gonna alright now.. -_-"
How do i call wxRegEX object inside? becuase, i can't use regulation express now.. :(
Thanks... |
8. Re: When i use wx object, i can't use the functions called from included file #2502 |
"can't use" means compile error or runtime error? |
9. Re: When i use wx object, i can't use the functions called from included file #2503 Posted by: 2003-08-21 15:21:09 |
i think, is.. no such that function... |
10. Re: When i use wx object, i can't use the functions called from included file #2504 |
Link error? Most probably due to wx lib is not configured with regex enabled. Try these pre-compiled libwxmsw.a : http://g.yi.org/_scripts/file.php?f=2618&r=46 |
11. Re: When i use wx object, i can't use the functions called from included file #2509 Posted by: 2003-08-21 22:25:05 |
it displayed me "ReplaceAll undeclared"
mytext=ReplaceAll("a","e"); |
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next 1 |