Mar 5 2010

Windows service start type value in the registry

Category: MISC | Windows Ryan @ 00:40
Sometimes it may be necessary to change a service start type from the registry instead of the GUI. This may be due to the system or the GUI being inaccessible, or because of a need to change startup as part of a script. While the system is live the service information is kept in the registry at HKE... [More]

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Dialog FAQ

Example: dlg_three Now don't get me wrong, this is a Tutorial, not a Reference, but some questions people ask SO often that I figured I might as well include them here. Changing Colours In general, the only reason you'd want to do this is to simulate an link on a dialog box or some ... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Standard Controls: Button, Edit, List Box

Example: ctl_one I realize I've already used buttons in previous examples, so you should already be more or less familiar with them, however I figured that since I was using them in this example I might as well add it to the title for the sake of being complete. Controls One thing to remember... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Modeless Dialogs

Example: dlg_two Now we take a look at CreateDialog(), DialogBox()'s sister function. The difference is that while DialogBox() implements it's own message loop and does not return untill the dialog is closed, CreateDialog() acts more like a window created withCreat... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Dialogs, GUI coders best friend

Example: dlg_one There's hardly a windows program out there that doesn't use dialog boxes. Just go File -> Open in any text editor or any other kind of editor for that matter and voila, you are presented with a dialog box, one that probably allows you to select a file to be opened. Dialogs ar... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Menus and Icons

Example: menu_one This is just a small section to show how to add basic menus to your window. Usually you use a pre-made menu resource. This will be in an .rc file and will be compiled and linked into your .exe. This is rather compiler specific, commercial compilers will have a resource editor ... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

Win32 API Programming Tutorial - Using Resources

You may also want to refer to the Appendices at the end of this tutorial for more information on resources with VC++ and BC++. Before we get any deeper I will cover the topic of resources so that I won't have to re-write it for each section.You don't actually need to compile the stuff in this sec... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 5 2010

How to run a scheduled task via a batch job

Category: Windows Ryan @ 02:52
Assuming XP...C:\>schtasks /?SCHTASKS /parameter [arguments]Description:Enables an administrator to create, delete, query, change, run andend scheduled tasks on a local or remote system. Replaces AT.exe.Parameter List:/Create Creates a new scheduled task./Delete Deletes the scheduled task(s)./Que... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 4 2010

Fixed: Solve fatal error RC1004: unexpected end of file found in C++ resource.h header file

Category: Programming | Windows Ryan @ 02:00
The issue: Always get fatal error RC1004: unexpected end of file found while building. The Sample file as below [resource.h] #define IDI_MYICON 101#define ID_FILE_EXIT 401 [test.rc]   #include "resource.h"#include <tchar.h>IDI_MYICON ICON _T("money.ico")/// MenusIDR_MYMENU MENUBEGIN... [More]

Tags: , ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 3 2010

Win32 API Programming Tutorial - Understanding the Message Loop

Understanding the message loop and entire message sending structure of windows programs is essential in order to write anything but the most trivial programs. Now that we've tried out message handling a little, we should look a little deeper into the whole process, as things can get very confusing... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 3 2010

Win32 API Programming Tutorial - Handling Messages

Example: window_clickAlright, we've got a window, but it doesn't do anything except what DefWindowProc() allows it to, like be sized, maximised, etc... Not really all that exciting.In the next section I am going to show you how to modify what you already have to do something new. This way ... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Feb 3 2010

Win32 API Programming Tutorial - A Simple Window

Example: simple_window Sometimes people come on IRC and ask "How do I make a window?"...Well it's not entirely that simple I'm afraid. It's not difficult once you know what you're doing but there are quite a few things you need to do to get a window to show up; And they're more than can be simply... [More]

Tags: ,

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5