Click here to Skip to main content
16,006,760 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: simple STL map question Pin
Mustafa Demirhan20-Aug-02 11:21
Mustafa Demirhan20-Aug-02 11:21 
GeneralRe: simple STL map question Pin
ns20-Aug-02 11:27
ns20-Aug-02 11:27 
GeneralRe: simple STL map question Pin
jmkhael20-Aug-02 11:29
jmkhael20-Aug-02 11:29 
GeneralRe: simple STL map question Pin
ns20-Aug-02 11:33
ns20-Aug-02 11:33 
GeneralRe: simple STL map question Pin
jmkhael20-Aug-02 11:43
jmkhael20-Aug-02 11:43 
GeneralRe: simple STL map question Pin
ns20-Aug-02 12:05
ns20-Aug-02 12:05 
GeneralRe: simple STL map question Pin
mystro_AKA_kokie20-Aug-02 11:33
mystro_AKA_kokie20-Aug-02 11:33 
GeneralCString Stupidity Pin
carrie20-Aug-02 11:06
carrie20-Aug-02 11:06 
I'm tearing my hair out here through frustration because I know its probably the stupidest of problems but whatever way I try I can't get it fixed.

Basically I've taken a CString from the CFileDialogs GetPathName function, I'm needing to turn that into a char*, or more exact a PSTR but I think they're the same, but I keep getting Access Violations whichever way I try this. Just now my code is

<br />
		char* szPath = new char[pathToExe.GetLength()+1];<br />
		strcpy(szPath,(LPCTSTR)pathToExe);<br />
		TRACE("szPath = %s\n",szPath);<br />


I've also tried using the CString.GetBuffer, without the (LPCTSTR), but no luck there either, how the damnation do I do this Smile | :) Please save my sanity and not laugh too hard at the newbie Smile | :)

Thanks fellas
carrie
GeneralRe: CString Stupidity Pin
Mustafa Demirhan20-Aug-02 11:11
Mustafa Demirhan20-Aug-02 11:11 
GeneralRe: CString Stupidity Pin
carrie20-Aug-02 11:21
carrie20-Aug-02 11:21 
GeneralRe: CString Stupidity Pin
Mustafa Demirhan20-Aug-02 11:26
Mustafa Demirhan20-Aug-02 11:26 
GeneralRe: CString Stupidity Pin
Chris Losinger20-Aug-02 11:14
professionalChris Losinger20-Aug-02 11:14 
GeneralRe: CString Stupidity Pin
Ernest Laurentin20-Aug-02 11:17
Ernest Laurentin20-Aug-02 11:17 
GeneralRe: CString Stupidity Pin
PJ Arends20-Aug-02 13:21
professionalPJ Arends20-Aug-02 13:21 
GeneralRe: CString Stupidity Pin
Ernest Laurentin20-Aug-02 14:33
Ernest Laurentin20-Aug-02 14:33 
GeneralRe: CString Stupidity Pin
Tim Smith20-Aug-02 15:12
Tim Smith20-Aug-02 15:12 
GeneralRe: CString Stupidity Pin
PJ Arends20-Aug-02 16:48
professionalPJ Arends20-Aug-02 16:48 
GeneralRe: CString Stupidity Pin
Daniel Turini20-Aug-02 11:19
Daniel Turini20-Aug-02 11:19 
GeneralRe: CString Stupidity Pin
carrie20-Aug-02 11:23
carrie20-Aug-02 11:23 
Generalget text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:13
ns20-Aug-02 10:13 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
dazinith20-Aug-02 10:24
dazinith20-Aug-02 10:24 
GeneralRe: get text of first item in Clistctrl without selecting it Pin
ns20-Aug-02 10:50
ns20-Aug-02 10:50 
GeneralFile Version Pin
act_x20-Aug-02 10:00
act_x20-Aug-02 10:00 
GeneralRe: File Version Pin
Dave Bryant20-Aug-02 10:26
Dave Bryant20-Aug-02 10:26 
GeneralCTreeCtrl and Selection Changed Event Pin
dazinith20-Aug-02 9:47
dazinith20-Aug-02 9:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.