Don't struggle to pass strings. Instead, apply these five simple rules when working with embedded strings in VBA. If you want to work with VBA, eventually, you’ll struggle with embedded strings. It ...
You can use atoi() on CStrings, they are automatically converted to a char* when you pass them to a function that wants a char* as a param.