Advertisement

04.09.2005 at 05:12PM PDT, ID: 21382959
[x]
Attachment Details

Convert char, string, etc...  to LPCTSTR?

Asked by EVelasco in Windows MFC Programming

Tags: convert, lpctstr, char

I'm trying to use AVIStreamOpenFromFile
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_avistreamopenfromfile.asp

and its second argument is LPCTSTR szFile. I am using the QT library rather than MFC. I cannot include <afx.h> library without getting errors, therefore I am not able to use CString. How would I pass a valid argument into that function with anything under the C++ standard library, such as char, string, etc...?

Thanks.Start Free Trial
 
Loading Advertisement...
 
[+][-]04.09.2005 at 06:59PM PDT, ID: 13745718

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2005 at 10:32PM PDT, ID: 13746112

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2005 at 11:03PM PDT, ID: 13746190

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2005 at 12:13AM PDT, ID: 13746332

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.10.2005 at 01:09PM PDT, ID: 13748654

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2005 at 04:14PM PDT, ID: 13749306

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows MFC Programming
Tags: convert, lpctstr, char
Sign Up Now!
Solution Provided By: rcarlan
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.19.2005 at 11:41PM PDT, ID: 13821777

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.19.2005 at 11:53PM PDT, ID: 13821834

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32