Article View: borland.public.cppbuilder.nativeapi
Article #10872converting to LPCTSTR and LPTSTR
From: Kevin Johnson
Date: Fri, 12 Mar 2004 10:22
Date: Fri, 12 Mar 2004 10:22
8 lines
1291 bytes
1291 bytes
Hi all, just a very quick one. I'm doing some work with win api's, CreateProcessAsUser etc. Many of the parameter used in these api's are of type LPCTSTR and LPTSTR. All my values are stored in AnsiStrings. So is there anyway to convert / type case to these two different types and if so, what is the best method. I keep bodging it and it sometimes compiles but I would prefer to be using the correct method. Thanks in advance,
Technical Details
Message-ID:
<40518921@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9c3ba41939a2b8bd,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-12 02:09:38 PST From: "Kevin Johnson" <kevjson@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: converting to LPCTSTR and LPTSTR Date: Fri, 12 Mar 2004 10:22:05 -0000 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.2.78.34 Message-ID: <40518921@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079085345 81.2.78.34 (12 Mar 2004 01:55:45 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail