Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Create Implementation bug
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

tjcbs
Tomato Guru

104 Posts

Posted - May 09 2015 :  01:22:17 AM  Show Profile  Reply with Quote
Create Implementation fails for one method of this class. Really not sure what is going on here.

The class (in .h)
class spriteAnim
{
public:
   spriteAnim(spriteBatch* pBatch, int batIdx);
   
   void SetAnim(int idx);
   void SetT(float t);

private:
   spriteBatch* mpBatch;
   int mBatchIdx;
   int mIdx1, mIdx2;
   int mAnimIdx;
   
public:
   static void Associate(int idx, const char* sFileNameBase, spriteSheet* pSheet, bool bLoop)
};


The result of Create Implementation on Associate:
class spriteAnim
{
   :
   spriteAnim(spriteBatch* pBatch, int batIdx);

   void SetAnim(int idx);
   void SetT(float t);

   :
   spriteBatch* mpBatch;
   int mBatchIdx;
   int mIdx1, mIdx2;
   int mAnimIdx;

   :
   void Associate(int idx, const char* sFileNameBase, spriteSheet* pSheet, bool bLoop) spriteAnim::Associate(spriteBatch* pBatch, int batIdx) void SetAnim(int idx)
   {

   }


VS2008, 10.9.2062.0

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - May 09 2015 :  1:04:45 PM  Show Profile  Reply with Quote
I am seeing the same thing here, thank you for the clear description. You are missing a semi-colon at the end of the declaration of Associate. Add in the semi-colon and Create Implementation works correctly.

Once you know to watch for this problem, it helps to explain these odd effects.

zen is the art of being at one with the two'ness
Go to Top of Page

tjcbs
Tomato Guru

104 Posts

Posted - May 09 2015 :  4:53:34 PM  Show Profile  Reply with Quote
Ah, should have actually tried to compile first!! Sorry, and thanks.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - May 09 2015 :  5:18:16 PM  Show Profile  Reply with Quote
Really not a problem, and often VA does help on code that does not compile. Still, checking if the code compiles is generally a good first step.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000