Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Create Implementation bug

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
tjcbs Posted - May 09 2015 : 01:22:17 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 09 2015 : 5:18:16 PM
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.
tjcbs Posted - May 09 2015 : 4:53:34 PM
Ah, should have actually tried to compile first!! Sorry, and thanks.
feline Posted - May 09 2015 : 1:04:45 PM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000