Click here to Skip to main content
15,912,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to delete specific elements in a char pointer Pin
Priya_Sundar10-Oct-07 22:58
Priya_Sundar10-Oct-07 22:58 
AnswerRe: how to delete specific elements in a char pointer Pin
chandu00410-Oct-07 23:17
chandu00410-Oct-07 23:17 
GeneralRe: how to delete specific elements in a char pointer Pin
toxcct10-Oct-07 23:22
toxcct10-Oct-07 23:22 
GeneralRe: how to delete specific elements in a char pointer Pin
chandu00411-Oct-07 4:04
chandu00411-Oct-07 4:04 
GeneralRe: how to delete specific elements in a char pointer Pin
Priya_Sundar10-Oct-07 23:45
Priya_Sundar10-Oct-07 23:45 
GeneralRe: how to delete specific elements in a char pointer Pin
jhwurmbach11-Oct-07 0:46
jhwurmbach11-Oct-07 0:46 
GeneralRe: how to delete specific elements in a char pointer Pin
Priya_Sundar11-Oct-07 1:35
Priya_Sundar11-Oct-07 1:35 
GeneralRe: how to delete specific elements in a char pointer Pin
jhwurmbach11-Oct-07 1:50
jhwurmbach11-Oct-07 1:50 
You want to convert a GUID to a String?
Try somthing like this:

void GetFormattedGuid( const GUID& guid, CString& rString)
{
  // use appropriate formatting string
  const CString strFormat(_T("%08lX-%04X-%04x-%02X%02X-%02X%02X%02X%02X%02X%02X"));

  // then format into destination
  rString.Format(strFormat,
    guid.Data1, guid.Data2, guid.Data3,
    guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
    guid.Data4[4], guid.Data4[5], guid.Data4[6], m_guid.Data4[7],
  );
}
When you are using MFC anyway, there is no point in not using it to help you.



Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal.
George Orwell, "Keep the Aspidistra Flying", Opening words

GeneralRe: how to delete specific elements in a char pointer Pin
Priya_Sundar11-Oct-07 2:41
Priya_Sundar11-Oct-07 2:41 
GeneralRe: how to delete specific elements in a char pointer Pin
jhwurmbach11-Oct-07 3:31
jhwurmbach11-Oct-07 3:31 
GeneralRe: how to delete specific elements in a char pointer Pin
Priya_Sundar11-Oct-07 1:42
Priya_Sundar11-Oct-07 1:42 
GeneralRe: how to delete specific elements in a char pointer Pin
toxcct11-Oct-07 1:48
toxcct11-Oct-07 1:48 
GeneralRe: how to delete specific elements in a char pointer Pin
jhwurmbach11-Oct-07 1:58
jhwurmbach11-Oct-07 1:58 
QuestionRe: how to delete specific elements in a char pointer Pin
David Crow11-Oct-07 3:45
David Crow11-Oct-07 3:45 
GeneralRe: how to delete specific elements in a char pointer [modified] Pin
chandu00411-Oct-07 4:01
chandu00411-Oct-07 4:01 
GeneralRe: how to delete specific elements in a char pointer Pin
chandu00411-Oct-07 4:05
chandu00411-Oct-07 4:05 
GeneralRe: how to delete specific elements in a char pointer Pin
Matthew Faithfull10-Oct-07 23:23
Matthew Faithfull10-Oct-07 23:23 
AnswerRe: how to delete specific elements in a char pointer Pin
toxcct10-Oct-07 23:33
toxcct10-Oct-07 23:33 
GeneralRe: how to delete specific elements in a char pointer Pin
Priya_Sundar10-Oct-07 23:48
Priya_Sundar10-Oct-07 23:48 
GeneralRe: how to delete specific elements in a char pointer Pin
jhwurmbach11-Oct-07 0:48
jhwurmbach11-Oct-07 0:48 
AnswerRe: how to delete specific elements in a char pointer [modified] Pin
Nelek11-Oct-07 0:15
protectorNelek11-Oct-07 0:15 
QuestionHow to use InvokeHelper function in C++? Pin
PhanMinhDuy10-Oct-07 22:37
PhanMinhDuy10-Oct-07 22:37 
Question[SOLVED]type specifier for UINT64 Pin
chandu00410-Oct-07 22:36
chandu00410-Oct-07 22:36 
AnswerRe: type specifier for UINT64 Pin
Nelek10-Oct-07 22:51
protectorNelek10-Oct-07 22:51 
AnswerRe: type specifier for UINT64 Pin
Nibu babu thomas10-Oct-07 22:52
Nibu babu thomas10-Oct-07 22:52 

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.