<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.pellesc.de/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.pellesc.de/feed.php">
        <title>Pelles C Wiki</title>
        <description></description>
        <link>http://wiki.pellesc.de/</link>
        <image rdf:resource="http://wiki.pellesc.de/lib/images/favicon.ico" />
       <dc:date>2012-05-20T10:56:11+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=author_information&amp;rev=1212838819&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=available_drives&amp;rev=1321953952&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=center_window&amp;rev=1321953955&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=change_fileattributes&amp;rev=1213007843&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=check_directory_existence&amp;rev=1213131865&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=check_file_existence&amp;rev=1213131918&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=check_medium&amp;rev=1213007345&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=code_snippets&amp;rev=1213131517&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=data_grid&amp;rev=1221779378&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=dialog_with_link&amp;rev=1213008307&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=installation&amp;rev=1249306970&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=main_page&amp;rev=1312232245&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=navigation&amp;rev=1260561492&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.pellesc.de/doku.php?id=translating&amp;rev=1316786525&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.pellesc.de/lib/images/favicon.ico">
        <title>Pelles C Wiki</title>
        <link>http://wiki.pellesc.de/</link>
        <url>http://wiki.pellesc.de/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=author_information&amp;rev=1212838819&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-07T13:40:19+02:00</dc:date>
        <title>author_information</title>
        <link>http://wiki.pellesc.de/doku.php?id=author_information&amp;rev=1212838819&amp;do=diff</link>
        <description>*  This wiki is planned as a multilingual wiki, that means, every language has an own namespace. E.g., the german version of this page has the name de:author_information, while the english one is only author_information, withount the “en”, because english is the default language.
	*  I decided to use Dokuwiki, because it is much faster than other wikis and is especially designed for documentations. You can find informations about Dokuwiki here and about the syntax here.</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=available_drives&amp;rev=1321953952&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-22T10:25:52+02:00</dc:date>
        <title>available_drives</title>
        <link>http://wiki.pellesc.de/doku.php?id=available_drives&amp;rev=1321953952&amp;do=diff</link>
        <description>This code snippet is originally from the former WinAPI site www.winapi.net

Sometimes you need to know about all logical drives. The WinAPI gives us for that the function GetLogicalDrives(). It returns a bit mask which has to be analysed. Here is an example how:</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=center_window&amp;rev=1321953955&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-22T10:25:55+02:00</dc:date>
        <title>center_window</title>
        <link>http://wiki.pellesc.de/doku.php?id=center_window&amp;rev=1321953955&amp;do=diff</link>
        <description>It looks sometimes much better, if a new modal dialog or window is centered to his parent. This function solves this for you. just call CenterWindow (hwndChild, hwndParent);.

