<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Eigene h Problem]]></title><description><![CDATA[<p>Ich habe mir eine eigene header geschreiben mit funktion die ich öffters mal brauche. Diese habe ich wie immer in meiner Dialog basierten Anwendung benutz. Also ich dann aber einen 2 Dialog erstellte in dem ich auch einer dieser funktion benutzen möchte bekomme ich für jeder funktion die in der header ist einer fehlermeldung:</p>
<p>bereits in TestDlg.obj definiert</p>
<p>Wie kann ich denn das um gehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6473/eigene-h-problem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 08:59:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6473.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Jul 2003 07:25:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 07:25:00 GMT]]></title><description><![CDATA[<p>Ich habe mir eine eigene header geschreiben mit funktion die ich öffters mal brauche. Diese habe ich wie immer in meiner Dialog basierten Anwendung benutz. Also ich dann aber einen 2 Dialog erstellte in dem ich auch einer dieser funktion benutzen möchte bekomme ich für jeder funktion die in der header ist einer fehlermeldung:</p>
<p>bereits in TestDlg.obj definiert</p>
<p>Wie kann ich denn das um gehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31447</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 07:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 07:33:00 GMT]]></title><description><![CDATA[<p>Schreib #pragma once oben in die Datei oder mach bei einem Compiler &lt; VC6 Include-Guards.<br />
EDIT: Natürlich im Header!</p>
<p>[ Dieser Beitrag wurde am 05.07.2003 um 09:33 Uhr von <strong>MaSTaH</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31448</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 05 Jul 2003 07:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 10:09:00 GMT]]></title><description><![CDATA[<p>Ich hab #pragma once es hat keinen efekt auf mein problem.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31449</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 10:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 10:14:00 GMT]]></title><description><![CDATA[<p>//Dann schreib oben in den Header:<br />
#ifndef SONSTWAS_H_INCLUDED<br />
#define SONSTWAS_H_INCLUDED</p>
<p>// &lt;&lt;Der Header&gt;&gt;</p>
<p>//Und unten am Ende.<br />
#endif</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31450</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31450</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 05 Jul 2003 10:14:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 10:37:00 GMT]]></title><description><![CDATA[<p>Sry aber es hat nicht geholfen was soll eigenlich das SONSTWAS sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31451</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 10:37:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 11:02:00 GMT]]></title><description><![CDATA[<p>Irgendein Name. Von deinem Header z.B. Poste doch mal den Code von deinem Header</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31452</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 05 Jul 2003 11:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 12:16:00 GMT]]></title><description><![CDATA[<p>ok:</p>
<pre><code class="language-cpp">#ifndef MEINECKE_H_INCLUDED
#define MEINECKE_H_INCLUDED

#include &lt;atlbase.h&gt;

void SaveKey(HKEY pfad,CString dir,CString keyreg,CString zeichenfolge)
{
    CRegKey key;
    key.Create(pfad,dir);
    key.SetValue(zeichenfolge, keyreg);
    key.Close();
};

long CheckKey(HKEY pfad,CString dir,CString keyreg)
{
    long uebergabe;

    // -1 = pfad oder dir ist falsch
    //  0 = nur key ist falsch
    //  1 = alles richtig

    char checkreg[256];
    DWORD dwCount = sizeof(checkreg);

    CRegKey key;
    if(key.Open( pfad, dir) == ERROR_FILE_NOT_FOUND)
    {
        uebergabe = -1;
    }
    else
    {
            if(key.QueryValue(checkreg, keyreg, &amp;dwCount) == ERROR_FILE_NOT_FOUND)
            {
                uebergabe = 0;
            }
            else
            {
                uebergabe = 1;
            }
    }
    key.Close();

    return (uebergabe);
};

CString ReadKey(HKEY pfad,CString dir,CString keyreg)
{
    CString uebergabe = &quot;&quot;;

    // 0 = Pfad wurde nicht gefunden

    long checkregs = CheckKey(pfad, dir, keyreg);

    if (checkregs == 1)
    {
            char checkreg[256];
            DWORD dwCount = sizeof(checkreg);

            CRegKey key;
            key.Open( pfad, dir);
            key.QueryValue(checkreg, keyreg, &amp;dwCount);
            key.Close();

            uebergabe = checkreg;
    }

    return (uebergabe);
};

CString OpenDirDlg()
{
    CString uebergabe;

    BROWSEINFO bi;
    TCHAR   szDisplayName[MAX_PATH];
    TCHAR path[MAX_PATH];
    LPITEMIDLIST    pidl;
    LPMALLOC  pMalloc = NULL;
    ZeroMemory(&amp;bi, sizeof(bi));
    bi.hwndOwner = NULL;
    bi.pszDisplayName = szDisplayName;
    bi.lpszTitle = TEXT(&quot;Ordner Wählen&quot;);
    bi.ulFlags = BIF_RETURNONLYFSDIRS;
    pidl = SHBrowseForFolder(&amp;bi);

    if ( pidl != 0 )
    {
        if ( SHGetPathFromIDList ( pidl, path ) );

        IMalloc * imalloc = 0;
        if ( SUCCEEDED( SHGetMalloc ( &amp;imalloc )) )
        {
            imalloc-&gt;Free ( pidl );
            imalloc-&gt;Release ( );
        }

        uebergabe = path;
    }
    else
    {
        uebergabe = path;
        uebergabe = &quot;&quot;;
    }

    return(uebergabe);
};

#endif
</code></pre>
<p>Wenn ihr lust habe könnt ihr auch verbesserungen Posten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31453</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 12:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 12:19:00 GMT]]></title><description><![CDATA[<p>Funktionen haben in Headerdateien nicht verloren<br />
In MFC verwenden wir Grundsätzlich nur Klassen und deine Funktionen kommen nicht aus einer Klasse.</p>
<p>[ Dieser Beitrag wurde am 05.07.2003 um 14:20 Uhr von <strong>Unix-Tom</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31454</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Sat, 05 Jul 2003 12:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 12:36:00 GMT]]></title><description><![CDATA[<p>Is doch unwichtig aber das hat gu funktioniert BIS ich einen 2 Dialog benutz habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31455</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31455</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 12:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 13:32:00 GMT]]></title><description><![CDATA[<p>Ist ja klar das es geht da es Globale Funktionen sind.</p>
<p>Jetzt die Frage:<br />
Was bedeutet Global ?</p>
<p>Du wolltest Verbesserungen also warum kritisiert du sie dann.<br />
Wenn du dich an ein Klassenkonzept halten würdest wäre diese Frage unnötig da es dann mit der</p>
<p>#ifndef MEINECKE_H_INCLUDED<br />
#define MEINECKE_H_INCLUDED</p>
<p>#endif</p>
<p>funktionieren würde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31456</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31456</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Sat, 05 Jul 2003 13:32:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 13:48:00 GMT]]></title><description><![CDATA[<p>Ich weis was globale und lokale Funktionen sind. Nur das es meine 1. header ist weis ich nicht genau wie ich das anfangen soll bis heute dache ich auch das ich alles richig gemacht haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31457</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 13:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 15:35:00 GMT]]></title><description><![CDATA[<p>Mach dir nen namespace oder ne Klasse CRegistry</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31458</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31458</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 05 Jul 2003 15:35:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sat, 05 Jul 2003 15:42:00 GMT]]></title><description><![CDATA[<p>Sry soweit bin ich noch nicht wie macht man das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31459</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sat, 05 Jul 2003 15:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sun, 06 Jul 2003 08:46:00 GMT]]></title><description><![CDATA[<p>kann mit den keiner helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31460</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sun, 06 Jul 2003 08:46:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sun, 06 Jul 2003 09:08:00 GMT]]></title><description><![CDATA[<p>Schau mal in die FAQ von C++. Dort findets du viele Bsp. von Klassen.<br />
Oder du besorgst dir ein Buch welches die Grundlagen von C++ enthält.<br />
Letzteres finde ich in deinem Fall besser.<br />
Du solltest dir vor Augen halten, daß man ohne Grundlagen nicht Programmieren kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31461</guid><dc:creator><![CDATA[Unix-Tom]]></dc:creator><pubDate>Sun, 06 Jul 2003 09:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene h Problem on Sun, 06 Jul 2003 13:44:00 GMT]]></title><description><![CDATA[<p>Ja tool das hilft mir jetzt auch nich weiter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31462</guid><dc:creator><![CDATA[Die+]]></dc:creator><pubDate>Sun, 06 Jul 2003 13:44:00 GMT</pubDate></item></channel></rss>