<?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[DLL Problem (C++)]]></title><description><![CDATA[<p>Ich habe eine DLL in C++ geschrieben und die funktioniert Perfekt!<br />
Source:</p>
<p>dll.h:</p>
<pre><code class="language-cpp">#ifndef _DLL_H_
#define _DLL_H_

#define export extern &quot;C&quot; __declspec (dllexport)

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

class DLLIMPORT DllClass
{
  public:
    DllClass();
    virtual ~DllClass(void);

  private:

};

#endif /* _DLL_H_ */
</code></pre>
<p>dllmain.cpp:</p>
<pre><code class="language-cpp">#include &quot;dll.h&quot;
#include &lt;windows.h&gt;

export double readonly(PCHAR Path,double Choice)
{
       if (Choice == 0)
       {
                 return SetFileAttributes(Path,FILE_ATTRIBUTE_NORMAL); 
       }
       if (Choice == 1)
       {
                 return SetFileAttributes(Path,FILE_ATTRIBUTE_READONLY); 
       }
}
</code></pre>
<p>Alles klar soweit, aber ich muss eine DLL haben die nicht SetFileAttributes(Path,FILE_ATTRIBUTE_READONLY); macht sondern ein neues(zweites) Fenster macht.<br />
Den Code für ein Fenster hab ich ja, aber es funktioniert nicht wenn ich es in einne DLL schreibe.</p>
<p><strong>Bitte helft mir!<br />
Wen es interessiert: es ist eine DLL für ein Programm namens &quot;Game Maker&quot;</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154733/dll-problem-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 15:50:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154733.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Jul 2006 08:20:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DLL Problem (C++) on Sun, 30 Jul 2006 08:20:57 GMT]]></title><description><![CDATA[<p>Ich habe eine DLL in C++ geschrieben und die funktioniert Perfekt!<br />
Source:</p>
<p>dll.h:</p>
<pre><code class="language-cpp">#ifndef _DLL_H_
#define _DLL_H_

#define export extern &quot;C&quot; __declspec (dllexport)

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

class DLLIMPORT DllClass
{
  public:
    DllClass();
    virtual ~DllClass(void);

  private:

};

#endif /* _DLL_H_ */
</code></pre>
<p>dllmain.cpp:</p>
<pre><code class="language-cpp">#include &quot;dll.h&quot;
#include &lt;windows.h&gt;

export double readonly(PCHAR Path,double Choice)
{
       if (Choice == 0)
       {
                 return SetFileAttributes(Path,FILE_ATTRIBUTE_NORMAL); 
       }
       if (Choice == 1)
       {
                 return SetFileAttributes(Path,FILE_ATTRIBUTE_READONLY); 
       }
}
</code></pre>
<p>Alles klar soweit, aber ich muss eine DLL haben die nicht SetFileAttributes(Path,FILE_ATTRIBUTE_READONLY); macht sondern ein neues(zweites) Fenster macht.<br />
Den Code für ein Fenster hab ich ja, aber es funktioniert nicht wenn ich es in einne DLL schreibe.</p>
<p><strong>Bitte helft mir!<br />
Wen es interessiert: es ist eine DLL für ein Programm namens &quot;Game Maker&quot;</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106974</guid><dc:creator><![CDATA[BlueFlame]]></dc:creator><pubDate>Sun, 30 Jul 2006 08:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to DLL Problem (C++) on Sun, 30 Jul 2006 08:53:15 GMT]]></title><description><![CDATA[<p><a href="http://www.lugbz.org/documents/smart-questions_de.html" rel="nofollow">Smart Questions</a></p>
<p>Greetz, Swordfish</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106990</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Sun, 30 Jul 2006 08:53:15 GMT</pubDate></item></channel></rss>