<?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[GetComputerName funzt bei W2000 nicht]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code class="language-cpp">char szUserName[256];
DWORD BuffSize = 255;
char szComputerName[MAX_COMPUTERNAME_LENGTH+1];
BuffSize = MAX_COMPUTERNAME_LENGTH+1;

if(!GetUserName(szUserName,&amp;BuffSize)){
ShowMessage(&quot;Fehler bei GetUserName&quot;);return;
}
if(!GetComputerName(szComputerName,&amp;BuffSize)){
ShowMessage(&quot;Fehler bei GetComputerName&quot;);return;//hier kommt Fehler bei W2000
}
</code></pre>
<p>Bei meinem Wxp gibt es hier keine Probleme - Bei einem anderen Rechner(W2000) hat es leider nicht geklappt.<br />
Woran liegt das?</p>
<p>Gruß<br />
arne</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/100592/getcomputername-funzt-bei-w2000-nicht</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 18:49:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/100592.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Feb 2005 16:53:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to GetComputerName funzt bei W2000 nicht on Tue, 08 Feb 2005 16:53:13 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<pre><code class="language-cpp">char szUserName[256];
DWORD BuffSize = 255;
char szComputerName[MAX_COMPUTERNAME_LENGTH+1];
BuffSize = MAX_COMPUTERNAME_LENGTH+1;

if(!GetUserName(szUserName,&amp;BuffSize)){
ShowMessage(&quot;Fehler bei GetUserName&quot;);return;
}
if(!GetComputerName(szComputerName,&amp;BuffSize)){
ShowMessage(&quot;Fehler bei GetComputerName&quot;);return;//hier kommt Fehler bei W2000
}
</code></pre>
<p>Bei meinem Wxp gibt es hier keine Probleme - Bei einem anderen Rechner(W2000) hat es leider nicht geklappt.<br />
Woran liegt das?</p>
<p>Gruß<br />
arne</p>
]]></description><link>https://www.c-plusplus.net/forum/post/717935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/717935</guid><dc:creator><![CDATA[Hallo!]]></dc:creator><pubDate>Tue, 08 Feb 2005 16:53:13 GMT</pubDate></item><item><title><![CDATA[Reply to GetComputerName funzt bei W2000 nicht on Tue, 08 Feb 2005 17:05:59 GMT]]></title><description><![CDATA[<p>Siehe GetLastError().</p>
]]></description><link>https://www.c-plusplus.net/forum/post/717950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/717950</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 08 Feb 2005 17:05:59 GMT</pubDate></item><item><title><![CDATA[Reply to GetComputerName funzt bei W2000 nicht on Tue, 08 Feb 2005 17:06:10 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=437" rel="nofollow">Jansen</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=2" rel="nofollow">Borland C++ Builder (VCL/CLX)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/717952</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/717952</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 08 Feb 2005 17:06:10 GMT</pubDate></item></channel></rss>