It's probably just me but I can never get most "useful" API calls to work. Does anyone know any rules to get from the declare statement to an actual working call ??

Today's API is GetCharWidth(32), all I need is a piece of working sample code to prove that API's aren't another cruel MS Joke.

If anyone could supply me with some code I'd be very grateful. Please don't assume anything ie. variable declarations etc.

I'm trying to find the minimum width I can set for a text box, in case anyone is interested.