??? wrote:
> Dear Klaas,
>
> I have try to do a wxSetEnv(wxT("WXART2D")) on my app startup code and
> found it doesn't works, so I search the doc of wxWidgets and found the
> reason.
>   
Internal you should use this:

 a2dDocviewGlobals->GetVariablesHash().SetVariableString( "WXART2D_ART", 
"where\you\have\them" );

external you can set WXART2D if you prefer.
> The doc says:
>
> wxGetenv
>
> Note that under Win32 it may not return correct value for the
> variables set with wxSetEnv, use wxGetEnv function instead.
>   
Will change it.
> And you use wxGetenv in this case, so you should change to use wxGetEnv.
>
> And I think maybe use some kind of global init funtion to make this
> kind of setting is better.
>   

Don't agree. There are several modules, which can be used alone. I think 
that this here is the easiest way to have something flexible.
Its not my invention, i know the professional CAD/CAE apps do it like 
this too ;-)

Thanks,

Klaas




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to