Click here to Skip to main content
15,902,908 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: afxwin.h Pin
CPallini23-Mar-08 22:44
mveCPallini23-Mar-08 22:44 
GeneralRe: afxwin.h Pin
specialhaha23-Mar-08 22:46
specialhaha23-Mar-08 22:46 
GeneralRe: afxwin.h Pin
David Crow24-Mar-08 4:11
David Crow24-Mar-08 4:11 
AnswerRe: afxwin.h Pin
Paresh Chitte23-Mar-08 23:22
Paresh Chitte23-Mar-08 23:22 
Question"Spin Control" and disable left and right arrows separately Pin
Dmytro Skrypnyk23-Mar-08 21:48
Dmytro Skrypnyk23-Mar-08 21:48 
GeneralRe: "Spin Control" and disable left and right arrows separately Pin
rp_suman24-Mar-08 1:04
rp_suman24-Mar-08 1:04 
GeneralUsing DLL file in own code Pin
r0wdy23-Mar-08 20:20
r0wdy23-Mar-08 20:20 
GeneralRe: Using DLL file in own code Pin
CPallini23-Mar-08 22:40
mveCPallini23-Mar-08 22:40 
You should add the DLL library (.lib) file to your project:
Select project->properties menu item.
On the newly appeared window, select Configuration Properties->Linker->CommandLine
Add you library file name to the Additional options text box

Moreover, you need to make the IDE aware of where your library file is (you may add the library file folder path to the known library directories: Tools->Options menu item, then Project and Solutions->VC++ Directories, select Library files item of the Show directories for list).

r0wdy wrote:
The header file also contains the following define.
// DLL Export/Import define
//
// This define makes it possible to use the SystemAPI.h file in both the DLL
// and Main Application solutions.
// The SYSTEMDLL_EXPORTS is defined in the DLL source code and should NOT be
// defined in the Main Application!

#ifdef SYSTEMDLL_EXPORTS
#define SYSTEMDLL_API extern "C" __declspec(dllexport)
#else
#define SYSTEMDLL_API extern "C" __declspec(dllimport)
#endif


When compiling you should NOT define SYSTEMDLL_EXPORTS, since you're actually importing.


BTW on running the application, make sure the DLL file is reachable (for instance, put it in the same folder of the executable)

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralCall constructor Pin
George_George23-Mar-08 20:09
George_George23-Mar-08 20:09 
GeneralRe: Call constructor Pin
fefe.wyx23-Mar-08 20:16
fefe.wyx23-Mar-08 20:16 
GeneralRe: Call constructor Pin
George_George23-Mar-08 20:27
George_George23-Mar-08 20:27 
GeneralRe: Call constructor Pin
Nemanja Trifunovic24-Mar-08 4:53
Nemanja Trifunovic24-Mar-08 4:53 
GeneralRe: Call constructor Pin
George_George24-Mar-08 19:02
George_George24-Mar-08 19:02 
GeneralRe: Call constructor Pin
Nemanja Trifunovic25-Mar-08 4:56
Nemanja Trifunovic25-Mar-08 4:56 
GeneralRe: Call constructor Pin
George_George25-Mar-08 5:02
George_George25-Mar-08 5:02 
GeneralVC++, in Wizard mode property sheet in WindowsNT Pin
Ratheesh Chandran C S 23-Mar-08 19:21
Ratheesh Chandran C S 23-Mar-08 19:21 
GeneralRe: VC++, in Wizard mode property sheet in WindowsNT Pin
rp_suman24-Mar-08 1:12
rp_suman24-Mar-08 1:12 
Questionwhat's wrong with my code(CComboBoxEx control) Pin
fantasy121523-Mar-08 17:14
fantasy121523-Mar-08 17:14 
GeneralRe: what's wrong with my code(CComboBoxEx control) Pin
Steve Echols23-Mar-08 17:32
Steve Echols23-Mar-08 17:32 
QuestionRe: what's wrong with my code(CComboBoxEx control) [modified] Pin
fantasy121523-Mar-08 19:44
fantasy121523-Mar-08 19:44 
GeneralRe: what's wrong with my code(CComboBoxEx control) Pin
David Crow24-Mar-08 4:36
David Crow24-Mar-08 4:36 
Questionhow to resolve soch problem about xor? Pin
kcynic23-Mar-08 16:10
kcynic23-Mar-08 16:10 
AnswerRe: how to resolve soch problem about xor? Pin
Steve Echols23-Mar-08 17:24
Steve Echols23-Mar-08 17:24 
GeneralRe: how to resolve soch problem about xor? Pin
kcynic23-Mar-08 17:27
kcynic23-Mar-08 17:27 
GeneralRe: how to resolve soch problem about xor? Pin
Steve Echols23-Mar-08 17:38
Steve Echols23-Mar-08 17:38 

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.