Thread: DEF files?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    479

    DEF files?

    how do you create them? i read somewhere that you need them in dlls sometimes


    //edit
    i am using msv6

    //edit 2

    i have this in my DLL header
    Code:
    #ifndef DLLCODE_H
    #define DLLCODE_H
    #include "windows.h"
    
    
    extern "C" LRESULT __declspec(dllexport)  CALLBACK  __stdcall  Proc(int,WPARAM,LPARAM);
    
    #endif
    in MSDN it says DEF files arent needed if you use __declspec

    in my DLL cpp file i use the function:
    Code:
    LRESULT  __stdcall CALLBACK  Proc(int code,WPARAM wParam,LPARAM lParam)
    still i cant load the function from my EXE file
    Last edited by pode; 12-28-2004 at 01:44 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  2. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  3. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  4. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM
  5. header and source files
    By gtriarhos in forum C Programming
    Replies: 3
    Last Post: 10-02-2005, 03:16 AM