Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Migration von IS 6.1 Prof nach IS 11 Prof


2 replies to this topic

ngk1968

ngk1968
  • Members
  • 8 posts

Posted 23 November 2005 - 14:29

hallo,

nachdem ich auf is 11 prof umgestiegen bin und jetzt anfange die is-scripte anzupassen, bekomme ich beim kompolieren die fehlermeldung:
Fehler C8014 `STARUPINFO`:identifier bereits definiert.

Problem:
ich habe in dem script:
<LaunchAppEx.h> den aufruf typedef STARTUPINFO - nur dort.
denn unter 6.10 funktioniert es problemlos.

wobei ich ja erst am anfang bin ...

die gleiche fehlermeldung bekomme ich übrigends im selben script
für einen danach kommenden typedef ebenfalls.

-------------------------
.
.
.
#ifndef _LAUNCHAPPEX_H
#define _LAUNCHAPPEX_H

#ifndef STILL_ACTIVE
#define STILL_ACTIVE 0x00000103
#endif

#if _ISCRIPT_VER < 0x600
#ifndef BYVAL
#define BYVAL
#endif
#endif

prototype _LaunchAppEx(STRING, STRING, NUMBER, NUMBER, NUMBER, BYREF NUMBER);
prototype BOOL kernel32.CreateProcessA(POINTER, BYVAL STRING, POINTER,
POINTER, BOOL, NUMBER, POINTER, POINTER, POINTER,
POINTER);
prototype BOOL kernel32.GetExitCodeProcess(NUMBER, POINTER);
prototype NUMBER kernel32.WaitForSingleObject(NUMBER, NUMBER);

typedef STARTUPINFO
begin
NUMBER cb;
POINTER lpReserved;
POINTER lpDesktop;
POINTER lpTitle;
NUMBER dwX;
NUMBER dwY;
NUMBER dwXSize;
NUMBER dwYSize;
NUMBER dwXCountChars;
NUMBER dwYCountChars;
NUMBER dwFillAttribute;
NUMBER dwFlags;
// the following is actually two words, but we know
// we want 0 as the value, so we cheat & create one NUMBER
NUMBER wShowWindow;
//WORD cbReserved2;
POINTER lpReserved2;
HWND hStdInput;
HWND hStdOutput;
HWND hStdError;
end;

typedef PROCESS_INFORMATION
begin
NUMBER hProcess;
HWND hThread;
NUMBER dwProcessId;
NUMBER dwThreadId;
end;

#endif

.
.
.
-------------------------

kann mir hierzu jemand eine hilfestellung geben - oder noch besser eine lösung??

wink.gif


thx

ngk1968


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 November 2005 - 11:54

IS 11 hat eine neue Implementierung der LaunchAppAndWait Funktion (die vermutlich sogar teilweise auf LaunchAppEx basiert). Deshalb sind in dieser Version schon die entsprechenden Protoypen und typedefs drin. Ich empfehle, den LaunchAppEx Aufruf durch LaunchAppAndWait zu ersetzen.

ngk1968

ngk1968
  • Members
  • 8 posts

Posted 28 November 2005 - 11:10

super - vielen dank !!!