• Lucid Dreaming - Dream Views




    Results 1 to 5 of 5
    1. #1
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935

      Could someone compile this in VC++?

      I wrote some VC++ specific optimizations in a library I maintain and I just want to make sure that I have the syntax correct

      Code:
      #ifndef _MSC_VER
          #error, Not VC++
      #endif
      
      #pragma pack(push, foo_pack, 1)
      class foo { 
          bool __declspec(nothrow) bar(void) const; 
      };
      
      bool __declspec(nothrow) foo::bar(void) const {
          return true;
      }
      #pragma pack(pop, foo_pack)
      
      
      int main(void){ 
          return 0;
      }

    2. #2
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      Compiled for me. First time!

    3. #3
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      Awesome thanks. I hate writing optimizations for platforms I don't have, but the majority of my library users are Windows, so I have to.

    4. #4
      The First Lightbender Achievements:
      Tagger First Class Made lots of Friends on DV Referrer Bronze 5000 Hall Points Veteran First Class
      IAmCoder's Avatar
      Join Date
      Dec 2010
      Location
      Down Under
      Posts
      1,078
      Likes
      564
      I have made all my income from companies on MS systems. What does the dll do?

    5. #5
      Banned
      Join Date
      Apr 2007
      Location
      Out Chasing Rabbits
      Posts
      15,193
      Likes
      935
      I maintain libjson

      I may use you for testing and optimization help now that I know you're a Windows specialist . Neither me nor my company owns a windows machine.
      Last edited by ninja9578; 12-29-2010 at 03:31 AM.

    Similar Threads

    1. Want to help compile a dream-flying tutorial?
      By Amethyst Star in forum Dream Control
      Replies: 76
      Last Post: 07-06-2008, 07:33 PM
    2. Replies: 19
      Last Post: 06-03-2008, 11:11 PM

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •