Click here to Skip to main content
15,914,165 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionControlling Sound? Pin
ritz123416-Jul-08 23:03
ritz123416-Jul-08 23:03 
AnswerRe: Controlling Sound? Pin
Hamid_RT17-Jul-08 0:23
Hamid_RT17-Jul-08 0:23 
GeneralRe: Controlling Sound? Pin
ritz123417-Jul-08 0:49
ritz123417-Jul-08 0:49 
GeneralRe: Controlling Sound? Pin
Hamid_RT17-Jul-08 1:18
Hamid_RT17-Jul-08 1:18 
GeneralRe: Controlling Sound? Pin
ritz123417-Jul-08 1:33
ritz123417-Jul-08 1:33 
GeneralRe: Controlling Sound? Pin
Mark Salsbery17-Jul-08 7:59
Mark Salsbery17-Jul-08 7:59 
AnswerRe: Controlling Sound? Pin
David Crow17-Jul-08 3:17
David Crow17-Jul-08 3:17 
Questionsprintf_s problem Pin
tataxin16-Jul-08 22:33
tataxin16-Jul-08 22:33 
hi, I have a sql in my program. What I want is exactly like this:
select * 
from tbl t
where t.name like '%xyz%'


So in source code, I create sql like this:
CString name = "xyz";
::sprintf_s(szQuery, "	select * from tbl t where t.name like '%%%s%%' ", name);


Here is szQuery when I execute
select * 
from tbl t
where t.name like '%x%'


Just the first character is printed into szQuery.
What's wrong here? what should I do??

Thank you in advance.
AnswerRe: sprintf_s problem Pin
Cedric Moonen16-Jul-08 22:46
Cedric Moonen16-Jul-08 22:46 
NewsRe: sprintf_s problem Pin
tataxin16-Jul-08 22:49
tataxin16-Jul-08 22:49 
GeneralRe: sprintf_s problem Pin
Cedric Moonen16-Jul-08 22:55
Cedric Moonen16-Jul-08 22:55 
AnswerRe: sprintf_s problem [modified] Pin
tataxin16-Jul-08 22:52
tataxin16-Jul-08 22:52 
AnswerRe: sprintf_s problem Pin
Naveen16-Jul-08 22:53
Naveen16-Jul-08 22:53 
GeneralRe: sprintf_s problem Pin
Cedric Moonen16-Jul-08 22:57
Cedric Moonen16-Jul-08 22:57 
GeneralRe: sprintf_s problem Pin
tataxin17-Jul-08 3:47
tataxin17-Jul-08 3:47 
GeneralRe: sprintf_s problem Pin
tataxin17-Jul-08 3:59
tataxin17-Jul-08 3:59 
QuestionA problem with Diamond problem Pin
thenewbee16-Jul-08 21:40
thenewbee16-Jul-08 21:40 
AnswerRe: A problem with Diamond problem Pin
Naveen16-Jul-08 22:45
Naveen16-Jul-08 22:45 
GeneralRe: A problem with Diamond problem Pin
thenewbee17-Jul-08 1:27
thenewbee17-Jul-08 1:27 
GeneralRe: A problem with Diamond problem Pin
Naveen17-Jul-08 4:51
Naveen17-Jul-08 4:51 
GeneralRe: A problem with Diamond problem Pin
thenewbee17-Jul-08 22:54
thenewbee17-Jul-08 22:54 
GeneralRe: A problem with Diamond problem Pin
thenewbee21-Jul-08 18:17
thenewbee21-Jul-08 18:17 
QuestionWhy some MESSAGES don't show in the MESSAGE MAPS tab in the ClassWizard? Pin
fantasy121516-Jul-08 21:32
fantasy121516-Jul-08 21:32 
AnswerRe: Why some MESSAGES don't show in the MESSAGE MAPS tab in the ClassWizard? Pin
Naveen16-Jul-08 21:48
Naveen16-Jul-08 21:48 
GeneralRe: Why some MESSAGES don't show in the MESSAGE MAPS tab in the ClassWizard? Pin
fantasy121516-Jul-08 22:21
fantasy121516-Jul-08 22:21 

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.