Click here to Skip to main content
15,921,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to make form Pin
Nelek28-Nov-07 22:26
protectorNelek28-Nov-07 22:26 
AnswerRe: how to make form Pin
wira1guys29-Nov-07 17:26
wira1guys29-Nov-07 17:26 
Questionmanifest file Pin
George_George28-Nov-07 19:18
George_George28-Nov-07 19:18 
AnswerRe: manifest file Pin
Roger Broomfield28-Nov-07 19:46
Roger Broomfield28-Nov-07 19:46 
GeneralRe: manifest file Pin
George_George28-Nov-07 21:09
George_George28-Nov-07 21:09 
GeneralRe: manifest file Pin
Paresh Chitte28-Nov-07 21:43
Paresh Chitte28-Nov-07 21:43 
GeneralRe: manifest file Pin
George_George28-Nov-07 22:37
George_George28-Nov-07 22:37 
GeneralRe: manifest file Pin
Roger Broomfield28-Nov-07 22:02
Roger Broomfield28-Nov-07 22:02 
GeneralRe: manifest file Pin
George_George28-Nov-07 22:34
George_George28-Nov-07 22:34 
AnswerRe: manifest file Pin
KarstenK28-Nov-07 20:24
mveKarstenK28-Nov-07 20:24 
GeneralRe: manifest file Pin
George_George28-Nov-07 21:00
George_George28-Nov-07 21:00 
QuestionHow can make user name and password Case Sensitive Pin
Y_Kaushik28-Nov-07 18:27
Y_Kaushik28-Nov-07 18:27 
AnswerRe: How can make user name and password Case Sensitive Pin
Paresh Chitte28-Nov-07 18:32
Paresh Chitte28-Nov-07 18:32 
GeneralRe: How can make user name and password Case Sensitive Pin
Y_Kaushik28-Nov-07 18:42
Y_Kaushik28-Nov-07 18:42 
QuestionConversion of 'CString/Resouce String' to Char* Pin
Priya_Sundar28-Nov-07 18:10
Priya_Sundar28-Nov-07 18:10 
I have a big structure(NAME_INFO) of strings that needs to be filled up by using the ResourceID.

typedef struct _NAME_INFO<br />
{<br />
  char*				strTagName;<br />
  BOOL				bAlwaysCreate;<br />
} NAME_INFO;


Initialization:
NAME_INFO NamesTable[] =<br />
{<br />
 {ConvertResIdToChar(IDS_PRIYA),true},<br />
 {ConvertResIdToChar(IDS_NISHA),true},<br />
 {ConvertResIdToChar(IDS_RAM),true},<br />
 {ConvertResIdToChar(IDS_RAJ),true},<br />
 {ConvertResIdToChar(IDS_RAHUL),true},<br />
};


At present the function i have is:
char* CNewDialog::ConvertResIdToChar(UINT uResString)<br />
{<br />
	CString strTemp;<br />
	strTemp.LoadString(uResString); <br />
	char* str = strTemp.GetBuffer(strTemp.GetLength());<br />
       //str = strcpy(chTemp, (const char *) strTemp); - NOT WORKING TO FILL UP TABLE<br />
<br />
	return (str);<br />
}<br />


I am not able to fill the 'NamesTable' with the required strings...

Please help!!


Priya Sundar

AnswerRe: Conversion of 'CString/Resouce String' to Char* Pin
User 58385228-Nov-07 18:17
User 58385228-Nov-07 18:17 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
Priya_Sundar28-Nov-07 18:24
Priya_Sundar28-Nov-07 18:24 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
User 58385228-Nov-07 18:26
User 58385228-Nov-07 18:26 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
Priya_Sundar28-Nov-07 18:33
Priya_Sundar28-Nov-07 18:33 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
User 58385228-Nov-07 18:38
User 58385228-Nov-07 18:38 
AnswerRe: Conversion of 'CString/Resouce String' to Char* Pin
Paresh Chitte28-Nov-07 18:39
Paresh Chitte28-Nov-07 18:39 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
Priya_Sundar28-Nov-07 18:48
Priya_Sundar28-Nov-07 18:48 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
Paresh Chitte28-Nov-07 18:53
Paresh Chitte28-Nov-07 18:53 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
Priya_Sundar28-Nov-07 19:27
Priya_Sundar28-Nov-07 19:27 
GeneralRe: Conversion of 'CString/Resouce String' to Char* Pin
ThatsAlok28-Nov-07 19:53
ThatsAlok28-Nov-07 19:53 

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.