Menu

Win32 API

nvellios
2007-10-26
2012-09-26
  • nvellios

    nvellios - 2007-10-26

    I am testing out Dev C++ and it works fine except when I try to use the Win32 API. When I include windows.h it comes up with a ton of compile errors.

    Do I need to download anything else to make this work? I am new to programming on Windows, I used to program for macs years ago but it's been a while since I have touched a line of code.

    Anything will help. Thanks.

     
    • Anonymous

      Anonymous - 2007-10-27

      >> braintraining, thanks for nothing.

      You will continue to get little help if you do not follow the forum etiquette and post what we need to assist you. In the thread titled "PLEASE READ BEFORE POSTING A QUESTION" you are asked to submit three 'vital' pieces of information.

      Of these three, in this case the Compile Log is essential. You say you get errors, but you do not show us what the errors are! That is what braintraining was referring to by "crystal ball" - these errors contain information to help understand the cause of a problem. Without the log we are blind.

      >> but not when I add "stdio" type commands and includes.

      That is very vague. For example I would expect say fopen() to work as normal. I would not however expect printf() to display any output. printf() outputs to stdout - in Windows this is the text console, GUI applications do not have a text console (at least not by default), so the function works, but the output is sent into 'oblivion'.

      If you were trying to display output using printf() in a GUI app, I am guessing that you have not teh faintest idea how to create a GUI app. Look at the example code, notice that to do very simple things it has a significantly large framework overhead. This isnot printf( "hello, world\n" ) territory now you know.

      Clifford

       
    • nvellios

      nvellios - 2007-10-27

      Clifford and braintraining, I apologize. My frustration of trying to relearn programming years later on a completely different operating system was vented onto this board and I didn't mean to.

      I am not trying to use any console functions other than fopen and commands like that.

      I did get it to compile, but I had to move some code around. My limitation is now when trying to convert to unlike variables. I have a topic posted on this board about it.

      I appreciate your help guys, ignore my frustration. It's been a while since i've written any code. :)

      -Nick

       
    • Anonymous

      Anonymous - 2007-10-26

      Try to compile some of the included examples.

      See in C:\Dev-Cpp\Examples

      Old newbie.

       
    • BiT

      BiT - 2007-10-26

      Did you try the template first? File>>New>>Project>>Windows Application

      Did you look at the "PLEASE READ ME" thread?

      Did you post any of the basic 3

      I would help you out but I left my crystal ball at home so I am unable to read your mind at this time.

       
    • nvellios

      nvellios - 2007-10-26

      The WinTest example worked. I will look into this further on my own.

      ajmillan, thank you very much for your help.

      braintraining, thanks for nothing.

       
    • nvellios

      nvellios - 2007-10-26

      Well actually, the examples work, but not when I add "stdio" type commands and includes. Is this normal?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.