Sign in to follow this  
kingpinzs

need help with very simple function

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

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