   SetWindowText
  I am trying to use SetWindowText to put my functions in a window control ie-Center of the Window where you can put Dialog boxes etc. Most of my functions have a output then need a input. So my first Goal is to use the output of my functions and allow them to be seen. Most of my code is designed for console windows.So Any help would be nice.   
  So, what part of SetWindowText is it that you are having problems with?   ;  The whole thing, MSDN does not explain it very much and I can't find any real examples with using it the way I need to use. it   ;This page is linked from the documentation of SetWindowText(). It has example code that uses the function.That said, I dont understand what you are attempting. Can you try to reexplain what you want to do?   ;  Ok, I'll try to explain what I am doing a little better.My functions are in console ieiostreamnamespace cout cinSo I want to use SetWindowText to replace cout as a output function and use something else for cin like GetWindowText(Something like that)[Edited by - ARC inc on September 7, 2008 9:39:21 PM];  Alright, I understand. Having seen the example code, what questions do you have currently?   ;  I think you misunderstood the meaning of SetWindowText.It is meant to set the "Title" of a windowor the Text on a button and not to output Text to a window.You might have a look at DrawText() or you could use somethinglike a multi-line edit control to output text and let windowshandle the drawing.   ;  I was told that SetWindowText would do what I need to do.Main.cpp/*Ever Life v.1Author: AndrewComplier: Dev C++*/#include <iostream>using namespace std;int main(){void GameTitle(){   GameTitle();return 0;}corefunctions.h#ifndef COREFUNCTIONS_H#define COREFUNCTIONS_Hvoid GameTitle()#endifcorefunctions.cpp#include <iostream>using namespace std;{   cout << "#########################\n"   << "##### Ever Life #########\n"   << "#########################\n";return 0;}Basicly thats one of my functions(Not Copied due to the fact I am not on my programing computer) so let alone a few errors in my programming what I thought SetWindowText would be able to do is when the funciton "GameTitle()" was called it would print out my Title on a WindowScreen. which would be considered a controler I thought.So can someone please help me understand on how to do this. I do know I'll have to rewrite a lot of my code but I am more then willing to rewrite a lot of it.   ;  I'm sorry to tell you, but things will get a little more complicated than just switching cout for SetWindowText().1. You have to create an executable for the WIN32 subsystem of Windows, not a console application.I haven't used DevC++ yet so I can't tell you how to do this. But I guess that you can choose something like "Windows application" when you create a new project.2. You have to register a window class for your window3. You have to write a callback function that handles the messages that are being sent to the window.4. You have to create the window and fetch messages sent to your application.5. Then you can call SetWindowText() or whatever function on that window to output text.--I recommend you to follow a tutorial on windows programming first so you can get a grasp on how all this works actually. Or you could use a library that handles all those tasks for you... (WxWidgets, Qt, MFC, ...) to name a few. Programing for windows with just the plain old Platform SDK can be a real pain in the a**And I don't recommend to do complex stuff until you have become really familiar with it.EDIT: Have a look at this tutorial. http://winprog.org/tutorial/I think it looks pretty good (Download the english PDF from their website)[Edited by - Madhed on September 8, 2008 2:04:27 PM];  I have read a lot of stuff on Win32 I know how to make a window, menus, dialogs, and stuff but. I have still yet found a tut that will teach how to transform your ugly Console programs into Win32   