09.01.2021»»суббота

How To Add Resource File In Dev C++

09.01.2021
    8 - Comments

Mar 25, 2011  ok,lets,here we use Dev C to make header file. 1) Open the Dev c and Create new Console application and save it in new folder. 2) Now,time to the Write a Code. Ok, When you Create new Project than main.cpp file create by default, in this file Write following codes. Bloodshed Dev-C is a full-featured Integrated Development Environment (IDE) for the C/C programming language. It uses Mingw port of GCC (GNU Compiler Collection) as its compiler. It creates native Win32 executables, either console or GUI. Dev-C can also be used in combination with Cygwin. How to change the default.exe icon in C/C? Select 'Files View' and add the resource script file in the 'Resource Files'. If you are using any ide like dev.

Hello all,

I'm trying to learn how to make just a basic windows app with some buttons and text windows to make the programs I normally create and interface with through DOS a little more interesting.

Dev C++ Tutorial

I'm following the tutorials at '>http://www.winprog.org/tutorial and http://www.functionx.com/win32/ .
I can manage to get the most basic stuff like creating windows and adding a menu bar. Next up, I want to try and get dialog boxes, similar to what you might see when you hit the About button on a window. Specifically, http://www.functionx.com/win32/Lesson04.htm outlines what I'm trying to do.

Well, since I understand almost nothing about what exactly the syntax for all of this is, from how to interface with functions to what I need to put in resource files, I'm first trying to copy-paste code and see if it works. Well, as far as I can tell, what I have should be working.

This is what I have in my resource file and when I go to compile, I get a syntax error on line 4, the STYLE line. Nothing I look up or read leads me to believe that the syntax here is incorrect, aside from the fact that this is the code given to me from a tutorial. I even tried deleting the STYLE line just to get something to compile and I get another syntax error on the DEFPUSHBUTTON line.

The main code in the .cpp file *should* all be fine, it's taken directly from these tutorials as well, but I'll post it if everything seems fine with this resource file code. Also, I'm compiling in Dev-C++.

If anyone knows what my problem might be and wants to help, I would really appreciate it. This isn't really something I *need* to do but it would be real interesting if I could figure it out. /david-cook-permanent-instrumental-mp3-download.html.

  • 2 Contributors
  • forum 7 Replies
  • 570 Views
  • 11 Hours Discussion Span
  • commentLatest Postby Frederick2Latest Post

Frederick2189

Hi Ripture,

Here is some code from Dev-C++ that uses a resource file I dug up from a few years back. I just rebuilt the project as C++ (it was C) and it works. The code also has a menu in it where you can go to the File menu & choose Open and the Open File Dialog Box will present itself. On the Help menu a dialog box from a resource file (.rc) is created. Hope it helps you. The main source is Main.cpp, the project name is Form11, the header is Form11.h and the rc file is Form11.rc. Create the Form11 project and put all the files in that dir. Then include them in the project, that is, Main.cpp, Form11.h and Form11.rc.

I personally deplore the Windows Dialog Engine, and only use windows it creates in the most basic and rudimentary manner. I'd highly recommend going with CreateWindowEx() windows in your Win32 programming.

What Is A Resource File

Edited by Frederick2: n/a