Click here to Skip to main content
15,885,018 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: link error Pin
Don Box5-Dec-07 17:41
Don Box5-Dec-07 17:41 
GeneralRe: link error Pin
linksys20066-Dec-07 12:12
linksys20066-Dec-07 12:12 
QuestionHow do I get rid of a DLL out of my project? Pin
Tim_at_sbc5-Dec-07 11:32
Tim_at_sbc5-Dec-07 11:32 
AnswerRe: How do I get rid of a DLL out of my project? Pin
Tim_at_sbc5-Dec-07 12:46
Tim_at_sbc5-Dec-07 12:46 
GeneralRe: How do I get rid of a DLL out of my project? Pin
ThatsAlok5-Dec-07 19:46
ThatsAlok5-Dec-07 19:46 
GeneralMap file format Pin
k rentz5-Dec-07 7:58
sussk rentz5-Dec-07 7:58 
QuestionDifferencies in dataplot between GDI and GDI+ while drawing the same coordinates Pin
JS5-Dec-07 7:04
JS5-Dec-07 7:04 
GeneralVC 2008 compiler errors [modified] - SOLVED Pin
Jim Crafton5-Dec-07 4:57
Jim Crafton5-Dec-07 4:57 
I'm trying to compile some code that uses _vsnprintf, and I'm getting errors from the compiler about :
1>regerror.c
1>c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : error C3163: '_vsnprintf': 
attributes inconsistent with previous declaration
1>        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(350) : 
see declaration of '_vsnprintf'


I have _CRT_SECURE_NO_DEPRECATE, _SCL_SECURE_NO_DEPRECATE, and _CRT_NON_CONFORMING_SWPRINTFS defined.

The code uses it like so:
va_init_list(args, (char* )fmt);
n = vsnprintf((char* )buf, bufsize, (char* )fmt, args);
va_end(args);


where "vsnprintf" is actually a macro defined as :
#define vsnprintf   _vsnprintf


To the best of my knowledge this has worked fine with *all* previous compilers MS C++ compilers, so I'm stumped at what to do here.



Bah!! Turns out there is now a vsnprintf function, so it's a non-issue - I just needed to comment the #define out for VC9 compilers.

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
VCF Blog

modified on Wednesday, December 05, 2007 11:33:23 AM

GeneralRe: VC 2008 compiler errors [modified] - SOLVED Pin
toxcct5-Dec-07 5:59
toxcct5-Dec-07 5:59 
Generalbackup network files - problem Pin
sgeocla5-Dec-07 3:58
sgeocla5-Dec-07 3:58 
QuestionHow do I load another programs Icon? Pin
RichardS715-Dec-07 2:23
RichardS715-Dec-07 2:23 
QuestionRe: How do I load another programs Icon? Pin
David Crow5-Dec-07 2:27
David Crow5-Dec-07 2:27 
GeneralRe: How do I load another programs Icon? Pin
Iain Clarke, Warrior Programmer5-Dec-07 3:36
Iain Clarke, Warrior Programmer5-Dec-07 3:36 
AnswerRe: How do I load another programs Icon? Pin
RichardS715-Dec-07 4:43
RichardS715-Dec-07 4:43 
GeneralCInternetSession Problem Pin
Amar Sutar5-Dec-07 1:15
Amar Sutar5-Dec-07 1:15 
GeneralRe: CInternetSession Problem Pin
David Crow5-Dec-07 2:30
David Crow5-Dec-07 2:30 
GeneralRe: CInternetSession Problem Pin
Amar Sutar5-Dec-07 17:22
Amar Sutar5-Dec-07 17:22 
GeneralRe: CInternetSession Problem Pin
Mark Salsbery6-Dec-07 3:31
Mark Salsbery6-Dec-07 3:31 
GeneralRe: CInternetSession Problem Pin
Amar Sutar6-Dec-07 4:15
Amar Sutar6-Dec-07 4:15 
QuestionStruct or class? Pin
George_George5-Dec-07 0:50
George_George5-Dec-07 0:50 
AnswerRe: Struct or class? Pin
CPallini5-Dec-07 1:08
mveCPallini5-Dec-07 1:08 
AnswerRe: Struct or class? Pin
toxcct5-Dec-07 2:25
toxcct5-Dec-07 2:25 
AnswerRe: Struct or class? Pin
followait5-Dec-07 16:05
followait5-Dec-07 16:05 
QuestionHow to add a ComboBox to Browseinfo? Pin
moye25015-Dec-07 0:11
moye25015-Dec-07 0:11 
QuestionRe: How to add a ComboBox to Browseinfo? Pin
David Crow15-Jan-08 3:09
David Crow15-Jan-08 3:09 

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.