<?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[problem mit netbeans und openfile]]></title><description><![CDATA[<p>Ich bin ganz neu in c++ und komme von visual basic.</p>
<p>Ich habe, da sehr viel mit der bass.dll gearbeitet nur leider ist mir vb zu wenig leistungsstark und deshalb steige ich jetzt um bin aber hier noch ganz in den anfängen. Im moment benutze ich NetBeans c++ als entwicklungsumgebung jedoch noch als zwischen frage meint ihr das ist gut? oder was würdet ihr entfehlen?</p>
<p>Jetzt zur eigentlichen Frage ich bekomme bei diesem Code:</p>
<pre><code class="language-cpp">ZeroMemory(&amp;ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.lpstrFile = szFile;
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = &quot;All\0*.*\0Text\0*.TXT\0&quot;;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;

//openfile anzeigen

if (GetOpenFileName(&amp;ofn)==TRUE)
    hf = CreateFile(ofn.lpstrFile, GENERIC_READ,
        0, (LPSECURITY_ATTRIBUTES) NULL,
        OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
        (HANDLE) NULL);
}
</code></pre>
<p>diesen fehler:</p>
<pre><code>C:\Users\Florian\Documents\NetBeansProjects\OpenFile/main.cpp:38: undefined reference to `GetOpenFileNameA@4'
</code></pre>
<p>jedoch vermute ich es liegt daran, dass dies hier nicht eingebunden ist: lcomdlg32</p>
<p>denn in visual studio funktioniert das tadellos und da ist das eben eingebunden.</p>
<p>jetzt meine frage wie binde ich das in netbeans beim linker ein? oder wie heißt das dort weil ich finde das nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>danke schon mal im voraus</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/278239/problem-mit-netbeans-und-openfile</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 12:44:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/278239.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Dec 2010 13:42:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 13:42:51 GMT]]></title><description><![CDATA[<p>Ich bin ganz neu in c++ und komme von visual basic.</p>
<p>Ich habe, da sehr viel mit der bass.dll gearbeitet nur leider ist mir vb zu wenig leistungsstark und deshalb steige ich jetzt um bin aber hier noch ganz in den anfängen. Im moment benutze ich NetBeans c++ als entwicklungsumgebung jedoch noch als zwischen frage meint ihr das ist gut? oder was würdet ihr entfehlen?</p>
<p>Jetzt zur eigentlichen Frage ich bekomme bei diesem Code:</p>
<pre><code class="language-cpp">ZeroMemory(&amp;ofn, sizeof(OPENFILENAME));
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hwnd;
ofn.lpstrFile = szFile;
ofn.nMaxFile = sizeof(szFile);
ofn.lpstrFilter = &quot;All\0*.*\0Text\0*.TXT\0&quot;;
ofn.nFilterIndex = 1;
ofn.lpstrFileTitle = NULL;
ofn.nMaxFileTitle = 0;
ofn.lpstrInitialDir = NULL;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST;

//openfile anzeigen

if (GetOpenFileName(&amp;ofn)==TRUE)
    hf = CreateFile(ofn.lpstrFile, GENERIC_READ,
        0, (LPSECURITY_ATTRIBUTES) NULL,
        OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,
        (HANDLE) NULL);
}
</code></pre>
<p>diesen fehler:</p>
<pre><code>C:\Users\Florian\Documents\NetBeansProjects\OpenFile/main.cpp:38: undefined reference to `GetOpenFileNameA@4'
</code></pre>
<p>jedoch vermute ich es liegt daran, dass dies hier nicht eingebunden ist: lcomdlg32</p>
<p>denn in visual studio funktioniert das tadellos und da ist das eben eingebunden.</p>
<p>jetzt meine frage wie binde ich das in netbeans beim linker ein? oder wie heißt das dort weil ich finde das nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>danke schon mal im voraus</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989040</guid><dc:creator><![CDATA[thefiloe]]></dc:creator><pubDate>Thu, 02 Dec 2010 13:42:51 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 14:00:57 GMT]]></title><description><![CDATA[<p>Die IDE die Du verwendest ist Geschmacks sache... ich verwende Eclipse weils das fuer alle moeglichen plattformen gibt und viele coole Gimmiks hat. Fuer kleinere Sachen reicht aber oft auch schon vi.... Warum also nicht netbeans? das kann dir niemand beantworten musst Du mal sehen womit du schneller arbeiten kannst.</p>
<p>Zu deineme Problem: Du musst die header mit #include einbinden und dann irgendwo den Pfad angeben du kannst das bestimmt irgendwie auch per commandozeile einbinden<br />
das waere dann -llcomdlg32<br />
aber wo genau das bei netbeans ist kann ich nicht sagen. Das sollte aber nciht besonders versteckt sein da man sowas ja doch recht regelmaessig braucht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989048</guid><dc:creator><![CDATA[muli]]></dc:creator><pubDate>Thu, 02 Dec 2010 14:00:57 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 14:11:04 GMT]]></title><description><![CDATA[<p>thefiloe schrieb:</p>
<blockquote>
<p>...komme von visual basic...in visual studio funktioniert das tadellos...</p>
</blockquote>
<p>Ungeachtet das ich NetBeans nie für C++ verwendet habe, wundere ich mich das du nicht beim Visual Studio geblieben bist, wenn du dich damit auskennst. Unter Windows werden in der Regel Visual Studio (bzw. Visual C++ Express) oder Code::Blocks empfohlen (Für die Windows-API Entwicklung würde ich eher zu ersteren greifen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989059</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Thu, 02 Dec 2010 14:11:04 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 15:15:51 GMT]]></title><description><![CDATA[<p>ich besitzte natürlich das professional aber finde netbeans irgendwie angenehmer und 2. habe ich es mit dem command -.... schon früher versucht funktioniert aber nie... ich habe schon eine andere lib eingebunden diese ist aber nicht standartmäßig sondern von bass.dll.</p>
<p>Ich habe jetzt das hier zur verfügung:</p>
<p><a href="http://s10.directupload.net/images/101202/sebry3o2.png" rel="nofollow">http://s10.directupload.net/images/101202/sebry3o2.png</a></p>
<p>oder anderst weiß jemand wo ich den compile command sehe? dan könnte ich auch einfach</p>
<p>-lcomdlg32</p>
<p>hinzufügen nur ich finde mich in netbeans was das anbelangt einfach nicht zurecht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989082</guid><dc:creator><![CDATA[thefiloe]]></dc:creator><pubDate>Thu, 02 Dec 2010 15:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 15:15:23 GMT]]></title><description><![CDATA[<p>Und unter Input -&gt; &quot;Additional dependencies&quot; trägst du nun Comdlg32.lib EDIT: bzw. nur Comdlg32 ein.</p>
<p>Btw: Von einem VS pro würde ich mich nicht so schnell trennen wollen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989126</guid><dc:creator><![CDATA[Vicious Falcon]]></dc:creator><pubDate>Thu, 02 Dec 2010 15:15:23 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit netbeans und openfile on Thu, 02 Dec 2010 15:56:10 GMT]]></title><description><![CDATA[<p>ok habs jetzt entgültig es muss das -lcomdlg32 hinten dran das macht man bei linker -&gt; libarys -&gt; Add Option -&gt; dann other und im textfeld eben -lcomdlg32 eingeben</p>
<p>aber noch eine Frage wie bekomm ich das jetzt so hin, dass wenn ich jetzt von mir aus als Pfad C:\Datei.mp3 habe muss ich ja anstatt dem \ ein \\ einfügen wie geht das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1989135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1989135</guid><dc:creator><![CDATA[thefiloe]]></dc:creator><pubDate>Thu, 02 Dec 2010 15:56:10 GMT</pubDate></item></channel></rss>