Click here to Skip to main content
15,910,411 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOPC Pin
Marc Soleda6-Oct-05 22:32
Marc Soleda6-Oct-05 22:32 
AnswerRe: OPC Pin
Blake V. Miller8-Oct-05 15:12
Blake V. Miller8-Oct-05 15:12 
GeneralRe: OPC Pin
Marc Soleda9-Oct-05 20:27
Marc Soleda9-Oct-05 20:27 
QuestionODBC with VC++ Pin
sirtimid6-Oct-05 22:10
sirtimid6-Oct-05 22:10 
AnswerRe: ODBC with VC++ Pin
KaЯl7-Oct-05 2:08
KaЯl7-Oct-05 2:08 
GeneralRe: ODBC with VC++ Pin
sirtimid7-Oct-05 2:59
sirtimid7-Oct-05 2:59 
GeneralRe: ODBC with VC++ Pin
KaЯl7-Oct-05 4:07
KaЯl7-Oct-05 4:07 
GeneralRe: ODBC with VC++ Pin
sirtimid7-Oct-05 4:22
sirtimid7-Oct-05 4:22 
OK I found why this error occured.
This was because in the DoFieldExchanged() I have all the fields of the table, so the Open() should be with NULL value at the second argument (LPCTSTR lpszSQL=NULL).
So, I tried the following:

m_pSet = new CDatabaseSet;
m_pSet->m_strFilter = "ID = 48";
m_pSet->Open(CDatabaseSet::dynaset);

Now the problem is that it works properly when the filter has a field of numeric type.
When it is of character type it doesn't work properly.
It returns the last record even if it shouldn't return anything.
Any idea on why this happens???

Thanks again for your help!!!

QuestionHelp needed - to retrieve the security permissions over a Folder/file Pin
6-Oct-05 22:03
suss6-Oct-05 22:03 
Questionmfc edit box Pin
swaapu6-Oct-05 21:58
swaapu6-Oct-05 21:58 
AnswerRe: mfc edit box Pin
P-Rex6-Oct-05 22:43
P-Rex6-Oct-05 22:43 
AnswerRe: mfc edit box Pin
toxcct6-Oct-05 22:42
toxcct6-Oct-05 22:42 
AnswerRe: mfc edit box Pin
ThatsAlok7-Oct-05 0:32
ThatsAlok7-Oct-05 0:32 
QuestionSWF in VC++ Pin
Nishad S6-Oct-05 21:44
Nishad S6-Oct-05 21:44 
AnswerRe: SWF in VC++ Pin
Axonn Echysttas6-Oct-05 22:38
Axonn Echysttas6-Oct-05 22:38 
QuestionSerial Communication in MFC Pin
vikas amin6-Oct-05 21:30
vikas amin6-Oct-05 21:30 
AnswerRe: Serial Communication in MFC Pin
Roger Stoltz6-Oct-05 21:42
Roger Stoltz6-Oct-05 21:42 
GeneralRe: Serial Communication in MFC Pin
vikas amin7-Oct-05 2:08
vikas amin7-Oct-05 2:08 
Questionwhite remnant occur when scroll bar is click. Pin
babyspidy6-Oct-05 21:20
babyspidy6-Oct-05 21:20 
AnswerRe: white remnant occur when scroll bar is click. Pin
KaЯl7-Oct-05 2:02
KaЯl7-Oct-05 2:02 
GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 4:28
babyspidy7-Oct-05 4:28 
GeneralRe: white remnant occur when scroll bar is click. Pin
KaЯl7-Oct-05 4:44
KaЯl7-Oct-05 4:44 
GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 5:00
babyspidy7-Oct-05 5:00 
GeneralRe: white remnant occur when scroll bar is click. Pin
babyspidy7-Oct-05 4:47
babyspidy7-Oct-05 4:47 
QuestionMFC Radio Buttons issue Pin
Axonn Echysttas6-Oct-05 21:18
Axonn Echysttas6-Oct-05 21:18 

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.