• Create Account

### #ActualNyssa

Posted 05 January 2013 - 08:51 PM

So this worked?

effMacros[0].Definition = "40";

The reason you would be seeing errors here is because "to_string" is returning a local variable (I'm guessing)  hence the string maybe destroyed after leaving the function "to_string".

So the reason it's working for the Message Box maybe just luck.

### #1Nyssa

Posted 05 January 2013 - 08:46 PM

So this worked?

effMacros[0].Definition = "40";

The reason you would be seeing errors here is because "to_string" is returning a local variable (I'm guessing)  hence the string maybe destroyed after leaving the function "to_string".

So the reason it's working for the Message Box maybe just luck and/or it's handling the string differently than how "D3DXCreateEffectFromFile" handles it.

PARTNERS