<?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[MSXML]]></title><description><![CDATA[<p>Hallo Allerseits</p>
<p>Folgendes Problem: Ich muss eine XML Datei auseinanderpflücken (verschiedene werte aus der Datei in variablen speichern). In der Datei sollen definierte Settings gespeichert werden...</p>
<p>Nun hab ich mich für MSXML entschieden, was es gratis downzuloaden gibt...</p>
<p>Und hier ligt das Problem: Wie binde ich nun die DLL ein? MSDN und das &quot;FAQ WinAPI&quot; meinen in etwas folgendes:</p>
<pre><code class="language-cpp">#import &quot;msxml4.dll&quot;
using namespace MSXML2;
</code></pre>
<p>Also hab' ich msxml4.dll in den Projektordner kopiert und einfach mal folgendes Probiert:</p>
<pre><code class="language-cpp">#include &lt;tchar.h&gt;
#include &lt;windows.h&gt;
#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;winbase.h&gt;

#import &quot;msxml4.dll&quot;
using namespace MSXML2;

using namespace std;

int main(int argc, char *argv[]) {
  /*HINSTANCE hLib=LoadLibrary(&quot;msxml4.dll&quot;);
  if(hLib==NULL) {
    cout &lt;&lt; &quot;Unable to load library!&quot; &lt;&lt; endl;
    getch();
    return EXIT_SUCCESS;
  }
  else {
    cout &lt;&lt; &quot;Library loaded!&quot; &lt;&lt; endl;
  }*/
  getch();
  return EXIT_SUCCESS;
}
</code></pre>
<p>Dev-C++ meint dazu fas hier:</p>
<pre><code>Compiler: Default compiler
Building Makefile: &quot;E:\ipa\C++\xmltest\Makefile.win&quot;
Executing  make clean
rm -f main.o  xmltest.exe

g++.exe -c main.cpp -o main.o -I&quot;lib/gcc/mingw32/3.4.2/include&quot;  -I&quot;include/c++/3.4.2/backward&quot;  -I&quot;include/c++/3.4.2/mingw32&quot;  -I&quot;include/c++/3.4.2&quot;  -I&quot;include&quot;   

In file included from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31,
                 from main.cpp:3:
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the &lt;X&gt; header for the &lt;X.h&gt; header for C++ includes, or &lt;iostream&gt; instead of the deprecated header &lt;iostream.h&gt;. To disable this warning use -Wno-deprecated.
In file included from main.cpp:8:

msxml4.dll:1: error: stray '\144' in program
In file included from main.cpp:8:
msxml4.dll:1:4: warning: null character(s) ignored
msxml4.dll:1: error: stray '\3' in program
msxml4.dll:1:6: warning: null character(s) ignored
msxml4.dll:1: error: stray '\4' in program
msxml4.dll:1:10: warning: null character(s) ignored
msxml4.dll:1: error: stray '\255' in program

msxml4.dll:1: error: stray '\255' in program
msxml4.dll:1:15: warning: null character(s) ignored
msxml4.dll:1: error: stray '\184' in program
msxml4.dll:1:18: warning: null character(s) ignored
msxml4.dll:1:26: warning: null character(s) ignored
msxml4.dll:1: error: stray '@' in program
msxml4.dll:1: error: stray '\248' in program
msxml4.dll:1:62: warning: null character(s) ignored
msxml4.dll:1: error: stray '\14' in program
msxml4.dll:1: error: stray '\31' in program
msxml4.dll:1: error: stray '\186' in program
msxml4.dll:1: error: stray '\14' in program
msxml4.dll:1:69: warning: null character(s) ignored
msxml4.dll:1: error: stray '\180' in program
msxml4.dll:1: error: stray '\205' in program
msxml4.dll:1: error: expected constructor, destructor, or type conversion before '!' token
msxml4.dll:1: error: expected `,' or `;' before '!' token
msxml4.dll:1: error: stray '\184' in program
msxml4.dll:1: error: stray '\1' in program

msxml4.dll:1: error: stray '\205' in program
msxml4.dll:3:2: warning: null character(s) ignored
msxml4.dll:3: error: stray '\169' in program

msxml4.dll:3: error: stray '\249' in program
msxml4.dll:3: error: stray '\167' in program
msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program

msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: stray '\249' in program
msxml4.dll:3: error: stray '\192' in program
msxml4.dll:3: error: stray '\202' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: expected declaration before '}' token

make.exe: *** [main.o] Error 1

Execution terminated
</code></pre>
<p>Hat damit jemand Erfahrung?</p>
<p>Gruss und Kuss <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Der Gast</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/106099/msxml</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 19:04:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/106099.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 Apr 2005 06:16:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MSXML on Wed, 06 Apr 2005 06:16:59 GMT]]></title><description><![CDATA[<p>Hallo Allerseits</p>
<p>Folgendes Problem: Ich muss eine XML Datei auseinanderpflücken (verschiedene werte aus der Datei in variablen speichern). In der Datei sollen definierte Settings gespeichert werden...</p>
<p>Nun hab ich mich für MSXML entschieden, was es gratis downzuloaden gibt...</p>
<p>Und hier ligt das Problem: Wie binde ich nun die DLL ein? MSDN und das &quot;FAQ WinAPI&quot; meinen in etwas folgendes:</p>
<pre><code class="language-cpp">#import &quot;msxml4.dll&quot;
using namespace MSXML2;
</code></pre>
<p>Also hab' ich msxml4.dll in den Projektordner kopiert und einfach mal folgendes Probiert:</p>
<pre><code class="language-cpp">#include &lt;tchar.h&gt;
#include &lt;windows.h&gt;
#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;
#include &lt;conio.h&gt;
#include &lt;winbase.h&gt;

#import &quot;msxml4.dll&quot;
using namespace MSXML2;

using namespace std;

int main(int argc, char *argv[]) {
  /*HINSTANCE hLib=LoadLibrary(&quot;msxml4.dll&quot;);
  if(hLib==NULL) {
    cout &lt;&lt; &quot;Unable to load library!&quot; &lt;&lt; endl;
    getch();
    return EXIT_SUCCESS;
  }
  else {
    cout &lt;&lt; &quot;Library loaded!&quot; &lt;&lt; endl;
  }*/
  getch();
  return EXIT_SUCCESS;
}
</code></pre>
<p>Dev-C++ meint dazu fas hier:</p>
<pre><code>Compiler: Default compiler
Building Makefile: &quot;E:\ipa\C++\xmltest\Makefile.win&quot;
Executing  make clean
rm -f main.o  xmltest.exe

g++.exe -c main.cpp -o main.o -I&quot;lib/gcc/mingw32/3.4.2/include&quot;  -I&quot;include/c++/3.4.2/backward&quot;  -I&quot;include/c++/3.4.2/mingw32&quot;  -I&quot;include/c++/3.4.2&quot;  -I&quot;include&quot;   

In file included from C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31,
                 from main.cpp:3:
C:/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the &lt;X&gt; header for the &lt;X.h&gt; header for C++ includes, or &lt;iostream&gt; instead of the deprecated header &lt;iostream.h&gt;. To disable this warning use -Wno-deprecated.
In file included from main.cpp:8:

msxml4.dll:1: error: stray '\144' in program
In file included from main.cpp:8:
msxml4.dll:1:4: warning: null character(s) ignored
msxml4.dll:1: error: stray '\3' in program
msxml4.dll:1:6: warning: null character(s) ignored
msxml4.dll:1: error: stray '\4' in program
msxml4.dll:1:10: warning: null character(s) ignored
msxml4.dll:1: error: stray '\255' in program

msxml4.dll:1: error: stray '\255' in program
msxml4.dll:1:15: warning: null character(s) ignored
msxml4.dll:1: error: stray '\184' in program
msxml4.dll:1:18: warning: null character(s) ignored
msxml4.dll:1:26: warning: null character(s) ignored
msxml4.dll:1: error: stray '@' in program
msxml4.dll:1: error: stray '\248' in program
msxml4.dll:1:62: warning: null character(s) ignored
msxml4.dll:1: error: stray '\14' in program
msxml4.dll:1: error: stray '\31' in program
msxml4.dll:1: error: stray '\186' in program
msxml4.dll:1: error: stray '\14' in program
msxml4.dll:1:69: warning: null character(s) ignored
msxml4.dll:1: error: stray '\180' in program
msxml4.dll:1: error: stray '\205' in program
msxml4.dll:1: error: expected constructor, destructor, or type conversion before '!' token
msxml4.dll:1: error: expected `,' or `;' before '!' token
msxml4.dll:1: error: stray '\184' in program
msxml4.dll:1: error: stray '\1' in program

msxml4.dll:1: error: stray '\205' in program
msxml4.dll:3:2: warning: null character(s) ignored
msxml4.dll:3: error: stray '\169' in program

msxml4.dll:3: error: stray '\249' in program
msxml4.dll:3: error: stray '\167' in program
msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program

msxml4.dll:3: error: stray '\200' in program
msxml4.dll:3: error: stray '\151' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: stray '\249' in program
msxml4.dll:3: error: stray '\192' in program
msxml4.dll:3: error: stray '\202' in program
msxml4.dll:3: error: stray '\244' in program
msxml4.dll:3: error: expected declaration before '}' token

make.exe: *** [main.o] Error 1

Execution terminated
</code></pre>
<p>Hat damit jemand Erfahrung?</p>
<p>Gruss und Kuss <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Der Gast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/760786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/760786</guid><dc:creator><![CDATA[Der Gast]]></dc:creator><pubDate>Wed, 06 Apr 2005 06:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to MSXML on Wed, 06 Apr 2005 08:07:40 GMT]]></title><description><![CDATA[<p>Der Gast schrieb:</p>
<blockquote>
<p>Und hier ligt das Problem: Wie binde ich nun die DLL ein? MSDN und das &quot;FAQ WinAPI&quot; meinen in etwas folgendes:</p>
</blockquote>
<p>primär mal gar nicht. du bräuchtest dazu eine bibilothek (*.lib oder *.a)<br />
oder du lädst die dll dynmisch mittels<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/loadlibrary.asp</a><br />
und<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocaddress.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/getprocaddress.asp</a></p>
<p>Der Gast schrieb:</p>
<blockquote>
<pre><code class="language-cpp">#import &quot;msxml4.dll&quot;
</code></pre>
</blockquote>
<p>wo hast diese direktive her?</p>
<p>zu deinem code.<br />
iostream.h und stdio.h sind veraltet<br />
<a href="http://fara.cs.uni-potsdam.de/~kaufmann/?page=GenCppFaqs&amp;faq=iostream#Answ" rel="nofollow">http://fara.cs.uni-potsdam.de/~kaufmann/?page=GenCppFaqs&amp;faq=iostream#Answ</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/760853</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/760853</guid><dc:creator><![CDATA[miller_m]]></dc:creator><pubDate>Wed, 06 Apr 2005 08:07:40 GMT</pubDate></item></channel></rss>