Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNewbie question Pin
Nelek27-Sep-07 4:35
protectorNelek27-Sep-07 4:35 
AnswerRe: Newbie question Pin
toxcct27-Sep-07 4:47
toxcct27-Sep-07 4:47 
GeneralRe: Newbie question Pin
Nelek27-Sep-07 5:02
protectorNelek27-Sep-07 5:02 
AnswerRe: Newbie question Pin
Matthew Faithfull27-Sep-07 4:54
Matthew Faithfull27-Sep-07 4:54 
GeneralRe: Newbie question Pin
Nelek27-Sep-07 21:31
protectorNelek27-Sep-07 21:31 
Question"Default" class member Pin
DQNOK27-Sep-07 4:11
professionalDQNOK27-Sep-07 4:11 
AnswerRe: "Default" class member Pin
David Crow27-Sep-07 4:17
David Crow27-Sep-07 4:17 
AnswerRe: "Default" class member Pin
Matthew Faithfull27-Sep-07 4:18
Matthew Faithfull27-Sep-07 4:18 
Not generically no. What you can do is write a custom cast operator so that when the Compiler attempts to cast your myclass to a char* to match the parameters of strncpy str is used. Something like:-
<br />
<br />
operator char*()<br />
{<br />
  return str;<br />
}<br />
<br />

defined within the struct. This is probably not considered 'good' code but as you asked.Smile | :)

Nothing is exactly what it seems but everything with seems can be unpicked.

GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:24
professionalDQNOK27-Sep-07 4:24 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:39
professionalDQNOK27-Sep-07 4:39 
AnswerRe: "Default" class member Pin
led mike27-Sep-07 4:18
led mike27-Sep-07 4:18 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:35
professionalDQNOK27-Sep-07 4:35 
GeneralRe: "Default" class member Pin
led mike27-Sep-07 4:43
led mike27-Sep-07 4:43 
GeneralRe: "Default" class member Pin
DQNOK27-Sep-07 4:52
professionalDQNOK27-Sep-07 4:52 
GeneralRe: "Default" class member Pin
jhwurmbach27-Sep-07 5:19
jhwurmbach27-Sep-07 5:19 
QuestionProject help (Port programming) Pin
TooFast27-Sep-07 3:42
TooFast27-Sep-07 3:42 
AnswerRe: Project help (Port programming) Pin
Roger Stoltz27-Sep-07 4:23
Roger Stoltz27-Sep-07 4:23 
QuestionDetaching dialog boxes Pin
William Engberts27-Sep-07 2:54
William Engberts27-Sep-07 2:54 
AnswerRe: Detaching dialog boxes Pin
Nelek27-Sep-07 3:06
protectorNelek27-Sep-07 3:06 
AnswerRe: Detaching dialog boxes Pin
KarstenK27-Sep-07 3:09
mveKarstenK27-Sep-07 3:09 
AnswerRe: Detaching dialog boxes Pin
David Crow27-Sep-07 3:12
David Crow27-Sep-07 3:12 
GeneralRe: Detaching dialog boxes Pin
William Engberts27-Sep-07 3:19
William Engberts27-Sep-07 3:19 
GeneralRe: Detaching dialog boxes Pin
David Crow27-Sep-07 3:22
David Crow27-Sep-07 3:22 
GeneralRe: Detaching dialog boxes Pin
Waldermort27-Sep-07 4:04
Waldermort27-Sep-07 4:04 
QuestionDifferent between const char * and const char const* Pin
mohindar_kks27-Sep-07 2:27
mohindar_kks27-Sep-07 2:27 

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.