Results 1 to 2 of 2

Thread: bitmap.h error?????

  1. #1
    Guest

    bitmap.h error?????

    getting an undefined structure "EXPORT" in Bitmap.h when compiling. Any ideas what is causing that?

    Bitmap.h code:
    // Borland C++ - (C) Copyright 1991, 1992 by Borland International

    #ifndef __BITMAP_H
    #define __BITMAP_H

    #include <windows.h>

    // Interface to simple library of classes to use for Windows GDI.

    class EXPORT Bitmap
    {
    private:
    HANDLE hBitmap;
    int GetBitmap( BITMAP FAR * lpbm )
    {
    return GetObject( hBitmap, sizeof( BITMAP ), (LPSTR) lpbm );
    }
    public:
    Bitmap( HINSTANCE hInstance, char FAR * lpszBitmapName )
    {
    hBitmap = LoadBitmap( hInstance, lpszBitmapName );
    }
    ~Bitmap( void )
    {
    DeleteObject( hBitmap );
    }
    void FAR _export Display( HDC hDC, int xStart, int yStart );
    // Get the size of the bitmap in logical coordinates.
    POINT GetSize( HDC hDC )
    {
    BITMAP bm;
    POINT ptSize;

    GetBitmap( &bm );
    ptSize.x = bm.bmWidth;
    ptSize.y = bm.bmHeight;
    DPtoLP( hDC, &ptSize, 1 );
    return ptSize;
    }
    };

    #endif // __BITMAP_H

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: bitmap.h error?????

    A quick search through a bunch of the headers in the Borland include directory reveals this in mapi.h...

    Code :
    #ifndef EXPORT
    #ifdef WIN16
    #define EXPORT __export
    #else
    /* Additional special definitions here */
    #define EXPORT
    #endif
    #endif
    And this in sqltypes.h, odbcinst.h.
    Code :
    #ifndef EXPORT
    #define EXPORT   
    #endif
    Either include one of those headers first or use one of those code snippets before you include bitmap.h. (Which I'm not seeing in Borland's inlcude directory, btw.)
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. NeHe tutorial on Bitmap Fonts (tutorial 13) error
    By Mariusz in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-03-2012, 09:16 AM
  2. Replies: 3
    Last Post: 01-16-2004, 08:33 AM
  3. Replies: 3
    Last Post: 02-07-2003, 05:06 AM
  4. Error Unable to load bitmap file
    By MrT in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-09-2002, 10:06 AM
  5. bitmap border or bitmap "thickness"
    By Rong Yao in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-11-2001, 11:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean