1. Liebe Forumsgemeinde,

    aufgrund der Bestimmungen, die sich aus der DSGVO ergeben, müssten umfangreiche Anpassungen am Forum vorgenommen werden, die sich für uns nicht wirtschaftlich abbilden lassen. Daher haben wir uns entschlossen, das Forum in seiner aktuellen Form zu archivieren und online bereit zu stellen, jedoch keine Neuanmeldungen oder neuen Kommentare mehr zuzulassen. So ist sichergestellt, dass das gesammelte Wissen nicht verloren geht, und wir die Seite dennoch DSGVO-konform zur Verfügung stellen können.
    Dies wird in den nächsten Tagen umgesetzt.

    Ich danke allen, die sich in den letzten Jahren für Hilfesuchende und auch für das Forum selbst engagiert haben. Ich bin weiterhin für euch erreichbar unter tti(bei)pcwelt.de.
    Dismiss Notice

C++ für Windows

Discussion in 'Programmieren' started by unzi, Mar 7, 2002.

Thread Status:
Not open for further replies.
  1. unzi

    unzi Byte

    Ich hab mal 2 Fragen zu C++ unter Windows:

    1. Wie starte ich ein anderes Programm (mit Parametern)

    2. Wie mache ich einen String-Vergleich mit dem Linefeed- und Carriage-Return Keycode?
     
  2. unzi

    unzi Byte

    Dankeschön für deine letzte Antwort , genauso war}s gemeint!
    [Diese Nachricht wurde von unzi am 09.03.2002 | 15:45 geändert.]
     
  3. Sumo

    Sumo Kbyte

    \r\') //mit Wagenruecklauf vergleichen
    cout<<"\nPosition: "<<xyz;
    }
    }

    \r steht für einen Wagenrücklauf
    \n ist ein Zeilenumbruch

    War doch jetzt so gemeint oder?

    Edit: für das hässliche Ausrichten des Codes kann ich nichts. Ich hoffe ich hab beim editieren alle i in eckigen Klammern erwischt und durch xyz ersetzt, sonst steht hier alles in italic.
    [Diese Nachricht wurde von Sumo am 08.03.2002 | 21:42 geändert.]
     
  4. unzi

    unzi Byte

    1. habe ich verstanden (dankeschön), aber wie gebe ich ein, das der String2 der ANSI-Code #13 ist?
     
  5. Sumo

    Sumo Kbyte

    s threads. If none of the following priority class flags is specified, the priority class defaults to NORMAL_PRIORITY_CLASS unless the priority class of the creating process is IDLE_PRIORITY_CLASS. In this case the default priority class of the child process is IDLE_PRIORITY_CLASS. One of the following flags can be specified:

    Priority Meaning
    HIGH_PRIORITY_CLASS Indicates a process that performs time-critical tasks that must be executed immediately for it to run correctly. The threads of a high-priority class process preempt the threads of normal-priority or idle-priority class processes. An example is Windows Task List, which must respond quickly when called by the user, regardless of the load on the operating system. Use extreme care when using the high-priority class, because a high-priority class CPU-bound application can use nearly all available cycles.
    IDLE_PRIORITY_CLASS Indicates a process whose threads run only when the system is idle and are preempted by the threads of any process running in a higher priority class. An example is a screen saver. The idle priority class is inherited by child processes.
    NORMAL_PRIORITY_CLASS Indicates a normal process with no special scheduling needs.
    REALTIME_PRIORITY_CLASS Indicates a process that has the highest possible priority. The threads of a real-time priority class process preempt the threads of all other processes, including operating system processes performing important tasks. For example, a real-time process that executes for more than a very brief interval can cause disk caches not to flush or cause the mouse to be unresponsive.


    lpEnvironment

    Points to an environment block for the new process. If this parameter is NULL, the new process uses the environment of the calling process.

    An environment block consists of a null-terminated block of null-terminated strings. Each string is in the form:

    name=value


    Because the equal sign is used as a separator, it must not be used in the name of an environment variable.
    If an application provides an environment block, rather than passing NULL for this parameter, the current directory information of the system drives is not automatically propagated to the new process. For a discussion of this situation and how to handle it, see the following Remarks section.
    An environment block can contain Unicode or ANSI characters. If the environment block pointed to by lpEnvironment contains Unicode characters, the dwCreationFlags field\'s CREATE_UNICODE_ENVIRONMENT flag will be set. If the block contains ANSI characters, that flag will be clear.

    Note that an ANSI environment block is terminated by two zero bytes: one for the last string, one more to terminate the block. A Unicode environment block is terminated by four zero bytes: two for the last string, two more to terminate the block.

    lpCurrentDirectory

    Points to a null-terminated string that specifies the current drive and directory for the child process. The string must be a full path and filename that includes a drive letter. If this parameter is NULL, the new process is created with the same current drive and directory as the calling process. This option is provided primarily for shells that need to start an application and specify its initial drive and working directory.

    lpStartupInfo

    Points to a STARTUPINFO structure that specifies how the main window for the new process should appear.

    lpProcessInformation

    Points to a PROCESS_INFORMATION structure that receives identification information about the new process.



    Return Values

    If the function succeeds, the return value is nonzero.
    If the function fails, the return value is zero. To get extended error information, call GetLastError.

    2.
    Die Funktion strcmp(String1,String2)
     
Thread Status:
Not open for further replies.

Share This Page