AddNew



  • Also ich greife auf einen DB durch ADO ,-)
    Dann habe AddNew()
    try
    {
    // Kann ein neuer Datensatz hinzugefügt werden?
    if (m_pRs->Supports(adAddNew))
    {
    CreateBlankRecord();
    m_piAdoRecordBinding->AddNew(&m_rsRecSet);
    m_pRs->Update();
    }

    }
    // Fehler?
    catch (_com_error &e)
    {
    // Fehlermeldung generieren
    GenerateError(e.Error(), e.Description());
    }
    und es funkt nicht ich kriege zwar keinen Fehler aber bei einfügen meckert der Compiler das man kaein NULL
    Wert in BlaBlaBla einfügen kann ist zwar richtig denn in DB ist nicht NULL bei BlaBla erlaubt aber ich füge auch kein NULL !!!!!!!



  • bleibt ein feld leer, welches nicht leer bleiben darf ?

    Devil



  • es hat sich schon erledigt
    Danke devil81



  • The WinExec function runs the specified application.
    This function is provided for compatibility with 16-bit Windows. Win32-based applications should use the CreateProcess function
    The CreateProcess function creates a new process and its primary thread. The new process executes the specified executable file.
    BOOL CreateProcess(
    LPCTSTR lpApplicationName,
    // pointer to name of executable module
    LPTSTR lpCommandLine, // pointer to command line string
    LPSECURITY_ATTRIBUTES lpProcessAttributes, // process security attributes
    LPSECURITY_ATTRIBUTES lpThreadAttributes, // thread security attributes
    BOOL bInheritHandles, // handle inheritance flag
    DWORD dwCreationFlags, // creation flags
    LPVOID lpEnvironment, // pointer to new environment block
    LPCTSTR lpCurrentDirectory, // pointer to current directory name
    LPSTARTUPINFO lpStartupInfo, // pointer to STARTUPINFO
    LPPROCESS_INFORMATION lpProcessInformation // pointer to PROCESS_INFORMATION
    );

    Man kann aber auch system(C:\\ordner1\\deinprog.exe).


Anmelden zum Antworten