Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 308073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:37:01+00:00 2026-05-12T07:37:01+00:00

I’m currently working on a game and relaly want to add an external console

  • 0

I’m currently working on a game and relaly want to add an external console to it (right now it’s built into the main game window).

What I would really like is to create a new Window which acts as the console with maybe a text box in the bottom to add new commands into it and a larger text box on top which outputs information.

I’m using DirectX and not all that sure how I would go about doing this. Do I create a new window from C++? If so how would I go about doing it with the given recquirements (and I’d really prefer the window I create not to be iN CLR). Would communicating between the main application window and the console window be a problem? I wouldn’t mind using actual windows form objects to make this happen (in fact I’d prefer it that way as it would give copy+paste advantages and the like).

I’d like the option that is the most flexible, perhaps so i can add multicoloured text and the like into the console window.

Appreciate any help on this =)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T07:37:01+00:00Added an answer on May 12, 2026 at 7:37 am

    A lot depends on your compiler. If you are using Visual Studio (Non-express) you can do this fairly easily by creating a dialog template. You can then use CreateDialogIndirect to create the thing. You’d probably want to use a RichEdit control embedded in the dialog (The RichEdit control is not a simple one though … so if you just want plain text you’d find it a LOT easier using a standard Edit control) for what you are after. You can then pass messages using SendDlgItemMessage to the rich edit to put the text in the RichEdit control.

    If you can’t use the dialog template builder it will be a lot more complicated. As Tobias points out you will need to use CreateWindow(Ex) to create the dialog and then CreateWindow the rich edit control inside. From there you should still be able to use SendDlgItemMessage to fill the RichEdit control, however.

    Either way you will need to handle the plethora of windows messages. Every time the user clicks or even moves their mouse over the window you will get a windows message. You don’t have to process them all but you will need to figure out what messages you DO need to handle and then handle them. Admittedly using a simple edit control it would be pretty easy to spam text to the edit control. You can set the control’s text content simply by using the SetWindowText function (which internally sends a WM_SETTEXT message).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I want to show the soap response to UIWebview.. my soap response is, <p><img

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.