Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondocument view in MFC Pin
hrishiS9-Mar-09 1:27
hrishiS9-Mar-09 1:27 
AnswerRe: document view in MFC Pin
Chandrasekharan P9-Mar-09 1:39
Chandrasekharan P9-Mar-09 1:39 
AnswerRe: document view in MFC Pin
Cedric Moonen9-Mar-09 1:58
Cedric Moonen9-Mar-09 1:58 
AnswerRe: document view in MFC Pin
Eytukan9-Mar-09 2:06
Eytukan9-Mar-09 2:06 
QuestionHelp Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 0:52
Anu_Bala9-Mar-09 0:52 
QuestionRe: Help Icon '?' in Property sheet Pin
Anu_Bala9-Mar-09 1:11
Anu_Bala9-Mar-09 1:11 
AnswerRe: Help Icon '?' in Property sheet Pin
«_Superman_»9-Mar-09 1:21
professional«_Superman_»9-Mar-09 1:21 
QuestionHow to make a custom control nicely? Pin
Igen18-Mar-09 23:58
Igen18-Mar-09 23:58 
--- Warning! What I talking about here is pure Borland C++ and I don't want to use any MFC!!! ---

Hi!

I've found an article about how to make a custom control as a dll. I have made custom controls before, but not as dlls. So when I tryed to do this I came across the following problem:

If one want to load a dll in different apps, it will probably mess up the data it have. This is becouse It implemented as a class that have it's own data and functions.

So how to make a control nicely? Should I make a lib from the class, a dll and have only one instance or just write the functions in C style in to the dll - but in this case, how I manage the data?

What I thinking of as an example is a simple 2-state button control which have its own bool to indicate the state. This can have as many instances as want and also in different apps at the same time. In Windows it's in a dll...

My problem was while trying to implement this the message handle. A control is a window havin' it's own message handle procedure what - as far as I know it - can't be in a class but only in global. So when I load the dll in defferent apps, and make different instances of the class in it, which ones functions will it call??? Big Grin | :-D

Okay, these are the basic problems I have and only want to know how to implement that kind of button as in the example. So opinions and solutions are welcome.
AnswerRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 1:07
Nishad S9-Mar-09 1:07 
GeneralRe: How to make a custom control nicely? [modified] Pin
Igen19-Mar-09 1:31
Igen19-Mar-09 1:31 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:10
Nishad S9-Mar-09 2:10 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 2:17
Nishad S9-Mar-09 2:17 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 3:02
Igen19-Mar-09 3:02 
GeneralRe: How to make a custom control nicely? Pin
Nishad S9-Mar-09 3:20
Nishad S9-Mar-09 3:20 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:00
Igen19-Mar-09 4:00 
AnswerRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 3:04
Stephen Hewitt9-Mar-09 3:04 
GeneralRe: How to make a custom control nicely? Pin
Igen19-Mar-09 4:04
Igen19-Mar-09 4:04 
GeneralRe: How to make a custom control nicely? Pin
Stephen Hewitt9-Mar-09 20:03
Stephen Hewitt9-Mar-09 20:03 
QuestionHow to fetch cookie timeout value "in specific" using VC++ Pin
IamPoojaa8-Mar-09 23:31
IamPoojaa8-Mar-09 23:31 
AnswerRe: How to fetch cookie timeout value "in specific" using VC++ Pin
Code-o-mat9-Mar-09 2:02
Code-o-mat9-Mar-09 2:02 
QuestionDownload mutiple exe"s from webserver Pin
siva4558-Mar-09 23:30
siva4558-Mar-09 23:30 
AnswerRe: Download mutiple exe"s from webserver Pin
Eytukan8-Mar-09 23:53
Eytukan8-Mar-09 23:53 
GeneralRe: Download mutiple exe"s from webserver Pin
siva4558-Mar-09 23:59
siva4558-Mar-09 23:59 
QuestionRe: Download mutiple exe"s from webserver Pin
David Crow9-Mar-09 4:18
David Crow9-Mar-09 4:18 
AnswerRe: Download mutiple exe"s from webserver Pin
Iain Clarke, Warrior Programmer10-Mar-09 2:45
Iain Clarke, Warrior Programmer10-Mar-09 2:45 

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.