Click here to Skip to main content
15,914,488 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: simple vc++ help Pin
BAIJUMAX25-Sep-04 20:58
professionalBAIJUMAX25-Sep-04 20:58 
GeneralRe: simple vc++ help Pin
BAIJUMAX25-Sep-04 20:59
professionalBAIJUMAX25-Sep-04 20:59 
QuestionHow to generate Midi Sound? Pin
Aris Adrianto S25-Sep-04 18:25
Aris Adrianto S25-Sep-04 18:25 
AnswerRe: How to generate Midi Sound? Pin
Ravi Bhavnani25-Sep-04 21:38
professionalRavi Bhavnani25-Sep-04 21:38 
GeneralPrinting bitmap Pin
Yulianto.25-Sep-04 18:18
Yulianto.25-Sep-04 18:18 
GeneralRe: Printing bitmap Pin
Andrzej Markowski3-Oct-04 14:33
Andrzej Markowski3-Oct-04 14:33 
GeneralAbout Using Class in a Dll, plz help.. Pin
25-Sep-04 16:24
suss25-Sep-04 16:24 
GeneralRe: About Using Class in a Dll, plz help.. Pin
Antti Keskinen26-Sep-04 1:59
Antti Keskinen26-Sep-04 1:59 
First off, you're using dynamic loading (run-time loading), so the DLLEXPORT and DLLIMPORT statements are unnecessary at the class definition. You should remove these, because you are not exporting/importing this class's objects.

Also, instead of using __declspec, create a module definition file (.DEF) and write the exported function in there. This allows you to control the exact name by which the function is exported. See MSDN for details on how to use a definition file. If you use a definition file, remove the __declspec entries. The definition file is only required at the DLL project. The EXE project does not require it, because the GetProcAddress will search the DLL export table for the specified exported function.

Otherwise the code looks intact and working.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralHelp !!! gateway ... Pin
mazi195525-Sep-04 12:14
mazi195525-Sep-04 12:14 
GeneralDialog Pin
swarup25-Sep-04 9:11
swarup25-Sep-04 9:11 
GeneralRe: Dialog Pin
Yulianto.25-Sep-04 18:21
Yulianto.25-Sep-04 18:21 
GeneralRe: Dialog Pin
David Crow27-Sep-04 10:10
David Crow27-Sep-04 10:10 
GeneralUrgent Database issue Pin
brdavid25-Sep-04 8:37
brdavid25-Sep-04 8:37 
GeneralRe: Urgent Database issue Pin
Yulianto.25-Sep-04 18:28
Yulianto.25-Sep-04 18:28 
GeneralRe: Urgent Database issue Pin
brdavid26-Sep-04 0:54
brdavid26-Sep-04 0:54 
GeneralRe: Urgent Database issue Pin
Yulianto.26-Sep-04 14:54
Yulianto.26-Sep-04 14:54 
GeneralRe: Urgent Database issue Pin
brdavid26-Sep-04 15:08
brdavid26-Sep-04 15:08 
GeneralRe: Urgent Database issue Pin
Yulianto.26-Sep-04 18:52
Yulianto.26-Sep-04 18:52 
GeneralRe: Urgent Database issue Pin
brdavid27-Sep-04 2:14
brdavid27-Sep-04 2:14 
GeneralRe: Urgent Database issue Pin
Yulianto.28-Sep-04 18:20
Yulianto.28-Sep-04 18:20 
GeneralRe: Urgent Database issue Pin
brdavid3-Oct-04 11:01
brdavid3-Oct-04 11:01 
GeneralRe: Urgent Database issue Pin
Yulianto.3-Oct-04 15:26
Yulianto.3-Oct-04 15:26 
Generalpassword in c++ Pin
Anonymous25-Sep-04 5:30
Anonymous25-Sep-04 5:30 
GeneralRe: password in c++ Pin
HalfWayMan25-Sep-04 8:15
HalfWayMan25-Sep-04 8:15 
GeneralRe: password in c++ Pin
David Crow27-Sep-04 10:13
David Crow27-Sep-04 10:13 

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.