Good morning, all.

I know that when i create a panel using pan_create, i can put digits or windows on it through an script string, like this
Code:


pan_create("digits 122, 56, clip_ammo_frmt_str, clip_ammo_font, 1, ammo;", _VAR(3));




this way, i need the variable, the string and the font to be defined in a wdl script, then i have to get a pointer to that using engine_getobj so i can change it.
If I was to make everything in c++ (because i'm doing everything object-oriented and i don't want to mix it up with scripts), how would it be possible to make a digit show a variable not defined in c-script, but defined in c++?
like
Code:

var l_varMyAmmo;
STRING l_strFormat;
FONT l_fontMyFont;
...
pan_create("digits 122, 56, (l_strFormat)?, (l_fontMyFont)?, 1, (l_varMyAmmo)?;", _VAR(3));




How will that work when i use the acknex.dll instead of the .exe (no script)?

thanks,
Filipe