BleepingComputer.com: create an .exe program

Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

create an .exe program

#1 User is offline   ableg02 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 25
  • Joined: 10-April 09

Posted 31 August 2009 - 08:12 PM

how do i create an .exe after creating code in c++. in other words, how does (for example) nero or yahoo messenger create their programs in windows mode (you know with the maximize buttons, minimize ....

#2 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,814
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 31 August 2009 - 08:39 PM

You are asking how to create a Windows EXE file which opens like a Window.

1. This is done in C++ using Windows API. You create a window typically using CreateWindowEx function.
2. There are other GUI frameworks to be used with C++, including Microsoft's own MFC and .net. These simplify creating Windows application. There are third party frameworks and open source frameworks like GTK+ which also can create window GUI based application.

For the first way, you need a good C++ compiler supporting Win32API like MS VC++ Express or GCC.
For the second, requirements vary depending on the frameworks.

When you use Win32 API, you first register application class using RegisterClassEx, then create the window using CreateWindowEx. Show this window using ShowWindow. And finally start the message loop so you can process the message being sent to he application. The messages are processed by a user defined callback function.

For more information:
Win32API : http://msdn.microsoft.com/en-us/library/aa...28VS.85%29.aspx
Hello World in C++ : http://www.codepedia.com/1/Win32APIHelloWorld
Win32API Tute: http://winprog.org/tutorial/
GTK+ : http://www.gtk.org/
[url="http://www.avast.com/"]avast! free antivirus[/url]

#3 User is offline   ableg02 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 25
  • Joined: 10-April 09

Posted 31 August 2009 - 08:44 PM

thanks

#4 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,814
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

Posted 01 September 2009 - 03:17 PM

yw :thumbsup: feel free to ask here if you get stuck somwehere
[url="http://www.avast.com/"]avast! free antivirus[/url]

#5 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,522
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 01 September 2009 - 06:45 PM

Or using C#......
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users