Click here to Skip to main content
15,890,982 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: is there any decryption algorithm that uses a dictionary to decrypyt an encrypted file? Pin
Niklas L5-May-09 3:49
Niklas L5-May-09 3:49 
QuestionStrings Pin
bawratri3-May-09 11:47
bawratri3-May-09 11:47 
AnswerRe: Strings Pin
Joe Woodbury3-May-09 14:08
professionalJoe Woodbury3-May-09 14:08 
GeneralRe: Strings Pin
bawratri4-May-09 2:36
bawratri4-May-09 2:36 
QuestionWhat is The Font??? For the Bottomless RicheditCtrl ??? Pin
ForNow3-May-09 9:03
ForNow3-May-09 9:03 
AnswerRe: What is The Font??? For the Bottomless RicheditCtrl ??? Pin
Randor 3-May-09 17:11
professional Randor 3-May-09 17:11 
GeneralRe: What is The Font??? For the Bottomless RicheditCtrl ??? Pin
ForNow3-May-09 22:58
ForNow3-May-09 22:58 
QuestionChanging FONT of CommandBar.MenuBar buttons in Windows Mobile Pin
Tili3-May-09 7:41
Tili3-May-09 7:41 
QuestionHow to create a CMFCListView that would replace the CListView that currently is not able to use new CMFCListCtrl Pin
Sorin Sbarnea3-May-09 7:08
Sorin Sbarnea3-May-09 7:08 
Questionvisual studio 2005 configuration Pin
Danzy833-May-09 4:03
Danzy833-May-09 4:03 
AnswerRe: visual studio 2005 configuration [modified] Pin
NeoAks0073-May-09 5:07
NeoAks0073-May-09 5:07 
GeneralRe: visual studio 2005 configuration Pin
Danzy833-May-09 6:57
Danzy833-May-09 6:57 
GeneralRe: visual studio 2005 configuration Pin
Cedric Moonen3-May-09 7:24
Cedric Moonen3-May-09 7:24 
Questiongenerate a file after specific time Pin
saif jee3-May-09 3:34
saif jee3-May-09 3:34 
AnswerRe: generate a file after specific time Pin
enhzflep3-May-09 3:45
enhzflep3-May-09 3:45 
AnswerRe: generate a file after specific time Pin
Joe Woodbury3-May-09 14:27
professionalJoe Woodbury3-May-09 14:27 
Questionsomething about the handle of process Pin
tyr20003-May-09 2:09
tyr20003-May-09 2:09 
AnswerRe: something about the handle of process Pin
Hamid_RT3-May-09 2:22
Hamid_RT3-May-09 2:22 
GeneralRe: something about the handle of process Pin
tyr20003-May-09 2:27
tyr20003-May-09 2:27 
GeneralRe: something about the handle of process Pin
enhzflep3-May-09 3:07
enhzflep3-May-09 3:07 
GeneralRe: something about the handle of process Pin
tyr20003-May-09 3:17
tyr20003-May-09 3:17 
GeneralRe: something about the handle of process [modified] Pin
enhzflep3-May-09 3:29
enhzflep3-May-09 3:29 
GeneralRe: something about the handle of process Pin
tyr20004-May-09 4:01
tyr20004-May-09 4:01 
JokeRe: something about the handle of process Pin
Niklas L5-May-09 3:53
Niklas L5-May-09 3:53 
QuestionTemplate Class [modified] Pin
Mikey_H2-May-09 20:49
Mikey_H2-May-09 20:49 
I am using templates for a class for the first time and I cannot figure out what I am doing wrong.

Any help would be greatly appreciated.

This code will generate LNK2019 Unresolved External
// Test AssocArray
	AssocArray<Vector3> myArray;


Class Definition
template <class TValue>
class AssocArray
{
public:
		AssocArray();
		AssocArray(int size, int resizeBy);

	int	GetCount()	{ return m_nItems; }

	void	SetNewSize(int size, bool copy = true);
	void	IncreaseSize(int size, bool copy = true);

	TValue	operator [](int i);
	TValue	operator [](string s);

private:
	int		m_nItems;
	int		m_nMaxItems;
	int		m_nResizeBy;

	KeyValuePair<string, TValue>*	m_array;
};


Class Constructor
template <class TValue>
AssocArray<TValue>::AssocArray()
{
	m_nItems	= 0;
	m_nMaxItems	= 2;
	m_nResizeBy	= 2;
	m_array		= new KeyValuePair[2];
}


modified on Sunday, May 3, 2009 5:28 AM

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.