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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -