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.

Photo

create an .exe program


  • Please log in to reply
4 replies to this topic

#1 ableg02

ableg02

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:07:18 AM

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 ....

BC AdBot (Login to Remove)

 


#2 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:06:18 AM

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/

#3 ableg02

ableg02
  • Topic Starter

  • Members
  • 25 posts
  • OFFLINE
  •  
  • Local time:07:18 AM

Posted 31 August 2009 - 08:44 PM

thanks

#4 Romeo29

Romeo29

    Learning To Bleep


  • Members
  • 3,194 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:127.0.0.1
  • Local time:06:18 AM

Posted 01 September 2009 - 03:17 PM

yw :thumbsup: feel free to ask here if you get stuck somwehere

#5 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:05:18 AM

Posted 01 September 2009 - 06:45 PM

Or using C#......




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users