BOOL CenterWindow(HWND hwndChild, HWND hwndParent)
{
    RECT    rcChild, rcParent;
    int     cxChild, cyChild, cxParent, cyParent;
    int     cxScreen, cyScreen, xNew, yNew;
    HDC     hdc;

    GetWindowRect(hwndChild, &amp;rcChild);
    cxChild = rcChild.right - rcChild.left;
    cyChild = rcChild.bottom - rcChild.top;
…</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=change_fileattributes&amp;rev=1213007843&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-09T12:37:23+02:00</dc:date>
        <title>change_fileattributes</title>
        <link>http://wiki.pellesc.de/doku.php?id=change_fileattributes&amp;rev=1213007843&amp;do=diff</link>
        <description>This code snippet is originally from the former WinAPI site www.winapi.net

Sometimes you need to change the file attributes, e.g. if you want to delete a write-protected file. This function solves this problem:

#include &lt;windows.h&gt;

SetFileAttributes (TEXT(&quot;C:\\filename.txt&quot;), FILE_ATTRIBUTE_NORMAL);</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=check_directory_existence&amp;rev=1213131865&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-10T23:04:25+02:00</dc:date>
        <title>check_directory_existence</title>
        <link>http://wiki.pellesc.de/doku.php?id=check_directory_existence&amp;rev=1213131865&amp;do=diff</link>
        <description>The following code checks for the existence of a directory on the filesystem.

#define WIN32_LEAN_AND_MEAN
#include &lt;windows.h&gt;

#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES	((DWORD)-1)
#endif

/*
    Returns TRUE if filename parameter is a directory
    or FALSE if filename is either NULL or a file
*/

BOOL IsDir(const char *filename)
{
	DWORD dwAttrs; 
 
	dwAttrs = GetFileAttributes(filename);
	if (dwAttrs == INVALID_FILE_ATTRIBUTES)
		return FALSE;

	return (BOOL) (dwAttrs …</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=check_file_existence&amp;rev=1213131918&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-10T23:05:18+02:00</dc:date>
        <title>check_file_existence</title>
        <link>http://wiki.pellesc.de/doku.php?id=check_file_existence&amp;rev=1213131918&amp;do=diff</link>
        <description>The following function checks if a file exists.

#define WIN32_LEAN_AND_MEAN
#include &lt;windows.h&gt;

#ifndef INVALID_FILE_ATTRIBUTES
#define INVALID_FILE_ATTRIBUTES	((DWORD)-1)
#endif

/*
    Returns TRUE if filename is a file
    or FALSE if filename is either NULL, empty or it's a directory

*/

BOOL IsFile(const char *filename)
{
	DWORD dRet;

	if (!filename || filename[0] == '\0')
		return FALSE;

	dRet = GetFileAttributes(filename);

	if (dRet == INVALID_FILE_ATTRIBUTES)
		return FALSE;

	ret…</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=check_medium&amp;rev=1213007345&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-09T12:29:05+02:00</dc:date>
        <title>check_medium</title>
        <link>http://wiki.pellesc.de/doku.php?id=check_medium&amp;rev=1213007345&amp;do=diff</link>
        <description>This code snippet is originally from the former WinAPI site www.winapi.net

If you want to know, if the user inserted a medium like a disk or a CD into the drive, use this code:

#include &lt;windows.h&gt;
#include &lt;shlwapi.h&gt;

// uDrive:
// 0 - A:\
// 1 - B:\
// 2 - C:\
// etc.

BOOL IsDriveReady(UINT uDrive)
{
    TCHAR szRootPathName[32];
    UINT uErrorMode;
    BOOL bRet;

    PathBuildRoot(szRootPathName, uDrive);

    uErrorMode = SetErrorMode(SEM_FAILCRITICALERRORS);
    bRet = GetVolumeInform…</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=code_snippets&amp;rev=1213131517&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-10T22:58:37+02:00</dc:date>
        <title>code_snippets</title>
        <link>http://wiki.pellesc.de/doku.php?id=code_snippets&amp;rev=1213131517&amp;do=diff</link>
        <description>Windows and dialog boxes

	*  Center a window or dialog

File handling

	*  List all available drives
	*  Check for a inserted medium
	*  Change file attributes
	*  Check file existence
	*  Check directory existence

Internet and network

	*  Creating a link within a dialog</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=data_grid&amp;rev=1221779378&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-19T01:09:38+02:00</dc:date>
        <title>data_grid</title>
        <link>http://wiki.pellesc.de/doku.php?id=data_grid&amp;rev=1221779378&amp;do=diff</link>
        <description>--- David MacDermot 2008/09/17 19:55

This article describes how to create a custom control in Pelles C. The control in this case is a data grid like component using a listview and an edit box along with a number of customizations to enhance the appearance of the control.</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=dialog_with_link&amp;rev=1213008307&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-09T12:45:07+02:00</dc:date>
        <title>dialog_with_link</title>
        <link>http://wiki.pellesc.de/doku.php?id=dialog_with_link&amp;rev=1213008307&amp;do=diff</link>
        <description>This code snippet is originally from the former WinAPI site www.winapi.net

To create a link within a dialog box, you have to add a Text to your dialog, which should be used as link. Assign the Notify-Style to this text control.



We use the Name IDC_URL for this control.</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=installation&amp;rev=1249306970&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-08-03T15:42:50+02:00</dc:date>
        <title>installation</title>
        <link>http://wiki.pellesc.de/doku.php?id=installation&amp;rev=1249306970&amp;do=diff</link>
        <description>This article describes the requirements and the installation of Pelles C. It's planned for absolute beginners, which want to start their C-development career with Pelles C.

Requirements


If you want to install Pelles C, you need a PC running Microsoft(tm) Windows(tm). If you have a 64-bit Windows operating system, e.g. Windows-XP 64 bit or Vista 64 bit, you should also use the 64 bit version of Pelles C.</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=main_page&amp;rev=1312232245&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-08-01T22:57:25+02:00</dc:date>
        <title>main_page</title>
        <link>http://wiki.pellesc.de/doku.php?id=main_page&amp;rev=1312232245&amp;do=diff</link>
        <description>This Wiki is created to give a platform for all users of Pelles C to share tutorials, sourcecodes ore just hints. 

Please feel free to contribute something good to fill this Wiki with a lot of useful informations.

For authors:
Please read the Author information before posting.</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=navigation&amp;rev=1260561492&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-11T20:58:12+02:00</dc:date>
        <title>navigation</title>
        <link>http://wiki.pellesc.de/doku.php?id=navigation&amp;rev=1260561492&amp;do=diff</link>
        <description>*  Main page
	*  Help</description>
    </item>
    <item rdf:about="http://wiki.pellesc.de/doku.php?id=translating&amp;rev=1316786525&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-23T16:02:05+02:00</dc:date>
        <title>translating</title>
        <link>http://wiki.pellesc.de/doku.php?id=translating&amp;rev=1316786525&amp;do=diff</link>
        <description>Version: 1.00 --- Christian Heffner 2008/06/09 01:22

Version: 1.01 --- Christian Heffner 2008/08/03 11:08

Version: 1.02 --- Christian Heffner 2008/08/07 15:23

Please don't translate this page into other languages,
so we have a common place for the Pelles C translators here!</description>
    </item>
</rdf:RDF>

