concatenating LPCTSTR

E

ebobnar

I need to call the function LoadImage which take a LPCTSTR argument to
specify the path to the image to load. However, I need to create this
path dynamically from user input by concatenating strings together.
I'm using visual c++.net 2003. I've tried using the String class to
put the image path together and then cast the String to a LPCTSTR, but
that cast is forbidden.

Since I'm using visual c++.net should I not be using functions like
LoadImage that take LPCTSTR arguments, or is there a way to
concatenate LPCTSTR's?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top