Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HELP NEEDED URGENTLY!

HELP NEEDED URGENTLY!

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Janlim
    wrote on last edited by
    #1

    i'm currently using visual C++ and i want to know the library and command to draw lines and boxes and fill the boxes with colours in win32......does anyone knows? Help me i'm really desperate! :confused: jan

    M C 2 Replies Last reply
    0
    • J Janlim

      i'm currently using visual C++ and i want to know the library and command to draw lines and boxes and fill the boxes with colours in win32......does anyone knows? Help me i'm really desperate! :confused: jan

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Win32 APIs: MoveTo, LineTo, Rectangle, FillRect --Mike-- http://home.inreach.com/mdunn/ "Listen you footwarriors, can you hold down a bit with the firing? I've just got three impromptu weddings breaking out behind me!" -- Arthur Dent :love: your :bob: with :vegemite: and :beer:

      1 Reply Last reply
      0
      • J Janlim

        i'm currently using visual C++ and i want to know the library and command to draw lines and boxes and fill the boxes with colours in win32......does anyone knows? Help me i'm really desperate! :confused: jan

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        If this relates to your earlier question, the answers provided there are still the case, you are going to have trouble if you're trying to draw to a console. You might also find it better NOT to SCREAM AT US, and to provide some clue to your problem in the question, rather than your personal level of urgency, which I'm sure is the same for everyone. If you're now writing a Windows program ( one with a Window), then GDI is the way to go, and there is a plethora of documentation about it. Most on this site use MFC, so you'll probably need to go to MSDN to get info on doing it under Win32. Be VERY careful of your resources, it's very easy to crash a program under Win32 through leaking resources. Another good source is www.WDJ.com - the site has all the old article code for download and authors are not allowed to use MFC, so you'll find a fair bit of Win32 GDI code there. They do a graphics issue annually, so look for that for each year, and you should find some stuff that will help you. Obviously, if you get stuck, just ask. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups