Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionenumport problem Pin
wang200731-May-06 9:57
wang200731-May-06 9:57 
AnswerRe: enumport problem Pin
David Crow31-May-06 10:11
David Crow31-May-06 10:11 
AnswerRe: enumport problem Pin
NiceNaidu31-May-06 19:32
NiceNaidu31-May-06 19:32 
QuestionSocket Class to use with MFC [modified] Pin
SPowers31-May-06 9:48
SPowers31-May-06 9:48 
AnswerRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:13
Zac Howland31-May-06 10:13 
GeneralRe: Socket Class to use with MFC [modified] Pin
SPowers31-May-06 10:19
SPowers31-May-06 10:19 
GeneralRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:37
Zac Howland31-May-06 10:37 
Questionusing a dll to run the graphics of a scr Pin
reasley31-May-06 9:37
reasley31-May-06 9:37 
Hello,
I am a beginner to intermediate programmer with understanding in OpenGL and C++, along with other programming languages. I have read over several "tutorials" on creating a DLL and calling a function from within the DLL. I have also read several "tutorials" on creating a screen saver. I have a basic understanding of how to do each of these. But what I am wanting to do is create a screen saver that basically just calls a dll that then runs the graphics calculations and such. Here is the general description of what I am trying to do, and then I'll give a more spcific question of what help I am looking for.

I am wanting a way to see my OpenGL graphics creations. So I figure that a screen saver of what I create would be great. So I am wanting to create a screen saver that is a shell of sorts. All it does is access a dll that has all of the graphics code in it. Then I can just update my dll and the screen saver will automatically be updated. So I need to figure out a way to create a dll that bascially has a "WinMain" function in it so that it will run my graphics. Eventually I want to pass in a variable to the main function so that I can specify which effect I want to be displayed.

So here is my question:
How do I create a dll that has it's own "WinMain" function so that I can just call one function in the dll and it will run as if it were it's own program? Or can this even be done?

I am not looking for someone to do this for me but to rather give me some terms to look up or better yet a simple example. I appreciate any help you guys can give me. Thanks for the help. Smile | :)

Maybe if I can get it figured out I will write up an article and submit to CodeProject for others to use, with references to those that helped me figure it out of course. Smile | :)

~REasley
Conquering the world one bit at a time.
AnswerRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:10
David Crow31-May-06 10:10 
QuestionRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:16
reasley31-May-06 10:16 
QuestionRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:29
David Crow31-May-06 10:29 
AnswerRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:31
reasley31-May-06 10:31 
AnswerRe: using a dll to run the graphics of a scr [modified] Pin
Zac Howland31-May-06 10:30
Zac Howland31-May-06 10:30 
GeneralRe: using a dll to run the graphics of a scr [modified] Pin
reasley31-May-06 10:35
reasley31-May-06 10:35 
QuestionVisual Studio 2005, Multithreading option? Pin
Yonggoo31-May-06 9:02
Yonggoo31-May-06 9:02 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Cedric Moonen31-May-06 9:26
Cedric Moonen31-May-06 9:26 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Zac Howland31-May-06 10:04
Zac Howland31-May-06 10:04 
AnswerRe: Visual Studio 2005, Multithreading option? [modified] Pin
Yonggoo31-May-06 10:56
Yonggoo31-May-06 10:56 
QuestionPrecision Timing? Sleep(1)=15 millisecs !! Pin
Robert Palma Jr.31-May-06 8:57
Robert Palma Jr.31-May-06 8:57 
AnswerRe: Precision Timing? Sleep(1)=15 millisecs !! Pin
David Crow31-May-06 9:16
David Crow31-May-06 9:16 
AnswerRe: Precision Timing? Sleep(1)=15 millisecs !! Pin
Zac Howland31-May-06 9:23
Zac Howland31-May-06 9:23 
QuestionThreads Pin
Anthony988731-May-06 8:56
Anthony988731-May-06 8:56 
AnswerRe: Threads Pin
valikac31-May-06 10:04
valikac31-May-06 10:04 
GeneralRe: Threads Pin
Anthony988731-May-06 14:42
Anthony988731-May-06 14:42 
GeneralRe: Threads Pin
valikac31-May-06 14:46
valikac31-May-06 14:46 

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.