I'm having some trouble finding tokens within the HL project...

I got it to compile using this code:

#include "vgui/ILocalize.h"

...

vgui::ILocalize *localize;

char *token_modelname;
Q_snprintf(token_modelname, sizeof(ModelName) + 1, "#%s", ModelName);
wchar_t *token_modelName_localized = localize->Find(token_modelname);

It crashes on:

wchar_t *token_modelName_localized = localize->Find(token_modelname);

I break in the debugger and it says "Access violation" and when I quit
it says "pure virtual function call".

--
Kamran A
Get Firefox! Safer, Faster, Better.
<http://www.spreadfirefox.com/?q=affiliates&id=0&t=85>
Down with Internet Explorer! Say "NO!" to Spyware! Use Firefox


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to