Sign in to follow this  

need help with very simple function

This topic is 4162 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

int LoadIm(IDirectDrawSurface7 *pdd, string imagename, int tc1,int tc2,int tc3) { IDirectDrawSurface7 *pdds; pdds = DDLoadBitmap(g_pdd,"imagename.C_str()",0,0); DDSetColorKey(pdds,RGB(tc1,tc2,tc3)); } LoadIm(g_pdda,Paddle2.bmp,0,255,0); I am getting error main.cpp:609: error: expected constructor, destructor, or type conversion before '(' token main.cpp:609: error: expected `,' or `;' before '(' token can any one give me an idea why I would get that error?

Share this post


Link to post
Share on other sites

This topic is 4162 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this