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

C / C++ / MFC

 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 10:59
gizmokaka8-Jan-08 10:59 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
gizmokaka8-Jan-08 11:04
gizmokaka8-Jan-08 11:04 
GeneralRe: how do I call a base implemetation from the derived implementation of the same function Pin
CPallini8-Jan-08 21:26
mveCPallini8-Jan-08 21:26 
GeneralClicking in MFC CListCtrl beeps in Vista Pin
anthonym78-Jan-08 9:12
anthonym78-Jan-08 9:12 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
Mahesh Kulkarni8-Jan-08 19:44
Mahesh Kulkarni8-Jan-08 19:44 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
anthonym79-Jan-08 6:01
anthonym79-Jan-08 6:01 
GeneralRe: Clicking in MFC CListCtrl beeps in Vista Pin
anthonym79-Jan-08 12:09
anthonym79-Jan-08 12:09 
Questionapostrophe or single quote causes problem in query Pin
littleGreenDude8-Jan-08 5:50
littleGreenDude8-Jan-08 5:50 
In my VC6++ source, I'm building a sql string and I run into a problem when a field or string contains an apostrophe or single quote. The single quote in the CString object causes an improper termination of the SQL string syntax. Is there a way around this?

For example:

int iVendorID = 1;<br />
<br />
CString csVendorName = _T("Matt's Hobby Shop");<br />
<br />
CString csSQL = _T("");<br />
<br />
csSQL.Format(_T("Update tblVendorList Set VendorDescription='%s' where VendorID=%d"), csVendorName, iVendorID);


During execution, the sql statement becomes

Update tblVendorList Set VendorDescription='Matt's Hobby Shop' where VendorID=1

And things get ugly because it wants to set VendorDescription to 'Matt' and it has no idea what s Hobby Shop means.
GeneralRe: apostrophe or single quote causes problem in query Pin
toxcct8-Jan-08 6:06
toxcct8-Jan-08 6:06 
QuestionRe: apostrophe or single quote causes problem in query Pin
David Crow8-Jan-08 6:11
David Crow8-Jan-08 6:11 
QuestionHow do I determine the Com Port number of a serial port emulating device? Pin
arnold_w8-Jan-08 5:14
arnold_w8-Jan-08 5:14 
AnswerRe: How do I determine the Com Port number of a serial port emulating device? Pin
Member 7549608-Jan-08 18:01
Member 7549608-Jan-08 18:01 
GeneralRe: How do I determine the Com Port number of a serial port emulating device? Pin
arnold_w9-Jan-08 1:29
arnold_w9-Jan-08 1:29 
GeneralRe: How do I determine the Com Port number of a serial port emulating device? Pin
Member 7549609-Jan-08 3:44
Member 7549609-Jan-08 3:44 
GeneralGDI Resource Manager Pin
Rob Caldecott8-Jan-08 5:04
Rob Caldecott8-Jan-08 5:04 
GeneralRe: GDI Resource Manager Pin
led mike8-Jan-08 7:34
led mike8-Jan-08 7:34 
Questionvirtual function MeasureItem problem(owner draw function problem) Pin
fantasy12158-Jan-08 4:00
fantasy12158-Jan-08 4:00 
GeneralRe: virtual function MeasureItem problem(owner draw function problem) Pin
Mike O'Neill10-Jan-08 13:31
Mike O'Neill10-Jan-08 13:31 
Questionsizeof char* array Pin
Programm3r8-Jan-08 3:54
Programm3r8-Jan-08 3:54 
GeneralRe: sizeof char* array Pin
toxcct8-Jan-08 4:00
toxcct8-Jan-08 4:00 
QuestionRe: sizeof char* array Pin
Programm3r8-Jan-08 4:09
Programm3r8-Jan-08 4:09 
GeneralRe: sizeof char* array Pin
toxcct8-Jan-08 4:28
toxcct8-Jan-08 4:28 
GeneralRe: sizeof char* array Pin
Programm3r8-Jan-08 4:32
Programm3r8-Jan-08 4:32 
QuestionRe: sizeof char* array Pin
David Crow8-Jan-08 4:56
David Crow8-Jan-08 4:56 
GeneralRe: sizeof char* array Pin
CPallini8-Jan-08 5:00
mveCPallini8-Jan-08 5:00 

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.