Click here to Skip to main content
16,015,108 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Problem in getting WM_KILLFOCUS Pin
Rajkumar R20-May-08 21:41
Rajkumar R20-May-08 21:41 
GeneralRe: Problem in getting WM_KILLFOCUS Pin
ashtwin21-May-08 19:00
ashtwin21-May-08 19:00 
QuestionGetting rid of this error... Pin
pl_kode20-May-08 2:14
pl_kode20-May-08 2:14 
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:22
Cedric Moonen20-May-08 2:22 
AnswerRe: Getting rid of this error... Pin
Cedric Moonen20-May-08 2:28
Cedric Moonen20-May-08 2:28 
QuestionConnect database when start with window Pin
capint20-May-08 1:52
capint20-May-08 1:52 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 1:56
professionalRajesh R Subramanian20-May-08 1:56 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:02
capint20-May-08 2:02 
I mean that I connected successfully & I used it properly when I directly click on the application file. It just doesn't do well when start with window. Here is a part of my code. Plz help me Confused | :confused:
iSize = 0;
	DateTimeNote Temp;
	bool bFlag = true;
	Open("Provider=Microsoft.Jet.OLEDB.4.0; \
				Data Source=DateNote.mdb");
	CString sql;
	variant_t vNull;
	variant_t TheValue;
	
	vNull.vt = VT_ERROR;
	vNull.scode = DISP_E_PARAMNOTFOUND;
CString StrResult;
CString StrSql;
CString StrDateTime;
CString StrDateTimeTemp;

StrDateTime.Format(_T("%i/%i/%i"),DateTime.GetMonth(),DateTime.GetDay(),DateTime.GetYear());
StrSql.Format(_T("SELECT * FROM DATETIMENOTE WHERE NGAY = '%s'"), StrDateTime);

m_pRecordset.CreateInstance(__uuidof(Recordset));
m_pRecordset->PutRefActiveConnection(m_pConnection);
m_pRecordset->Open(_variant_t(StrSql), vNull, adOpenForwardOnly, adLockOptimistic, adCmdText);			

while (!m_pRecordset->GetEndOfFile())
	{
	TheValue = m_pRecordset->GetCollect("GIO");
		if(TheValue.vt != VT_NULL)
		{
		StrResult = (char *)_bstr_t(TheValue);
		StrDateTimeTemp = StrDateTime + _T(" ") + StrResult;
		Temp.DateTime.ParseDateTime(StrDateTimeTemp, LOCALE_NOUSEROVERRIDE, LANG_USER_DEFAULT);
		}
	TheValue = m_pRecordset->GetCollect("NOTE");
		if(TheValue.vt != VT_NULL)
		{
		StrResult = (char *)_bstr_t(TheValue);
		Temp.Note = StrResult;
		}
		pTemp[iSize] = Temp;
		iSize ++;
	        m_pRecordset->MoveNext();
		}

QuestionRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:08
professionalRajesh R Subramanian20-May-08 2:08 
AnswerRe: Connect database when start with window Pin
capint20-May-08 2:13
capint20-May-08 2:13 
AnswerRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:18
professionalRajesh R Subramanian20-May-08 2:18 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:21
capint20-May-08 2:21 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:38
professionalRajesh R Subramanian20-May-08 2:38 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:30
Cedric Moonen20-May-08 2:30 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:35
professionalRajesh R Subramanian20-May-08 2:35 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:37
Cedric Moonen20-May-08 2:37 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:39
professionalRajesh R Subramanian20-May-08 2:39 
GeneralRe: Connect database when start with window Pin
Cedric Moonen20-May-08 2:43
Cedric Moonen20-May-08 2:43 
GeneralRe: Connect database when start with window Pin
Rajesh R Subramanian20-May-08 2:48
professionalRajesh R Subramanian20-May-08 2:48 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:39
capint20-May-08 2:39 
GeneralRe: Connect database when start with window Pin
capint20-May-08 2:52
capint20-May-08 2:52 
QuestionRe: Connect database when start with window Pin
David Crow20-May-08 3:21
David Crow20-May-08 3:21 
AnswerRe: Connect database when start with window Pin
capint20-May-08 3:25
capint20-May-08 3:25 
QuestionRe: Connect database when start with window Pin
David Crow20-May-08 3:31
David Crow20-May-08 3:31 
AnswerRe: Connect database when start with window Pin
capint20-May-08 3:39
capint20-May-08 3:39 

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.