На С++ следующего интерфейса IOPCServer метод HRESULT GetStatus( /* [out] */ OPCSERVERSTATUS __RPC_FAR *__RPC_FAR *ppServerStatus)
При импорте этих типов из СОМ и создании сборки для .NET получаем этот метот в следующем виде
IOPCServer. GetStatus( System.IntPtr ppServerStatus )
и вообщето утилита tlbimp.exe на него ругается и выдала следующее Microsoft (R) .NET Framework Type Library to Assembly Converter 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
TlbImp warning: At least one of the arguments for 'OPCServer.GetStatus' can not
be marshaled by the runtime marshaler. Such arguments will therefore be passed
as a pointer and may require unsafe code to manipulate.
TlbImp warning: At least one of the arguments for 'IOPCServer.GetStatus' can not
be marshaled by the runtime marshaler. Such arguments will therefore be passed
as a pointer and may require unsafe code to manipulate.
Type library imported to D:\Program Files\Microsoft Visual Studio .NET 2003\SDK\
v1.1\Bin\emrom.dll
Так вот вопрос в следующем что нужно сделать чтобы получить структуру OPCSERVERSTATUS на c# через вызов этого метода.
Покажи как обьявлен в IDL-е OPCSERVERSTATUS
Posted via RSDN NNTP Server 1.9 gamma
Здравствуйте, SergeySymbol, Вы писали:
http://www.optim.ru/cs/2001/3/2net/2net.asp... << RSDN@Home 1.1.4 beta 3 rev. 207>>