Hi,
I appereciate there could be a number of problems with this but thought I would check first, as I had a problem with DrawText and ampersand. I have a list control in a dialog box to which users are allowed to put a URL. This URL is of course stored as a CString in the background and all further manipulations (if necessary) of it, would deal with it being of type CString. The issue comes when a users inputs a semi-colon in the URL. The example I can give is the following made-up URL
http://1.1.1.1/module=Article;action
would change to
htpp://1.1.1.1/module=Article action
I realise there may be a number of reasons why, but just wanted to check this wasnt a setting and/or bug, as my ampersand issue turned out to be not using DT_NOPREFIX in the method call, a reasonable easy fix, is it anything like this
Thanks
Will

CString semi-colon issue
mymsdndoc
Hi Will:
Putting a semi-colon in a CString should not be a problem, and in fact I find that I can do exactly that in an MFC dialog-based app when using the UpdataData mechanism to store the contents of what the user typed in a CEdit control into a CString variable.
Perhaps a code sample showing the problem you are encountering
pine_ant
I just wanted to check that it wasnt anything simple like that. I admit it was a real long shot, and likely not make sense, but since when were computers logical!
Thanks again
Will