Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pointer declaration Pin
Rage12-Nov-03 3:00
professionalRage12-Nov-03 3:00 
GeneralRe: pointer declaration Pin
Antti Keskinen12-Nov-03 4:08
Antti Keskinen12-Nov-03 4:08 
QuestionHow to draw Bezier curve using GDI ? Pin
P. Gnana Prakash11-Nov-03 22:59
P. Gnana Prakash11-Nov-03 22:59 
AnswerRe: How to draw Bezier curve using GDI ? Pin
Abhishek Srivastava12-Nov-03 1:35
Abhishek Srivastava12-Nov-03 1:35 
GeneralDoubt in Line style Pin
P. Gnana Prakash11-Nov-03 22:55
P. Gnana Prakash11-Nov-03 22:55 
GeneralRe: Doubt in Line style Pin
Roger Allen12-Nov-03 2:05
Roger Allen12-Nov-03 2:05 
GeneralRe: Doubt in Line style Pin
Roger Allen12-Nov-03 2:09
Roger Allen12-Nov-03 2:09 
GeneralCDAORecordset::Find() trouble Pin
AntonGogolev11-Nov-03 22:45
AntonGogolev11-Nov-03 22:45 
Check this out:

...
str.Format("[ProductID] = '%s' AND [Date] = #%s#", m_pSet->m_strProductID, COleDateTime::GetCurrentTime().Format(_T("%#m/%#d/%Y")));

lI = pShop->GetRecordCount();
if(pShop->FindLast(str) == 0)
{
pShop->AddNew();
pShop->m_lEntryID = lI;
pShop->m_dtDate = COleDateTime::GetCurrentTime();
pShop->m_strProductID = m_pSet->m_strProductID;
pShop->m_lQuantity = lQ;

pShop->Update();
}
else
{
pShop->Edit();

pShop->m_lQuantity += lQ;

pShop->Update();
}
...

Here's the problem. I try to find a record which has a given ProductID and which was created today. Although THERE ARE such records, nothing is ever found. MSDN says one has to use US date format (month-day-year) even if using non-engish version of MS Jet (I'm from Russia Smile | :) ), bun nothing is said about how the actual format string should look like. The database was created in MS Access 2K and uses short date format (something like 19.06.1994 - that's the sample in Access).

Error 207: Error 208
GeneralRe: CDAORecordset::Find() trouble Pin
Pir8ofTampa12-Nov-03 4:14
Pir8ofTampa12-Nov-03 4:14 
GeneralDisabled a MFC control Pin
jerome_data11-Nov-03 22:33
jerome_data11-Nov-03 22:33 
GeneralRe: Disabled a MFC control Pin
Elias Bachaalany11-Nov-03 22:43
Elias Bachaalany11-Nov-03 22:43 
GeneralRe: Disabled a MFC control Pin
Juan Antonio Bermejo11-Nov-03 22:45
Juan Antonio Bermejo11-Nov-03 22:45 
GeneralError in COmpilation of VC++ Code Pin
RaajaOfSelf11-Nov-03 22:32
RaajaOfSelf11-Nov-03 22:32 
GeneralRe: Error in COmpilation of VC++ Code Pin
François Gasnier12-Nov-03 1:26
François Gasnier12-Nov-03 1:26 
GeneralRe: Error in COmpilation of VC++ Code Pin
Rajesh match12-Nov-03 2:13
Rajesh match12-Nov-03 2:13 
GeneralHarddisk Number Pin
BoudewijnEctor11-Nov-03 22:32
BoudewijnEctor11-Nov-03 22:32 
GeneralRe: Harddisk Number Pin
Elias Bachaalany11-Nov-03 22:41
Elias Bachaalany11-Nov-03 22:41 
GeneralAdjusting setup projects Pin
BoudewijnEctor11-Nov-03 22:16
BoudewijnEctor11-Nov-03 22:16 
Generalextend treectrl Pin
locutusenterprises11-Nov-03 21:34
locutusenterprises11-Nov-03 21:34 
GeneralRe: extend treectrl Pin
Roger Allen12-Nov-03 2:15
Roger Allen12-Nov-03 2:15 
GeneralRe: extend treectrl Pin
locutusenterprises12-Nov-03 20:59
locutusenterprises12-Nov-03 20:59 
GeneralRe: Detect number of com port in the system Pin
yklim11-Nov-03 21:23
yklim11-Nov-03 21:23 
GeneralRe: Detect number of com port in the system Pin
soltari_knight11-Nov-03 22:21
soltari_knight11-Nov-03 22:21 
GeneralRe: Detect number of com port in the system Pin
soltari_knight11-Nov-03 22:23
soltari_knight11-Nov-03 22:23 
GeneralRe: Detect number of com port in the system Pin
Abhishek Srivastava11-Nov-03 22:25
Abhishek Srivastava11-Nov-03 22:25 

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.