Archived

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

funkman

How do I call

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