Donate Share

EasyBMP Cross-Platform Bitmap Library

Tracker: Support Requests

1 MSVC 2005 Warnings - ID: 1666409
Last Update: Comment added ( macklin01 )

In the EasyBMP.h header, the following code:
#ifdef _MSC_VER
// MS Visual Studio gives warnings when using
// fopen. But fopen_s is not going to work well
// with most compilers, and fopen_s uses different
// syntax than fopen. (i.e., a macro won't work)
// So, we'lll use this:
#define _CRT_SECURE_NO_DEPRECATE
#endif

should be changed to this:
#ifdef _MSC_VER
// MS Visual Studio gives warnings when using
// fopen. But fopen_s is not going to work well
// with most compilers, and fopen_s uses different
// syntax than fopen. (i.e., a macro won't work)
// So, we'lll use this:
#ifndef _CRT_SECURE_NO_DEPRECATE
#define _CRT_SECURE_NO_DEPRECATE
#define _UNDEF_MSVC_CRT
#endif
#endif

and this should be appenden to the end of the header:
#ifdef _UNDEF_MSVC_CRT
#undef _CRT_SECURE_NO_DEPRECATE
#endif

Additionally, there is this warning for an unused variable:
easybmp.cpp(994) : warning C4101: 'ZeroWORD' : unreferenced local
variable


Redbaran ( redbaran97 ) - 2007-02-22 18:25

1

Closed

Fixed

Paul Macklin

Compiling Problem

None

Public


Comments ( 3 )




Date: 2008-04-27 04:32
Sender: macklin01Project Admin


Fixed in EasyBMP 1.07, due in a couple of weeks. (Yes, I'm finally
resuming development!!! :-) Thanks! -- Paul


Date: 2008-04-27 04:31
Sender: nobody

Logged In: NO

Fixed in EasyBMP 1.07, due in a couple of weeks. (Yes, I'm finally
resuming development!!! :-) Thanks! -- Paul


Date: 2008-01-25 21:17
Sender: macklin01Project Admin


I have no idea how I missed this.

I'll try to update it soon. Thanks for using EasyBMP. :-) -- Paul


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2008-04-27 04:32 macklin01
resolution_id None 2008-04-27 04:32 macklin01
close_date - 2008-04-27 04:32 macklin01
priority 5 2007-02-22 18:25 redbaran97