At 11:20 AM 4/23/99 -0400, you wrote:
>I can't seem to find a project setting that will allow me compile my project.
>
This is because you have incorrect code.
>Code example:
>char MyString[20];
>int MyInteger;
>
>MyInteger = 10;
>StrVPrintF(MyString,"%i",MyInteger); // This line works using C but
>generates typing errors using C++
The C compiler is more leniant than the C++ compiler. The 3rd argument to
StrVPrintF is supposed to be a _pointer_. You're passing it an int. C
assumes you know what you're talking about and have an address stored in
the int. C++ assumes you don't know what you're talking about unless you
say so - either pass the address of MyInteger or cast it to a pointer.
The V in StrVPrintF means "vector" - another word for array - another word
for pointer. If you used StrPrintF instead it would work fine.