unit lottgis_server_TLB;// ************************************************************************ //
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //// PASTLWTR : 1.2
// File generated on 2006-11-1 9:05:02 from Type Library described below.// ************************************************************************ //
// Type Lib: E:\源程序\mod_map\new_map\ser\lottgis_server.tlb (1)
// LIBID: {D48EB69A-903D-4FB0-B1A0-F1A5EC7E2D20}
// LCID: 0
// Helpfile:
// HelpString: tcwy_server Library
// DepndLst:
// (1) v1.0 Midas, (C:\WINNT\system32\midas.dll)
// (2) v2.0 stdole, (C:\WINNT\system32\stdole2.tlb)
// (3) v4.0 StdVCL, (C:\WINNT\system32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interfaceuses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
lottgis_serverMajorVersion = 1;
lottgis_serverMinorVersion = 0; LIBID_lottgis_server: TGUID = '{D48EB69A-903D-4FB0-B1A0-F1A5EC7E2D20}'; IID_Igis_server: TGUID = '{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}';
CLASS_gis_server: TGUID = '{C2B35698-6216-41BE-9E9F-70C3B0E3BD3F}';
type// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
Igis_server = interface;
Igis_serverDisp = dispinterface;// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
gis_server = Igis_server;
// *********************************************************************//
// Interface: Igis_server
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}
// *********************************************************************//
Igis_server = interface(IDispatch)
['{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}']
end;// *********************************************************************//
// DispIntf: Igis_serverDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}
// *********************************************************************//
Igis_serverDisp = dispinterface
['{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}']
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer;
out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
Options: Integer; const CommandText: WideString; var Params: OleVariant;
var OwnerData: OleVariant): OleVariant; dispid 20000001;
function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
function AS_GetProviderNames: OleVariant; dispid 20000003;
function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
var OwnerData: OleVariant): OleVariant; dispid 20000005;
procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
end;// *********************************************************************//
// The Class Cogis_server provides a Create and CreateRemote method to
// create instances of the default interface Igis_server exposed by
// the CoClass gis_server. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
Cogis_server = class
class function Create: Igis_server;
class function CreateRemote(const MachineName: string): Igis_server;
end;implementationuses ComObj;class function Cogis_server.Create: Igis_server;
begin
Result := CreateComObject(CLASS_gis_server) as Igis_server;
end;class function Cogis_server.CreateRemote(const MachineName: string): Igis_server;
begin
Result := CreateRemoteComObject(MachineName, CLASS_gis_server) as Igis_server;
end;end.
我的代码Igis_server = interface(IDispatch)则为甚模不能改为Igis_server = interface(IAppServer),下来框没有IAppServer选项
// WARNING
// -------
// The types declared in this file were generated from data read from a
// Type Library. If this type library is explicitly or indirectly (via
// another type library referring to this type library) re-imported, or the
// 'Refresh' command of the Type Library Editor activated while editing the
// Type Library, the contents of this file will be regenerated and all
// manual modifications will be lost.
// ************************************************************************ //// PASTLWTR : 1.2
// File generated on 2006-11-1 9:05:02 from Type Library described below.// ************************************************************************ //
// Type Lib: E:\源程序\mod_map\new_map\ser\lottgis_server.tlb (1)
// LIBID: {D48EB69A-903D-4FB0-B1A0-F1A5EC7E2D20}
// LCID: 0
// Helpfile:
// HelpString: tcwy_server Library
// DepndLst:
// (1) v1.0 Midas, (C:\WINNT\system32\midas.dll)
// (2) v2.0 stdole, (C:\WINNT\system32\stdole2.tlb)
// (3) v4.0 StdVCL, (C:\WINNT\system32\stdvcl40.dll)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interfaceuses Windows, ActiveX, Classes, Graphics, Midas, StdVCL, Variants;
// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
lottgis_serverMajorVersion = 1;
lottgis_serverMinorVersion = 0; LIBID_lottgis_server: TGUID = '{D48EB69A-903D-4FB0-B1A0-F1A5EC7E2D20}'; IID_Igis_server: TGUID = '{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}';
CLASS_gis_server: TGUID = '{C2B35698-6216-41BE-9E9F-70C3B0E3BD3F}';
type// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
Igis_server = interface;
Igis_serverDisp = dispinterface;// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
gis_server = Igis_server;
// *********************************************************************//
// Interface: Igis_server
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}
// *********************************************************************//
Igis_server = interface(IDispatch)
['{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}']
end;// *********************************************************************//
// DispIntf: Igis_serverDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}
// *********************************************************************//
Igis_serverDisp = dispinterface
['{E574B0BB-93BB-4158-AAF6-FA992E5ECF5E}']
function AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; MaxErrors: Integer;
out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
function AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer;
Options: Integer; const CommandText: WideString; var Params: OleVariant;
var OwnerData: OleVariant): OleVariant; dispid 20000001;
function AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
function AS_GetProviderNames: OleVariant; dispid 20000003;
function AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
function AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer;
var OwnerData: OleVariant): OleVariant; dispid 20000005;
procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString;
var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
end;// *********************************************************************//
// The Class Cogis_server provides a Create and CreateRemote method to
// create instances of the default interface Igis_server exposed by
// the CoClass gis_server. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
Cogis_server = class
class function Create: Igis_server;
class function CreateRemote(const MachineName: string): Igis_server;
end;implementationuses ComObj;class function Cogis_server.Create: Igis_server;
begin
Result := CreateComObject(CLASS_gis_server) as Igis_server;
end;class function Cogis_server.CreateRemote(const MachineName: string): Igis_server;
begin
Result := CreateRemoteComObject(MachineName, CLASS_gis_server) as Igis_server;
end;end.
我的代码Igis_server = interface(IDispatch)则为甚模不能改为Igis_server = interface(IAppServer),下来框没有IAppServer选项
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货