Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

funkman

How do I call

This topic is 5645 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Yo, I want to call this method: void BoidMusic::StartMusic() { if (m_pDMusic) { m_pDMusic->Activate(TRUE); } if (m_pPrimarySegments[0]) { m_pPerformance->PlaySegment( m_pPrimarySegments[0], 0, 0, NULL); m_dwIndex = 0; } } which is in a class file. I want to call it from a different class file tho. Both classes include music.h I am trying to call it with: BoidMusic->StartMusic(); But get the error message: C:\coursework files\flyloop.cpp(518) : error C2143: syntax error : missing ';' before '->' Please help, Cheers [edited by - funkman on January 30, 2003 12:32:27 PM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!