Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Edit box style Pin
David Crow22-Sep-06 4:04
David Crow22-Sep-06 4:04 
QuestionAsp.net application in vc++.net Pin
amaneet22-Sep-06 1:18
amaneet22-Sep-06 1:18 
AnswerRe: Asp.net application in vc++.net Pin
Christian Graus22-Sep-06 1:42
protectorChristian Graus22-Sep-06 1:42 
GeneralRe: Asp.net application in vc++.net Pin
amaneet22-Sep-06 3:27
amaneet22-Sep-06 3:27 
GeneralRe: Asp.net application in vc++.net Pin
prasad_som22-Sep-06 3:54
prasad_som22-Sep-06 3:54 
GeneralRe: Asp.net application in vc++.net Pin
Christian Graus22-Sep-06 10:24
protectorChristian Graus22-Sep-06 10:24 
AnswerRe: Asp.net application in vc++.net Pin
Hamid_RT22-Sep-06 2:35
Hamid_RT22-Sep-06 2:35 
QuestionCArray of CArray objects Pin
manustone22-Sep-06 0:32
manustone22-Sep-06 0:32 
Hi all

I'm trying to combine together MFC collection classes using CString objects.
I'm compiling with the command line using the following:

cl /Zi /EHsc /D "DEBUG" /D "_DEBUG" TestCollection.cpp /link /NODEFAULTLIB:LIBCMT.lib

When I compile the application without the option /D "UNICODE" and /D "_UNICODE" I've got on the console the output
ITA: <strange character=""> buono
ENG: it's good.

Hoping that UNICODE will fix the strange character I insert the 2 related unicode defines in the command line batch and the otput now is

ITA: 00A96FF8
ENG: 00A96FA8

Do you know why?

Bye Manu

TestCollection.cpp
<br />
#define	WINVER		0x0501<br />
#define	_WIN32_WINNT	0x0501<br />
<br />
<br />
#include "afxtempl.h"<br />
#include <iostream><br />
<br />
typedef CArray<CString, CString> dictionnary;<br />
typedef CArray<dictionnary, dictionnary> translator;<br />
<br />
const int nItems = 3;<br />
const int nDict = 2;<br />
<br />
void main()<br />
{<br />
	dictionnary arEnDic;<br />
	dictionnary arItDic;<br />
<br />
	arEnDic.SetSize(nItems);<br />
	arItDic.SetSize(nItems);<br />
<br />
	arEnDic[0] = _T("bye");<br />
	arItDic[0] = _T("ciao");<br />
<br />
	arEnDic[1] = _T("it's good");<br />
	arItDic[1] = _T("è buono");<br />
<br />
	translator Tr;<br />
	Tr.SetSize(nDict);<br />
	for (int i = 0; i< Tr.GetSize(); i++)<br />
	{<br />
		Tr[i].SetSize(nItems);<br />
	}<br />
	<br />
	Tr[0].Copy( arEnDic );<br />
	Tr[1].Copy( arItDic );<br />
<br />
	std::cout << "ITA: "<< Tr[1].GetAt(1) << std::endl;	<br />
	std::cout << "ENG: "<< Tr[0].GetAt(1) << std::endl;<br />
<br />
}<br />

AnswerRe: CArray of CArray objects Pin
Christian Graus22-Sep-06 0:45
protectorChristian Graus22-Sep-06 0:45 
GeneralRe: CArray of CArray objects Pin
manustone22-Sep-06 2:23
manustone22-Sep-06 2:23 
AnswerRe: CArray of CArray objects Pin
Kevin McFarlane22-Sep-06 0:54
Kevin McFarlane22-Sep-06 0:54 
GeneralRe: CArray of CArray objects Pin
manustone22-Sep-06 2:25
manustone22-Sep-06 2:25 
AnswerRe: CArray of CArray objects Pin
Zac Howland22-Sep-06 2:58
Zac Howland22-Sep-06 2:58 
QuestionPlese i need some help over here !!!!! Pin
Bravoone_200622-Sep-06 0:10
Bravoone_200622-Sep-06 0:10 
QuestionRe: Plese i need some help over here !!!!! Pin
toxcct22-Sep-06 0:13
toxcct22-Sep-06 0:13 
AnswerRe: Plese i need some help over here !!!!! Pin
Bravoone_200622-Sep-06 0:17
Bravoone_200622-Sep-06 0:17 
GeneralRe: Plese i need some help over here !!!!! Pin
toxcct22-Sep-06 0:19
toxcct22-Sep-06 0:19 
GeneralRe: Plese i need some help over here !!!!! Pin
Christian Graus22-Sep-06 0:22
protectorChristian Graus22-Sep-06 0:22 
GeneralRe: Plese i need some help over here !!!!! Pin
Hamid_RT22-Sep-06 1:19
Hamid_RT22-Sep-06 1:19 
AnswerRe: Plese i need some help over here !!!!! Pin
Christian Graus22-Sep-06 0:19
protectorChristian Graus22-Sep-06 0:19 
AnswerRe: Plese i need some help over here !!!!! Pin
Bravoone_200622-Sep-06 0:34
Bravoone_200622-Sep-06 0:34 
GeneralRe: Plese i need some help over here !!!!! Pin
Christian Graus22-Sep-06 0:52
protectorChristian Graus22-Sep-06 0:52 
AnswerRe: Plese i need some help over here !!!!! Pin
Bravoone_200622-Sep-06 1:02
Bravoone_200622-Sep-06 1:02 
GeneralRe: Plese i need some help over here !!!!! Pin
Christian Graus22-Sep-06 1:04
protectorChristian Graus22-Sep-06 1:04 
AnswerRe: Plese i need some help over here !!!!! Pin
Bravoone_200622-Sep-06 1:31
Bravoone_200622-Sep-06 1:31 

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.