-
Initializing
How exactly are you supposed to initialize a class variable? I attached my file for you to look at and the error message.
------ Rebuild All started: Project: TTSOutgoing, Configuration: Debug Win32 ------
Deleting intermediate files and output files for project 'TTSOutgoing', configuration 'Debug|Win32'.
Compiling...
TTSOutgoing.cpp
c:\program files\speechstudio\samples\vcpp\ttsoutgoing\ttsout going.cpp(320) : warning C4700: local variable 'pCallStateEvent' used without having been initialized
Compiling resources...
Linking...
Build log was saved at "file://c:\Program Files\SpeechStudio\Samples\VCpp\TTSOutgoing\Debug\ BuildLog.htm"
TTSOutgoing - 0 error(s), 1 warning(s)
-
Try new'ing the object.
pCallStateEvent = new /*Place Class/Struct name here*/;
-
I'm not exactly sure how you would do that since I'm a newbie. How would you do that at around line 316? Could you show me an example.
-
Let's say I had an object/struct called DOG.
Now I declare a pointer to DOG.
Now before I can use busta, I have to create it.
It shouldn't be too hard to figure out.