Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeeding noob help 7z Archive Pin
Member 416282713-Mar-09 18:51
Member 416282713-Mar-09 18:51 
AnswerRe: Needing noob help 7z Archive Pin
Garth J Lancaster13-Mar-09 19:41
professionalGarth J Lancaster13-Mar-09 19:41 
GeneralRe: Needing noob help 7z Archive [modified] Pin
Member 416282714-Mar-09 8:46
Member 416282714-Mar-09 8:46 
AnswerRe: Needing noob help 7z Archive Pin
NeoAks00713-Mar-09 22:22
NeoAks00713-Mar-09 22:22 
GeneralRe: Needing noob help 7z Archive Pin
Member 416282714-Mar-09 8:56
Member 416282714-Mar-09 8:56 
AnswerRe: Needing noob help 7z Archive Pin
Joe Woodbury15-Mar-09 18:07
professionalJoe Woodbury15-Mar-09 18:07 
QuestionHow to store the data into access database in MFC Pin
Febin Elizabeth13-Mar-09 18:35
Febin Elizabeth13-Mar-09 18:35 
AnswerRe: How to store the data into access database in MFC Pin
shaina223113-Mar-09 19:43
shaina223113-Mar-09 19:43 
May be it can help u
CString stcpd, endcpd, atr, ss, cont;

	GetDlgItemText(IDC_STARTCPD, stcpd);
	GetDlgItemText(IDC_ENDCPD, endcpd);
	GetDlgItemText(IDC_ALTERATIONRATE, atr);
	GetDlgItemText(IDC_STEPSIZE, ss);

	/*
	 * MessageBox(ss);
	 */
	GetDlgItemText(IDC_CONTRASRT, cont);

	CButton			*r = (CButton *) GetDlgItem(IDC_REVERSAL);
	CButton			*on = (CButton *) GetDlgItem(IDC_ONOFF);

	CDaoDatabase	ndb;
	AfxGetModuleState()->m_dwVersion = 0x0601;
	ndb.Open(Protocol_path, TRUE, FALSE);

	CDaoTableDef	ntd(&ndb);
	AfxGetModuleState()->m_dwVersion = 0x0601;
	ntd.Open("Custom_Protocol");

	CDaoRecordset	drs;
	AfxGetModuleState()->m_dwVersion = 0x0601;
	drs.Open(&ntd, 1, 0);
	drs.AddNew();

	drs.SetFieldValue("test_stratagy_name", (LPCSTR) P_Name);
	drs.SetFieldValue("start_cpd", (LPCSTR) stcpd);
	drs.SetFieldValue("end_cpd", (LPCSTR) endcpd);
	drs.SetFieldValue("step_cpd", (LPCSTR) ss);
	drs.SetFieldValue("Alternation_rate", (LPCSTR) atr);
	drs.SetFieldValue("contrast", (LPCSTR) cont);

	if(r->GetState() == 1)
		drs.SetFieldValue("type", "Reversal");
	else if(on->GetState() == 1)
		drs.SetFieldValue("type", "On\\Off");

	drs.Update();
	drs.Close();
	ntd.Close();
	ndb.Close();

QuestionHelp testing a CDialog based class Pin
bulg13-Mar-09 13:52
bulg13-Mar-09 13:52 
AnswerRe: Help testing a CDialog based class Pin
Iain Clarke, Warrior Programmer13-Mar-09 23:31
Iain Clarke, Warrior Programmer13-Mar-09 23:31 
QuestionInserting string and increasing file size in istream ? Pin
mmayur13-Mar-09 13:24
mmayur13-Mar-09 13:24 
AnswerRe: Inserting string and increasing file size in istream ? Pin
Stuart Dootson13-Mar-09 13:42
professionalStuart Dootson13-Mar-09 13:42 
GeneralRe: Inserting string and increasing file size in istream ? Pin
mmayur13-Mar-09 13:48
mmayur13-Mar-09 13:48 
GeneralRe: Inserting string and increasing file size in istream ? Pin
Stuart Dootson13-Mar-09 14:06
professionalStuart Dootson13-Mar-09 14:06 
Answer[Message Deleted] Pin
zzgzzgok13-Mar-09 12:56
zzgzzgok13-Mar-09 12:56 
RantRe: Hight price looking for talent c/c++ guru, Pin
CPallini13-Mar-09 13:12
mveCPallini13-Mar-09 13:12 
General[Message Deleted] Pin
zzgzzgok13-Mar-09 13:14
zzgzzgok13-Mar-09 13:14 
GeneralRe: Hight price looking for talent c/c++ guru, Pin
Yusuf13-Mar-09 13:34
Yusuf13-Mar-09 13:34 
QuestionRegular expression Pin
Demian Panello13-Mar-09 12:26
Demian Panello13-Mar-09 12:26 
AnswerRe: Regular expression Pin
BobInNJ13-Mar-09 12:44
BobInNJ13-Mar-09 12:44 
GeneralRe: Regular expression Pin
Demian Panello13-Mar-09 14:19
Demian Panello13-Mar-09 14:19 
QuestionI Think I need to free Something Pin
BobInNJ13-Mar-09 11:38
BobInNJ13-Mar-09 11:38 
AnswerRe: I Think I need to free Something Pin
Stuart Dootson13-Mar-09 13:54
professionalStuart Dootson13-Mar-09 13:54 
GeneralRe: I Think I need to free Something Pin
BobInNJ14-Mar-09 13:16
BobInNJ14-Mar-09 13:16 
GeneralRe: I Think I need to free Something Pin
Stuart Dootson14-Mar-09 13:24
professionalStuart Dootson14-Mar-09 13:24 

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.