Thread: Using Static Library's in MSVC++

  1. #16
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    yea, i know how that all works, i just need to know,
    for DLL its

    Code:
     __declspec(dllexport) void bla();
     __declspec(dllimport) void bla();
    But i dont know what it is for LIb's

    have u tried #pragma(lib, "name
    I think i was the one that first came up with using #pragma, never saw it
    anywhere else on this board

  2. #17
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    I think i was the one that first came up with using #pragma, never saw it
    anywhere else on this board
    i had used it before, but i never really used it at a reg basis till i got into opengl.....man trav way to find the hard topics....i'll keep looking.

  3. #18
    Programming Sex-God Polymorphic OOP's Avatar
    Join Date
    Nov 2002
    Posts
    1,078
    Why do you think this is any harder than it is!?

    All you have to do is select Win32 Static Link Library when you create a new project.

    Absolutely NOTHING else is changed. It's just like making an executable, but without the link phase.

  4. #19
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Well i be damned, thanks alot poly and RoD.
    Indeed it was simpler then i thought, gues im getting used to
    have everything over-complicated since i jumped in Win32

  5. #20
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    no big.....i don't think rlly helped tho lol.

  6. #21
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Originally posted by RoD
    no big.....i don't think rlly helped tho lol.
    Does it matter? Whe all have learned new things in this
    topic, can't ever hurt can it?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. seg fault at vectornew
    By tytelizgal in forum C Programming
    Replies: 2
    Last Post: 10-25-2008, 01:22 PM
  3. uploading file to http server via multipart form data
    By Dynamo in forum C++ Programming
    Replies: 1
    Last Post: 09-03-2008, 04:36 AM
  4. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  5. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM