Click here to Skip to main content
16,011,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNeed HELP - Linking DLL with TEMPLATE Pin
20-Mar-02 5:04
suss20-Mar-02 5:04 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
Joaquín M López Muñoz20-Mar-02 7:30
Joaquín M López Muñoz20-Mar-02 7:30 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
20-Mar-02 10:11
suss20-Mar-02 10:11 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
Joaquín M López Muñoz20-Mar-02 10:39
Joaquín M López Muñoz20-Mar-02 10:39 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
20-Mar-02 16:53
suss20-Mar-02 16:53 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
Joaquín M López Muñoz20-Mar-02 22:14
Joaquín M López Muñoz20-Mar-02 22:14 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
21-Mar-02 3:21
suss21-Mar-02 3:21 
GeneralRe: Need HELP - Linking DLL with TEMPLATE Pin
Joaquín M López Muñoz21-Mar-02 8:23
Joaquín M López Muñoz21-Mar-02 8:23 
Please check these two things:
  1. The header demo.h must read __declspec(dllexport) when building the DLL and __declspec(dllimport) when using it in the program test.cpp. I guess you already knew that and didn't bother to specify in your post. The standard technique to have this done is with some macro hackery.
  2. Provided the first point is not the issue, then maybe you're having problems explicitly instantiating the functions. Try forcing an implicit instantiation:
    void __declspec(dllexport) dummy()
    {
      // a dummy function intended to instantiate the functions.
      // declared as __declspec(dllexport) to make sure the linker will not
      // strip it off as it's not actually used.
     
      typedef ListeChaineSimple<int> LCS_int;
      LCS_int liste:
      int n;
      ofstream ofs("quelque chose");
      ofs<<liste;
      liste<<n;
      liste>>n;
    }


Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
Generalbmp on a dialog Pin
20-Mar-02 3:25
suss20-Mar-02 3:25 
GeneralRe: bmp on a dialog Pin
Rickard Andersson2020-Mar-02 3:31
Rickard Andersson2020-Mar-02 3:31 
GeneralRe: bmp on a dialog Pin
dlhson20-Mar-02 6:51
dlhson20-Mar-02 6:51 
Generalillegal vtable pointer Pin
albean20-Mar-02 3:23
albean20-Mar-02 3:23 
GeneralRe: illegal vtable pointer Pin
albean20-Mar-02 5:27
albean20-Mar-02 5:27 
Generalexecuting older version application in new version Pin
Bhikshapathi Gorantla20-Mar-02 3:13
Bhikshapathi Gorantla20-Mar-02 3:13 
GeneralRe: executing older version application in new version Pin
Bill Wilson20-Mar-02 6:59
Bill Wilson20-Mar-02 6:59 
GeneralRe: executing older version application in new version Pin
Bhikshapathi Gorantla20-Mar-02 18:28
Bhikshapathi Gorantla20-Mar-02 18:28 
GeneralRe: executing older version application in new version Pin
Bill Wilson21-Mar-02 5:25
Bill Wilson21-Mar-02 5:25 
GeneralIPicture Render Embedded Pin
Braulio Dez20-Mar-02 3:03
Braulio Dez20-Mar-02 3:03 
GeneralVisualStudio won't auto re-open files Pin
Steve Kearon20-Mar-02 2:51
Steve Kearon20-Mar-02 2:51 
GeneralRe: VisualStudio won't auto re-open files Pin
20-Mar-02 3:07
suss20-Mar-02 3:07 
QuestionUdp broadcast alternative? Maybe multicast? Pin
20-Mar-02 2:51
suss20-Mar-02 2:51 
GeneralCustom control Pin
kortebi20-Mar-02 2:38
kortebi20-Mar-02 2:38 
GeneralRe: Custom control Pin
dlhson20-Mar-02 6:01
dlhson20-Mar-02 6:01 
Generaldisplaying a Bitmap FULL screen Pin
kortebi20-Mar-02 2:37
kortebi20-Mar-02 2:37 
GeneralRe: displaying a Bitmap FULL screen Pin
Jon Hulatt20-Mar-02 5:03
Jon Hulatt20-Mar-02 5:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.