<?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[Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso???]]></title><description><![CDATA[<p>hi,<br />
ich habe hier zu hause am rechner ein paar spielchen und andere anwendungen geschrieben und wollte diese meien info lehrer zeigen da der aber nur win98 auf dem rechner hat in der schule sind zB. die opengl anwendungen nicht korrekt dargestellt oder tasten funktionieren nicht.... was kann ich daran aendern? ne linker einstellung aendern oder waS???<br />
fuer hilfe waer ich dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/158111/kompatibilitätsfrage-von-winxp-geschrieben-programmen-auf-win98-laufen-nicht-richtig-wieso</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 13:38:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/158111.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 01 Sep 2006 13:44:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Fri, 01 Sep 2006 13:44:52 GMT]]></title><description><![CDATA[<p>hi,<br />
ich habe hier zu hause am rechner ein paar spielchen und andere anwendungen geschrieben und wollte diese meien info lehrer zeigen da der aber nur win98 auf dem rechner hat in der schule sind zB. die opengl anwendungen nicht korrekt dargestellt oder tasten funktionieren nicht.... was kann ich daran aendern? ne linker einstellung aendern oder waS???<br />
fuer hilfe waer ich dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1129164</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129164</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 01 Sep 2006 13:44:52 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Fri, 01 Sep 2006 14:14:43 GMT]]></title><description><![CDATA[<p>WOOOOW! Es gibt außer mir noch Leute, die Win98 nutzen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> Und sogar Lehrer.</p>
<p>Zu Deinem Problem- ich habe nämlich das gleiche: Das hängt vom Compiler ab. VC2005 ist auf XP-Programme voreingestellt. (Ich habe schon im Forum gefragt, wie man das ändern könnte, aber keine Antwort bekommen.) Die laufen unter '98 nicht, weil schon die Datenbreite für Zeiger oder verschiedene Variablentypen unterschiedlich ist.</p>
<p>Im Zweifelsfall nimmst Du erstmal einen älteren Compiler.</p>
<p>Dann gibt es meistens noch Probleme mit der UNICODE-Definierung und den zugehörigen anderen Typenbezeichnern im Quellcode (z. B. TCHAR statt einfach nur char o.ä.).</p>
<p>Poste mal ein Quellcode- Beispiel, dann läßt es sich vielleicht einfacher erklären</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1129187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129187</guid><dc:creator><![CDATA[Elektronix]]></dc:creator><pubDate>Fri, 01 Sep 2006 14:14:43 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Fri, 01 Sep 2006 21:27:45 GMT]]></title><description><![CDATA[<p>hmmm... naja.. denn ganzen code ok... also ich soll den code so erweitern das der lehrer den unteren klassen an hand von simplen beispielen von geometrischen formen wie, kegeln, quader ect. den das veranschaulichen will aus diesem grund wollte ich des per openGL machen... das ja nun leider net so auf `98 läuft... der code erst mal...</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;windows.h&gt;
#include &lt;GL\gl.h&gt;
#include &lt;GL\glu.h&gt;
#include &lt;GL\glaux.h&gt;
#include &lt;conio.h &gt;
#include &quot;open.h&quot;

const char szAppName[] = &quot;OpenGL&quot;;

bool fullscreen = false;
bool active = true;
bool keys[256];
bool shot = false;

void ReSizeGL( GLsizei width, GLsizei height );
void KillGL();
void DrawFighter( float&amp;, float&amp; );
void LoadTexture();

int InitGL();
int DrawGL();
int Shoots( float &amp;xPos, float &amp;yPos );

unsigned int texture[2];

bool CreateGL( const char *title, int width, int height, int bits, bool mode );

HINSTANCE hInstance;
HWND hWnd;
HDC hDC;
HGLRC hRC;

bool CALLBACK Dialog1Proc( HWND, UINT, WPARAM, LPARAM );
LRESULT CALLBACK WinProc( HWND, UINT, WPARAM, LPARAM );

struct object {

    float cx, cy;   // momentane posi
    float mx, my;   //
};

struct object player;

WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
                int nCmdShow ) {

    MSG msg;
    bool quit = false;

    CreateGL( &quot; SpaceWar 2D! &quot;, 640, 480, 32, fullscreen );

    while( !quit ) {

        if( PeekMessage( &amp;msg, 0, 0, 0, PM_REMOVE ) ) {

            if( msg.message == WM_QUIT ) {

                quit = true;
            }
            else {

                TranslateMessage( &amp;msg );
                DispatchMessage( &amp;msg );
            }
        }
        else {

            if( active ) {

                if( keys[VK_ESCAPE] ) {

                    quit = true;
                }
                else {

                    DrawGL();
                    SwapBuffers( hDC );
                }

                if( keys[VK_F1] ) {

                    keys[VK_F1] = false;
                    KillGL();
                    fullscreen = !fullscreen;

                    if( fullscreen ) {

                        CreateGL( &quot; SpaceWar 2D! &quot;, 1024, 768, 32, fullscreen );
                        SetMenu( hWnd, 0 );
                    }
                    else {

                        CreateGL( &quot; SpaceWar 2D! &quot;, 640, 480, 32, fullscreen );
                    }
                }

                if( keys[ VK_UP ] ) {

                    if( !( fullscreen ) ) {

                        if( !( player.my &gt; 2.8f ) ) {

                            player.my += 0.0019f;
                        }
                        else if( player.my &gt; 2.8f ) {

                            player.my = 2.8f;
                        }
                    }
                    else if( ( fullscreen ) ) {

                        if( !( player.my &gt; 3.6f ) ) {

                            player.my += 0.002f;
                        }
                    }
                }

                if( keys[ VK_DOWN ] ) {

                    if( !( fullscreen ) ) {

                        if( !( player.my &lt; -3.7f ) ) {

                            player.my -= 0.0019f;
                        }
                    }
                    else if( ( fullscreen ) ) {

                        if( !( player.my &lt; -3.7f ) ) {

                            player.my -= 0.002f;
                        }
                    }
                }

                if( keys[ VK_SPACE ] ) {

                    shot = true;
                 }
            }
        }
    }
    KillGL();
    return msg.wParam;
}

void ReSizeGL( GLsizei width, GLsizei height ) {

    if( height == 0 ) {

        height = 1;
    }

    glViewport( 0, 0, width, height );
    glMatrixMode( GL_PROJECTION );
    glLoadIdentity();

    gluPerspective( 45.0f, (float) width / (float) height, 0.1f, 100.0f );

    glMatrixMode( GL_MODELVIEW );
    glLoadIdentity();
}

int InitGL() {

    LoadTexture();

    glClearColor( 0.0f, 0.0f, 0.0f, 0.0f );
    glClearDepth( 1.0f );
    glDepthFunc( GL_LEQUAL );
    glShadeModel( GL_SMOOTH );
    glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST );

    glEnable( GL_DEPTH_TEST );
    glEnable( GL_TEXTURE_2D );

    return 0;
}

void LoadTexture() {

    AUX_RGBImageRec *TextureImage[2];
    memset( &amp;TextureImage, 0, sizeof( void* ) *1 );

    TextureImage[0] = auxDIBImageLoad( &quot;Bmp/player.bmp&quot; );
    TextureImage[1] = auxDIBImageLoad( &quot;Bmp/blaster.bmp&quot; );

    glGenTextures( 2, &amp;texture[0] );

    glBindTexture( GL_TEXTURE_2D, texture[0] );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
                     GL_LINEAR_MIPMAP_LINEAR );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
                     GL_LINEAR_MIPMAP_LINEAR );
    gluBuild2DMipmaps( GL_TEXTURE_2D, 3, TextureImage[0] -&gt; sizeX,
                       TextureImage[0] -&gt; sizeY, GL_RGB, GL_UNSIGNED_BYTE,
                       TextureImage[0] -&gt; data );

    glBindTexture( GL_TEXTURE_2D, texture[1] );

    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,
                     GL_LINEAR_MIPMAP_LINEAR );
    glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,
                     GL_LINEAR_MIPMAP_LINEAR );
    gluBuild2DMipmaps( GL_TEXTURE_2D, 3, TextureImage[1] -&gt; sizeX,
                       TextureImage[1] -&gt; sizeY, GL_RGB, GL_UNSIGNED_BYTE,
                       TextureImage[1] -&gt; data );

   for( int i = 0; i &lt; 2; ++i ) {

        if( TextureImage[i] ) {

            if( TextureImage[i] -&gt; data ) {

                free( TextureImage[i] -&gt; data );
            }
            free( TextureImage[i] );
        }
    }
}

int DrawGL() {

    glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
    glLoadIdentity();
    glTranslatef( -5.0f, 0.0f, -10.0f );
    DrawFighter( player.mx, player.my );

    return 0;
}

void KillGL() {

    if( fullscreen ) {

        ChangeDisplaySettings( 0, 0 );
        ShowCursor( true );
    }

    wglMakeCurrent( 0, 0 );
    wglDeleteContext( hRC );
    hRC = 0;

    ReleaseDC( hWnd, hDC );
    hDC = 0;

    DestroyWindow( hWnd );
    hWnd = 0;

    UnregisterClass( szAppName, hInstance );
    hInstance = 0;
}

void DrawFighter( float&amp;, float&amp; ) {

    player.mx = -2.0f;
    player.my = 0.25f;

    glBindTexture( GL_TEXTURE_2D, texture[0] );
    glBegin( GL_QUADS );

     glTexCoord2f( 0.0f, 0.0f ); glVertex2d( player.mx,  player.my );
     glTexCoord2f( 1.0f, 0.0f ); glVertex2d( player.mx + 0.19f,  player.my );
     glTexCoord2f( 1.0f, 1.0f ); glVertex2d( player.mx + 0.19f,  player.my );
     glTexCoord2f( 0.0f, 1.0f ); glVertex2d( player.mx,  player.my );

    glEnd();
    glLoadIdentity();
}

bool CreateGL( const char *title, int width, int height, int bits, bool mode ) {

    unsigned int PixelFormat;
    static RECT wndr;
    DWORD ExStyle;
    DWORD Style;
    WNDCLASS wc;

    hInstance = GetModuleHandle( 0 );
    fullscreen = mode;

        wndr.left = (long) 0;
        wndr.top = (long) 0;
        wndr.right = (long) width;
        wndr.bottom = (long) height;

    wc.lpszClassName = szAppName;
    wc.lpszMenuName = &quot;WINMENU&quot;;
    wc.lpfnWndProc = WinProc;
    wc.hInstance = hInstance;
    wc.hIcon = LoadIcon( 0, IDI_APPLICATION );
    wc.hCursor = LoadCursor( 0, IDC_ARROW );
    wc.hbrBackground = 0;
    wc.cbClsExtra = 0;
    wc.cbWndExtra = 0;
    wc.style = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;

    RegisterClass( &amp;wc );

    if( fullscreen ) {

        DEVMODE dmSettings;
        memset( &amp;dmSettings, 0, sizeof( dmSettings ) );

        dmSettings.dmSize = sizeof( dmSettings );
        dmSettings.dmPelsWidth = width;
        dmSettings.dmPelsHeight = height;
        dmSettings.dmBitsPerPel = bits;
        dmSettings.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;

        ChangeDisplaySettings( &amp;dmSettings, CDS_FULLSCREEN );
    }

    if( fullscreen ) {

        ExStyle = WS_EX_APPWINDOW;
        Style = WS_POPUP;
        ShowCursor( false );
    }
    else {

        ExStyle = WS_EX_APPWINDOW | WS_EX_WINDOWEDGE;
        Style = WS_OVERLAPPEDWINDOW;
    }

    hWnd = CreateWindowEx( ExStyle,
                           szAppName,
                           title,
                           WS_CLIPCHILDREN | WS_CLIPSIBLINGS | Style,
                           0, 0,
                           wndr.right - wndr.left, wndr.bottom - wndr.top,
                           0,
                           0,
                           hInstance,
                           0 );

    static PIXELFORMATDESCRIPTOR pfd = {

        sizeof( PIXELFORMATDESCRIPTOR ),
        1,
        PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER,
        PFD_TYPE_RGBA,
        bits,
        0, 0, 0, 0, 0, 0,
        0,
        0,
        0,
        0, 0, 0, 0,
        32,
        0,
        0,
        PFD_MAIN_PLANE,
        0,
        0, 0, 0
    };

    hDC = GetDC( hWnd );
    PixelFormat = ChoosePixelFormat( hDC, &amp;pfd );
    SetPixelFormat( hDC, PixelFormat, &amp;pfd );

    hRC = wglCreateContext( hDC );
    wglMakeCurrent( hDC, hRC );

    ShowWindow( hWnd, SW_SHOW );
    UpdateWindow( hWnd );

    ReSizeGL( width, height );
    InitGL();

    return true;
}

LRESULT CALLBACK WinProc( HWND hWnd, UINT message, WPARAM wParam,
                          LPARAM lParam ) {

    switch( message ) {

        case WM_ACTIVATE: {

            if( !( HIWORD( wParam ) ) ) {

                active = true;
            }
            else {

                active = false;
            }
            return 0;
        }

        case WM_SIZE: {

            ReSizeGL( LOWORD( lParam ), HIWORD( lParam ) );
            return 0;
        }

        case WM_COMMAND: {

            switch( wParam ) {

                case IDM_MAPPING: {

                    DialogBox( hInstance, MAKEINTRESOURCE( IDD_DIALOG1 ),
                               hWnd, (DLGPROC) Dialog1Proc );
                    return 0;
                }

                case IDM_EXIT: {

                    SendMessage( hWnd, WM_CLOSE, 0, 0 );
                    return 0;
                }

                case IDB_HOOK1: {

                    HWND hbtn1;
                    hbtn1 = GetDlgItem( hWnd, IDB_HOOK1 );
                    SendMessage( hbtn1, BM_SETCHECK, BST_CHECKED, 0 );
                    return 0;
                }
            }
            return 0;
        }

        case WM_SYSCOMMAND: {

            switch( wParam ) {

                case SC_SCREENSAVE:
                case SC_MONITORPOWER:
                return 0;
            }
            break;
        }

        case WM_KEYDOWN: {

            keys[wParam] = true;
            return 0;
        }

        case WM_KEYUP: {

            keys[wParam] = false;
            return 0;
        }

        case WM_CLOSE: {

            PostQuitMessage( 0 );
            return 0;
        }
    }
    return DefWindowProc( hWnd, message, wParam, lParam );
}

bool CALLBACK Dialog1Proc( HWND Dlg1, UINT message, WPARAM wParam,
                           LPARAM lParam ) {

    switch( message ) {

        case WM_INITDIALOG: {

            return true;
        }

        case WM_COMMAND: {

            switch( wParam ) {

                case IDOK: {

                    MessageBox( 0, &quot;Du hast den Sieger Knopf gedrückt&quot;,
                                &quot;Herzlichen Glückwunsch&quot;, MB_OK );
                    EndDialog( Dlg1, IDOK );
                    return true;
                }

                case IDCANCEL: {

                    MessageBox( 0, &quot;Du hast den Verlierer Knopf gedrückt&quot;,
                                &quot;Herzlichen Glückwunsch&quot;, MB_OK );
                    EndDialog( Dlg1, IDCANCEL );
                    return true;
                }
            }
        }
    }
    return false;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1129397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129397</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 01 Sep 2006 21:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Sat, 02 Sep 2006 06:50:05 GMT]]></title><description><![CDATA[<p>Elektronix schrieb:</p>
<blockquote>
<p>Zu Deinem Problem- ich habe nämlich das gleiche: Das hängt vom Compiler ab. VC2005 ist auf XP-Programme voreingestellt. (Ich habe schon im Forum gefragt, wie man das ändern könnte, aber keine Antwort bekommen.)</p>
</blockquote>
<p>Wo? Hab ich wohl übersehene...<br />
Du musst nur<br />
WINVER und _WIN32_WINNT in dein Projekteinstellungen unter &quot;Preprocessor defines&quot; entsprechend setzen!<br />
z.B. Wn98:<br />
_WIN32_WINDOWS=0x0410<br />
WINVER&gt;=0x0410</p>
<p>Elektronix schrieb:</p>
<blockquote>
<p>Die laufen unter '98 nicht, weil schon die Datenbreite für Zeiger oder verschiedene Variablentypen unterschiedlich ist.</p>
</blockquote>
<p>Wo hast Du denn das her! Wenn Du ein x86 Programm erstellst, dann ist es immer gleich egal ob dies für Win98 oder Vista erstellt wurde!</p>
<p>Elektronix schrieb:</p>
<blockquote>
<p>Dann gibt es meistens noch Probleme mit der UNICODE-Definierung und den zugehörigen anderen Typenbezeichnern im Quellcode (z. B. TCHAR statt einfach nur char o.ä.).</p>
</blockquote>
<p>Win98 kennt keine Unicode, somit musst Du nur die Default-Einstellung in dem VC-Projekt von Unicode nach &quot;Multibyte&quot; oder &quot;Not Set&quot; stellen (Project|Properties|General|Character Set).</p>
<p>Auch rate ich dazu die CRT statisch zu linken, dann musst Du auf dem zielrechner nix installieren (ausser in Deinem Fall vielleicht opengl).</p>
<p>PS: Die unterstützten Platformen für VC2005 findest Du hier:<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms235435.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms235435.aspx</a><br />
bzw. ein Hinweis zu NT hier:<br />
<a href="http://blog.kalmbachnet.de/?postid=53" rel="nofollow">http://blog.kalmbachnet.de/?postid=53</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1129459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129459</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 02 Sep 2006 06:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Sat, 02 Sep 2006 07:23:52 GMT]]></title><description><![CDATA[<p>heisst das ich soll oben wo ich alles initialisiere oder in meiner header datei einfach</p>
<pre><code>#define _WIN32_WINDOWS=0x0410 
#define WINVER&gt;=0x0410
</code></pre>
<p>hin schreiben und dann läuft mein code auch auch win98????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1129471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129471</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Sat, 02 Sep 2006 07:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Sat, 02 Sep 2006 08:09:25 GMT]]></title><description><![CDATA[<p>T0bi schrieb:</p>
<blockquote>
<p>heisst das ich soll oben wo ich alles initialisiere oder in meiner header datei einfach</p>
<pre><code class="language-cpp">#define _WIN32_WINDOWS=0x0410 
#define WINVER&gt;=0x0410
</code></pre>
<p>hin schreiben und dann läuft mein code auch auch win98????</p>
</blockquote>
<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>WINVER und _WIN32_WINNT in dein Projekteinstellungen unter &quot;Preprocessor defines&quot; entsprechend setzen!</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1129480</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129480</guid><dc:creator><![CDATA[Niklas Cathor]]></dc:creator><pubDate>Sat, 02 Sep 2006 08:09:25 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Sat, 02 Sep 2006 10:56:17 GMT]]></title><description><![CDATA[<p>T0bi schrieb:</p>
<blockquote>
<p>heisst das ich soll oben wo ich alles initialisiere oder in meiner header datei einfach</p>
</blockquote>
<p>Entweder gaaaaaaaanz oben (also bevor windows.h oder sostwas includiert wird!), dann aber so:</p>
<pre><code>#define _WIN32_WINDOWS 0x0410 
#define WINVER 0x0410
</code></pre>
<p>oder aber in den Projekteinstellungen (würde ich in diesem Fall bevorzugen).</p>
<p>Unter Win98 läuft es aber <strong>nur</strong>, wenn Du statisch linkst oder wenn Du unbedingt gegen die DLLs linken willst, musst Du die CRT-DLLs auf dem Zielrechner installieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1129557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1129557</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 02 Sep 2006 10:56:17 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Sun, 03 Sep 2006 14:58:52 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Elektronix schrieb:</p>
<blockquote>
<p>Zu Deinem Problem- ich habe nämlich das gleiche: Das hängt vom Compiler ab. VC2005 ist auf XP-Programme voreingestellt. (Ich habe schon im Forum gefragt, wie man das ändern könnte, aber keine Antwort bekommen.)</p>
</blockquote>
<p>Wo? Hab ich wohl übersehene...<br />
Du musst nur<br />
WINVER und _WIN32_WINNT in dein Projekteinstellungen unter &quot;Preprocessor defines&quot; entsprechend setzen!<br />
z.B. Wn98:<br />
_WIN32_WINDOWS=0x0410<br />
WINVER&gt;=0x0410</p>
<p>Elektronix schrieb:</p>
<blockquote>
<p>Die laufen unter '98 nicht, weil schon die Datenbreite für Zeiger oder verschiedene Variablentypen unterschiedlich ist.</p>
</blockquote>
<p>Wo hast Du denn das her! Wenn Du ein x86 Programm erstellst, dann ist es immer gleich egal ob dies für Win98 oder Vista erstellt wurde!</p>
<p>Elektronix schrieb:</p>
<blockquote>
<p>Dann gibt es meistens noch Probleme mit der UNICODE-Definierung und den zugehörigen anderen Typenbezeichnern im Quellcode (z. B. TCHAR statt einfach nur char o.ä.).</p>
</blockquote>
<p>Win98 kennt keine Unicode, somit musst Du nur die Default-Einstellung in dem VC-Projekt von Unicode nach &quot;Multibyte&quot; oder &quot;Not Set&quot; stellen (Project|Properties|General|Character Set).</p>
<p>Auch rate ich dazu die CRT statisch zu linken, dann musst Du auf dem zielrechner nix installieren (ausser in Deinem Fall vielleicht opengl).</p>
<p>PS: Die unterstützten Platformen für VC2005 findest Du hier:<br />
<a href="http://msdn2.microsoft.com/en-us/library/ms235435.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms235435.aspx</a><br />
bzw. ein Hinweis zu NT hier:<br />
<a href="http://blog.kalmbachnet.de/?postid=53" rel="nofollow">http://blog.kalmbachnet.de/?postid=53</a></p>
</blockquote>
<p>Aha!! Neulich im Zusammenhang mit den Toolbars habe ich diese Frage schon gestellt, und keiner konnte sie beantworten.<br />
Manchmal kann es sogar helfen, wenn man selbst dumme Antworten gibt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> . Danke für die Infos. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1130038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1130038</guid><dc:creator><![CDATA[Elektronix]]></dc:creator><pubDate>Sun, 03 Sep 2006 14:58:52 GMT</pubDate></item><item><title><![CDATA[Reply to Kompatibilitätsfrage, von WinXp geschrieben Programmen auf Win98 laufen nicht richtig,wieso??? on Mon, 03 Sep 2007 14:45:33 GMT]]></title><description><![CDATA[<p>Also ich hab das gleiche Problem,</p>
<p>ich hab in der Firma im Büro ein Programm unter XP geschrieben, will dieses jetzt auf unsrer Fräsmaschine auf NT 4.0 laufen lassen, dies geht aber nicht, kommt ne Fehlermeldung und das Programm wird beendet.</p>
<p>Ich habe die 2 Möglichkeiten auch schon probiert,</p>
<p>1. in den Quellcode ganz oben die #define befehle eintragen</p>
<pre><code class="language-cpp">#define _WIN32_WINDOWS 0x0410 
#define WINVER 0x0410
</code></pre>
<p>2. in den Projecteigenschaften die Präprozessor Einstellungen entsprechend gesetzt !! Funktioniert aber immer noch nicht !!</p>
<p>kann mir mal jemadn die genaue Syntax posten, vielleicht hab ich da doch ein Schreibfehler drin !! Oder gibt´s noch andere Optionen die man ändern muss !!</p>
<p>Gruß Andi</p>
<p>EDIT: Hehe, hab grad gesehn, dass das letzte Posting genau ein Jahr her ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1357962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1357962</guid><dc:creator><![CDATA[Dolzman]]></dc:creator><pubDate>Mon, 03 Sep 2007 14:45:33 GMT</pubDate></item></channel></rss>