Click here to Skip to main content
15,885,365 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionCCommand execute stored procedure is failed! Pin
sergey-ka28-Dec-10 4:08
sergey-ka28-Dec-10 4:08 
AnswerRe: CCommand execute stored procedure is failed! Pin
jerry_ch3-Oct-11 20:42
jerry_ch3-Oct-11 20:42 
QuestionOLE DB Provider with BOOKMARK capability Pin
RezaAsAdi22-Dec-10 8:53
RezaAsAdi22-Dec-10 8:53 
QuestionProblem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
Aseem Sharma21-Dec-10 19:25
Aseem Sharma21-Dec-10 19:25 
AnswerRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
pacchij27-Dec-10 11:25
pacchij27-Dec-10 11:25 
GeneralRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
Aseem Sharma28-Dec-10 19:32
Aseem Sharma28-Dec-10 19:32 
GeneralRe: Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit? Pin
pacchij29-Dec-10 12:11
pacchij29-Dec-10 12:11 
Questioni have a quesstion about gcc warning Pin
lxlenovostar21-Dec-10 6:00
lxlenovostar21-Dec-10 6:00 
when i complier these codes, the warning will come :


 static void err_doit(int errnoflag, int level, const char* fmt, va_list ap)
{
        int errno_save, n;
        char buf[MAXLINE+1];

        errno_save = errno;     //value caller might want printed

        #ifdef  HAVE_VSNPRINTF
                vsnprintf(buf, MAXLINE, fmt, ap);       //this is safe
        #else
                vsprintf(buf, fmt, ap);         //this is not safe
        #endif

        n = strlen(buf);
        if(errnoflag)
                snprintf((char*)(buf+n), MAXLINE-n, ";%s", strerror(errno_save));
        strcat(buf, "\n");
        //const char* temp = buf;
        if(daemon_proc)
        {
                syslog(level, (const char*)buf);                //98
                //syslog(level, temp);
        }
        else
        {
                fflush(stdout);         //in case stdout and stderr are the same
                fputs(buf, stderr);
                fflush(stderr);
        }

        return;
}
</pre>

the warnning is:
In file included from str_cli.c:2,
                 from tcpcli01.c:2:
error.c: In function ‘void err_doit(int, int, const char*, char*)’:
error.c:98: warning: format not a string literal and no format arguments

i this warning, for i don't make buf to (const char*), but  i try,  it don't work.
please give me some advices, thank you

AnswerRe: i have a quesstion about gcc warning Pin
Richard MacCutchan21-Dec-10 8:23
mveRichard MacCutchan21-Dec-10 8:23 
QuestionPress a key using virtual key with SendInput Pin
vtalau20-Dec-10 23:37
vtalau20-Dec-10 23:37 
QuestionI have a question about the adobe reader Pin
quickzhao322316-Dec-10 22:42
quickzhao322316-Dec-10 22:42 
AnswerRe: I have a question about the adobe reader Pin
mav@octaval17-Dec-10 0:07
mav@octaval17-Dec-10 0:07 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 17:51
quickzhao322317-Dec-10 17:51 
AnswerRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 1:52
mveRichard MacCutchan17-Dec-10 1:52 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 17:55
quickzhao322317-Dec-10 17:55 
GeneralRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 23:25
mveRichard MacCutchan17-Dec-10 23:25 
AnswerRe: I have a question about the adobe reader Pin
jk chan17-Dec-10 2:02
jk chan17-Dec-10 2:02 
GeneralRe: I have a question about the adobe reader Pin
quickzhao322317-Dec-10 18:01
quickzhao322317-Dec-10 18:01 
GeneralRe: I have a question about the adobe reader Pin
Richard MacCutchan17-Dec-10 23:27
mveRichard MacCutchan17-Dec-10 23:27 
Questionhello i have a question about #include Pin
lxlenovostar12-Dec-10 17:29
lxlenovostar12-Dec-10 17:29 
AnswerRe: hello i have a question about #include Pin
Richard MacCutchan12-Dec-10 23:34
mveRichard MacCutchan12-Dec-10 23:34 
GeneralRe: hello i have a question about #include Pin
lxlenovostar13-Dec-10 4:32
lxlenovostar13-Dec-10 4:32 
GeneralRe: hello i have a question about #include Pin
Richard MacCutchan13-Dec-10 7:15
mveRichard MacCutchan13-Dec-10 7:15 
QuestionInterlockedIncrement usage Pin
Krishnakumartg10-Dec-10 3:20
Krishnakumartg10-Dec-10 3:20 
AnswerRe: InterlockedIncrement usage Pin
Cool_Dev10-Dec-10 3:35
Cool_Dev10-Dec-10 3:35 

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.