Click here to Skip to main content
15,898,893 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: assigning string table element to char* variable Pin
CPallini20-May-09 5:35
mveCPallini20-May-09 5:35 
AnswerRe: assigning string table element to char* variable Pin
ThatsAlok20-May-09 21:53
ThatsAlok20-May-09 21:53 
QuestionMove the rectangle Pin
C_Hunter20-May-09 4:56
C_Hunter20-May-09 4:56 
AnswerRe: Move the rectangle Pin
Hamid_RT20-May-09 19:23
Hamid_RT20-May-09 19:23 
QuestionApply Wim with no progress bar. Pin
Drakesal20-May-09 4:45
Drakesal20-May-09 4:45 
AnswerRe: Apply Wim with no progress bar. Pin
Cedric Moonen20-May-09 4:48
Cedric Moonen20-May-09 4:48 
QuestionButton does not change the position when I resize my dialog Pin
pandit8420-May-09 4:25
pandit8420-May-09 4:25 
AnswerRe: Button does not change the position when I resize my dialog Pin
Cedric Moonen20-May-09 4:40
Cedric Moonen20-May-09 4:40 
AnswerRe: Button does not change the position when I resize my dialog Pin
Rajesh R Subramanian20-May-09 4:59
professionalRajesh R Subramanian20-May-09 4:59 
GeneralRe: Button does not change the position when I resize my dialog Pin
pandit8420-May-09 5:03
pandit8420-May-09 5:03 
AnswerRe: Button does not change the position when I resize my dialog Pin
David Crow20-May-09 5:42
David Crow20-May-09 5:42 
QuestionSet Dialog Size Pin
MsmVc20-May-09 2:55
MsmVc20-May-09 2:55 
AnswerRe: Set Dialog Size Pin
Cedric Moonen20-May-09 3:03
Cedric Moonen20-May-09 3:03 
AnswerRe: Set Dialog Size Pin
Nuri Ismail20-May-09 3:08
Nuri Ismail20-May-09 3:08 
QuestionRe: Set Dialog Size Pin
David Crow20-May-09 5:45
David Crow20-May-09 5:45 
QuestionCode from visual studio 7.1 don't want to work on visual studio 2008 Pin
hrddd20-May-09 2:51
hrddd20-May-09 2:51 
I've got an old project writetd in vc++ on VS 7.1. When I opened it on Visual Studio 2008 it was correctly converted and worked. Now i needed to use a part of this old code in the new project created on VS2008. Everything work exepct a part of old code:

int CDGabinetDlg::DefineGrammar(const char* fn)
{
	int rc;
	SM_MSG reply;
	TCHAR lpBuffer[256]; 
	GetCurrentDirectory(256, lpBuffer);
	string filename(lpBuffer);
		
	filename+="\\";
	filename+=fn;
	
	return rc;
}


I've get an error in this part:
string filename(lpBuffer);


This is an error what i get.

error C2664: 'std::basic_string<_Elem,_Traits,_Ax>::basic_string(const std::allocator<_Ty> &)' : cannot convert parameter 1 from 'TCHAR [256]' to 'const std::allocator<_Ty>
AnswerRe: Code from visual studio 7.1 don't want to work on visual studio 2008 Pin
Cedric Moonen20-May-09 3:02
Cedric Moonen20-May-09 3:02 
QuestionADO in a DLL Pin
staticv20-May-09 2:51
staticv20-May-09 2:51 
AnswerRe: ADO in a DLL Pin
led mike20-May-09 4:29
led mike20-May-09 4:29 
GeneralRe: ADO in a DLL Pin
staticv20-May-09 5:25
staticv20-May-09 5:25 
GeneralRe: ADO in a DLL Pin
led mike20-May-09 6:00
led mike20-May-09 6:00 
GeneralRe: ADO in a DLL Pin
staticv20-May-09 6:12
staticv20-May-09 6:12 
QuestionEnableWindow(False) is not working for disabling a group box . Pin
munisha120-May-09 2:39
munisha120-May-09 2:39 
AnswerRe: EnableWindow(False) is not working for disabling a group box . Pin
_AnsHUMAN_ 20-May-09 2:47
_AnsHUMAN_ 20-May-09 2:47 
QuestionPlease Wait Message Pin
Davitor20-May-09 1:51
Davitor20-May-09 1:51 

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.