windows - Need help passing some LPCTSTR's to a function in C++ -
i'm new c++ , have question obvious. able use msdn example install service (http://msdn.microsoft.com/en-us/library/ms682450%28v=vs.85%29.aspx) if have in stand alone program.
i'm trying add function inside project , having trouble passing lpctstr strings needs name, binary path etc.
so far have tried:
int install(lpctstr servicename, lpctstr servicedisplayname, lpctstr servicepath);
i know wrong, having hard time finding out should use exactly. link pointing explanation fine. thanks!
lpctstr
long pointer const text string
depending on whether targeting unicode/mbcs/ansi build you'd need
const char*
(ansi/mbcs)const wchar_t*
(unicode)
(from memory)
Comments
Post a Comment