Click here to Skip to main content
15,923,197 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Detect Internet Connection Pin
Toni7817-Jul-03 21:02
Toni7817-Jul-03 21:02 
GeneralRe: Detect Internet Connection Pin
Abhi@Work23-Jul-03 16:46
Abhi@Work23-Jul-03 16:46 
GeneralCColorDialog::SetCurrentColor crashing Pin
mcguile25716-Jul-03 15:34
mcguile25716-Jul-03 15:34 
GeneralTerminating a process Pin
haritadala16-Jul-03 15:08
haritadala16-Jul-03 15:08 
GeneralRe: Terminating a process Pin
Dave Bryant16-Jul-03 17:08
Dave Bryant16-Jul-03 17:08 
Generalexporting functions from dlls Pin
Anonymous16-Jul-03 15:01
Anonymous16-Jul-03 15:01 
GeneralRe: exporting functions from dlls Pin
FlyingDancer16-Jul-03 15:22
FlyingDancer16-Jul-03 15:22 
GeneralRe: exporting functions from dlls Pin
Iain Clarke, Warrior Programmer17-Jul-03 1:08
Iain Clarke, Warrior Programmer17-Jul-03 1:08 
Simple answer, yes it is possible to export only some functions from a class in a DLL.
You would get linker errors rather than runtime ones.

BUT!!!!

I can't think of a good reason why you would. You are just making your life, and the job of any
users of your DLL harder. Not only do you now have protected / public members, you now have
exported / non-exported member too.

If you *really* want to keep your implementation details a secret, then look at COM / a COM-like
model, where you publish a pure virtual class, implement a Create-My-Class function which returns
a pointer to an instance of a class which implements the virtual functions.

In answer to your second question, you can also export multiple classes / functions from a DLL.
After all, MFC does...

Iain.
GeneralCrash Pin
Anonymous16-Jul-03 14:31
Anonymous16-Jul-03 14:31 
GeneralRe: Crash Pin
Toni7816-Jul-03 16:08
Toni7816-Jul-03 16:08 
GeneralRe: Crash Pin
Anonymous16-Jul-03 16:16
Anonymous16-Jul-03 16:16 
GeneralRe: Crash Pin
Toni7816-Jul-03 19:17
Toni7816-Jul-03 19:17 
GeneralRe: Crash Pin
Jens Doose21-Jul-03 23:42
Jens Doose21-Jul-03 23:42 
Generalmain( int argc, char *argv[], char *envp[] ) Pin
dadacncn16-Jul-03 12:15
dadacncn16-Jul-03 12:15 
GeneralRe: main( int argc, char *argv[], char *envp[] ) Pin
Garth J Lancaster16-Jul-03 12:49
professionalGarth J Lancaster16-Jul-03 12:49 
GeneralRe: main( int argc, char *argv[], char *envp[] ) Pin
dadacncn16-Jul-03 22:51
dadacncn16-Jul-03 22:51 
Generalstrtok Pin
butterbean73016-Jul-03 11:46
butterbean73016-Jul-03 11:46 
GeneralRe: strtok Pin
Ryan Binns16-Jul-03 17:16
Ryan Binns16-Jul-03 17:16 
GeneralEnv Vars in arg list and Studio Pin
john john mackey16-Jul-03 11:15
john john mackey16-Jul-03 11:15 
GeneralHiding controls in the CFileDialog Pin
GloriousBlues16-Jul-03 10:45
GloriousBlues16-Jul-03 10:45 
QuestionHow to make an automated phone call? Pin
Alvaro Mendez16-Jul-03 9:52
Alvaro Mendez16-Jul-03 9:52 
AnswerRe: How to make an automated phone call? Pin
Ranjan Banerji16-Jul-03 10:51
Ranjan Banerji16-Jul-03 10:51 
AnswerRe: How to make an automated phone call? Pin
Ranjan Banerji16-Jul-03 10:58
Ranjan Banerji16-Jul-03 10:58 
GeneralTo MFC or NOT to MFC that is the question. Pin
John R. Shaw16-Jul-03 9:48
John R. Shaw16-Jul-03 9:48 
GeneralRe: To MFC or NOT to MFC that is the question. Pin
Code4Food16-Jul-03 9:56
Code4Food16-Jul-03 9:56 

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.