Click here to Skip to main content
15,914,360 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Event / Message sent to framework on Theme Change Pin
VanHlebar14-Nov-03 5:45
VanHlebar14-Nov-03 5:45 
GeneralRe: Event / Message sent to framework on Theme Change Pin
João Paulo Figueira14-Nov-03 6:55
professionalJoão Paulo Figueira14-Nov-03 6:55 
GeneralRe: Event / Message sent to framework on Theme Change Pin
VanHlebar14-Nov-03 7:38
VanHlebar14-Nov-03 7:38 
GeneralRe: Event / Message sent to framework on Theme Change Pin
João Paulo Figueira14-Nov-03 8:05
professionalJoão Paulo Figueira14-Nov-03 8:05 
GeneralRe: Event / Message sent to framework on Theme Change Pin
VanHlebar14-Nov-03 9:27
VanHlebar14-Nov-03 9:27 
GeneralRe: Event / Message sent to framework on Theme Change Pin
VanHlebar17-Nov-03 17:33
VanHlebar17-Nov-03 17:33 
GeneralRe: Event / Message sent to framework on Theme Change Pin
João Paulo Figueira18-Nov-03 7:52
professionalJoão Paulo Figueira18-Nov-03 7:52 
GeneralRe: Event / Message sent to framework on Theme Change Pin
VanHlebar20-Nov-03 2:15
VanHlebar20-Nov-03 2:15 
João Paulo Figueira wrote:
Can you please show me the code that you are using to add the quotes to the string?

Regards,
João Paulo


Ok,
Again the text in my text file is Today Theme=\My Documents\My Theme.tsk.

If I was going to do this without reading it in from the file I would have to format the string as such:
_T("\"\\My Documents\\My Theme.tsk\"");

Here is the code that I am using to attempt to format the string properly. I am getting the path then converting it to a CString so that I can do some other maniplutions to it.

"str" has the string value of "Today Theme" and tmp has a value of "Today Theme=\My Documents\My Theme.tsk".

I created the file on my desktop using Notepad so I am sure that the file is not Unicode and I wonder if that is having anything to do with this?

<br />
	int nCount = str.GetLength() + 1;<br />
	int nLineLength = tmp.GetLength();<br />
<br />
	//Format the line read in from the file properly.<br />
	tmp1[0] = '\\';<br />
<br />
	for(int i = nCount, j = 1; i < nLineLength; i++, j++)<br />
	{<br />
		if( tmp.GetAt(i) == '\\' )<br />
		{<br />
			tmp1[j] = '\\';<br />
			j++;<br />
		}<br />
<br />
		tmp1[j] = tmp.GetAt(i);<br />
		tmp1[j+1] = '\\';<br />
		tmp1[j+2] = NULL;<br />
	}<br />



Thanks for any insight you can provide.

-Eric
GeneralRe: Event / Message sent to framework on Theme Change Pin
João Paulo Figueira20-Nov-03 7:21
professionalJoão Paulo Figueira20-Nov-03 7:21 
QuestionUse of STUtil class in embedded apps? Pin
Mark Findlay11-Nov-03 14:49
Mark Findlay11-Nov-03 14:49 
QuestionHelp!!!---ATL COM Full Control can't cooperate with MFC? Pin
Dev-xiang10-Nov-03 5:28
Dev-xiang10-Nov-03 5:28 
GeneralLinker error for ConvertStringToBSTR() Pin
nigs_krec9-Nov-03 22:49
nigs_krec9-Nov-03 22:49 
GeneralRe: Linker error for ConvertStringToBSTR() Pin
João Paulo Figueira12-Nov-03 2:51
professionalJoão Paulo Figueira12-Nov-03 2:51 
QuestionCan I Link a checkbox to a TextBox? Pin
woaksie7-Nov-03 13:13
woaksie7-Nov-03 13:13 
GeneralEnabling bluetooth Internet bridge via LAN Access Pin
Moo2437-Nov-03 7:27
Moo2437-Nov-03 7:27 
GeneralProblem with _Connection::Open() ! Pin
nigs_krec7-Nov-03 1:54
nigs_krec7-Nov-03 1:54 
GeneralRe: Problem with _Connection::Open() ! Pin
João Paulo Figueira7-Nov-03 2:30
professionalJoão Paulo Figueira7-Nov-03 2:30 
GeneralRe: Problem with _Connection::Open() ! Pin
nigs_krec7-Nov-03 2:53
nigs_krec7-Nov-03 2:53 
GeneralRe: Problem with _Connection::Open() ! Pin
João Paulo Figueira7-Nov-03 2:58
professionalJoão Paulo Figueira7-Nov-03 2:58 
GeneralRe: Problem with _Connection::Open() ! Pin
nigs_krec7-Nov-03 3:13
nigs_krec7-Nov-03 3:13 
GeneralRe: Problem with _Connection::Open() ! Pin
João Paulo Figueira7-Nov-03 3:19
professionalJoão Paulo Figueira7-Nov-03 3:19 
GeneralRe: Problem with _Connection::Open() ! Pin
nigs_krec7-Nov-03 3:48
nigs_krec7-Nov-03 3:48 
GeneralHelp with linker error for &quot;vtMissing&quot; !! Pin
nigs_krec6-Nov-03 0:05
nigs_krec6-Nov-03 0:05 
GeneralRe: Help with linker error for &quot;vtMissing&quot; !! Pin
nigs_krec6-Nov-03 0:12
nigs_krec6-Nov-03 0:12 
GeneralLinker error in eVC Pin
Jinoj5-Nov-03 17:55
Jinoj5-Nov-03 17:55 

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.