⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userinfo.idl

📁 vc oline exam program example
💻 IDL
字号:
// UserInfo.idl : IDL source for UserInfo.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (UserInfo.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(8A16D6E2-DD06-40F0-9B57-A6C4B3570F60),
		dual,
		helpstring("IUser Interface"),
		pointer_default(unique)
	]
	interface IUser : IDispatch
	{
		[propget, id(1), helpstring("property Username")] HRESULT Username([out, retval] BSTR *pVal);
		[propput, id(1), helpstring("property Username")] HRESULT Username([in] BSTR newVal);
		[propget, id(2), helpstring("property Password")] HRESULT Password([out, retval] BSTR *pVal);
		[propput, id(2), helpstring("property Password")] HRESULT Password([in] BSTR newVal);
		[propget, id(3), helpstring("property Name")] HRESULT Name([out, retval] BSTR *pVal);
		[propput, id(3), helpstring("property Name")] HRESULT Name([in] BSTR newVal);
		[propget, id(4), helpstring("property School")] HRESULT School([out, retval] BSTR *pVal);
		[propput, id(4), helpstring("property School")] HRESULT School([in] BSTR newVal);
		[propget, id(5), helpstring("property Department")] HRESULT Department([out, retval] BSTR *pVal);
		[propput, id(5), helpstring("property Department")] HRESULT Department([in] BSTR newVal);
		[propget, id(6), helpstring("property Class")] HRESULT Class([out, retval] BSTR *pVal);
		[propput, id(6), helpstring("property Class")] HRESULT Class([in] BSTR newVal);
		[propget, id(7), helpstring("property Email")] HRESULT Email([out, retval] BSTR *pVal);
		[propput, id(7), helpstring("property Email")] HRESULT Email([in] BSTR newVal);
		[propget, id(8), helpstring("property StudentNO")] HRESULT StudentNO([out, retval] BSTR *pVal);
		[propput, id(8), helpstring("property StudentNO")] HRESULT StudentNO([in] BSTR newVal);
		[propget, id(9), helpstring("property UserID")] HRESULT UserID([out, retval] long *pVal);
		[propput, id(9), helpstring("property UserID")] HRESULT UserID([in] long newVal);
		[id(10), helpstring("method CheckValid")] HRESULT CheckValid([in] int x_nType,[in] BSTR x_No,[in] BSTR x_Password,[out,retval] BSTR *x_Success);
		[id(11), helpstring("method GetUserInfo")] HRESULT GetUserInfo([in] int x_nType, [in] int x_UID, [out,retval] BSTR *x_UserInfo);
		[id(12), helpstring("method InsertUserInfo")] HRESULT InsertUserInfo([in] int x_nType,[out,retval] int *x_Success);
		[id(13), helpstring("method DeleteUserInfo")] HRESULT DeleteUserInfo([in] int x_nType,[in] int x_UID,[out, retval] BSTR *x_Success);
		[id(14), helpstring("method GetUser")] HRESULT GetUser([in] int x_nType,[in] BSTR  x_mUsername);
	};

[
	uuid(D333747E-43A3-4B32-8296-FCBA74D86F92),
	version(1.0),
	helpstring("UserInfo 1.0 Type Library")
]
library USERINFOLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(DB34E282-8936-4419-A9BC-4DDF8E456F6E),
		helpstring("User Class")
	]
	coclass User
	{
		[default] interface IUser;
	};
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -