|
pradeep455 wrote: sorry for that actually this was my previous ID and as i forgot my password i have created one more ..anyway ill use only one...
WTF are you talking about? Both IDs have been around for 3 to 4 months and you've been consistently posting messages (100+) from both and you want me to believe your bullshit that you forgot the password and such nonsense, even after you've posted stuff from both IDs a few hours back?!
You're humiliating yourself. I shall not be interested in talking to you any more.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Poor guy, he isn't aware of your memory strength.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CComboBox::SelectString
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
This is very straight forward.
You should try something before posting.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes..It's not something to be asked..
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
const *char or const char* ?
Will you PLEASE buy a book and do us all a favour instead of posting the most elementary stuff here every day?! How many days do you think you can be going on like this?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
BUY A BOOK.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
How about making a donation!!!
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Sir, I HAVE a book. Unfortunately, 'The Hound of the Baskervilles', tells me nothing about const char * !
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
char* str = "Hello";
CString cs(str);

|
|
|
|
|
Or at least google!
Cheers
You have the thought that modern physics just relay on assumptions, that somehow depends on a smile of a cat, which isn’t there.( Albert Einstein)
|
|
|
|
|
I came here by google to find how to convert a const char * to CString without a book. I should know better than look for answers in Code Project replies. Guess what? Come 2011, 2012, and beyond people will still be finding this disappointing conversation. Good to know at the top of the search will be fodder like this. 
|
|
|
|
|
char* str = "Hello";
CString cs(str);

|
|
|
|
|
Check the constructor definitions of CString. 
|
|
|
|
|
Hi!!!
I am new in MFC.
I am trying to load the GIF image(Smiley) in the RichEditBox with its animation.
But I have not any idea.
I have already load bitmap images in RichEditBox with at any position in RichEditBox. But I am unable to load Smiey.
How can I load Smiley with its animation in RichEditBox?
Please help me!!
With Thanks,
Mitul Golakiya.
|
|
|
|
|
Hi,
I hanve a ini file with the UNICODE entries like chinese characters, i need to read the values and write it back to ini file. How can i read and write the unicode strings from and to INi file.
Thanks in advance
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
I tried withe GetPrivateProfileStringW, which is not reading properly.
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
Is the ini file mixed with ANSI and UNICODE?
Then, if UNICODE means UTF-8, it may be solved by MultiByteToWideChar and WideCharToMultiByte , I think.
When UNICODE means UTF-16, I dont have any good idea, sorry.
If the ini file is all UTF-16 encoding with BOM, GetPrivateProfileStringW and WritePrivateProfileStringW could not help you?
|
|
|
|
|
Yes the Ini file is the mixture of ANSI and UNICODE.
The file format is also in the UTF-8.
How the MultiByteWideChar will help, is this is th way?
1.Use GetPrivatePrfileString.
2.Convert the buffer using WideCharToMultiByte.
----------------------------
KRISHNA KUMAR T M
|
|
|
|
|
char szUtf8[LINE_SIZE];
int n = GetPrivatePrivateStringA("section", "key", "", szUtf8, LINE_SIZE, "inifile.ini");
DWORD flags = 0;
int n2 = MultiByteToWideChar(CP_UTF8, flags, szUtf8, -1, NULL, 0);
MultiByteToWideChar(CP_UTF8, flags, szUtf8, -1, pUtf16, n2);
Above code can work? (I did not check this with real code yet) Good luck 
|
|
|
|
|
HI i am using a flexgrid which is having one column editable .
How to implement copy and paste functionality to this editable column .
Also how to check the copied string , if it contains any spaces in between i dont have to paste it .
Please provide your comments
|
|
|
|
|
You can show a cut/paste menu reacting to the OnMouseDown event. The message handler has a parameter "short Button" =1 for Left button =2 for right button. You can get the range of selected cells with GetCol() GetRow() GetCellSel() GetRowSel() The two first gives you a corner of selected cells and the two last gives you the opposite corner. You only need to call GetTextMatrix in order to obtain the cell's text and store them in some structure or array or the clipboard. To paste you only have to follow the inverse procedure. I hope this can help you
Source: CodeGuru
|
|
|
|