???? ID: 817248 - ????? ???????: 05 ?????? 2010 - ??????: 2.0 Visual Basic 6.0 ??? ?? ??? Visual Basic .NET ?? Visual Basic 2005 ??????? ?? ??? ???? ?? ??? ???? ????
?? ????? ????????? ???? ????? ???? ?? ?? ???? ????? Microsoft Visual Basic .NET ?? Microsoft Visual Basic 2005 ???????? ??????? ?? Microsoft Visual Basic 6.0 ??? ?? ???? ??? ?? ????? ?? ???? ???? ???????.NET ?????? ?? COM exposing ?? ??? ??????????????? ?? ?? Microsoft .NET ??????? ??? ???????? ???? (COM) ??????????? ??? ?????? ?????? ???? ????? ???, ??????-??? ?? ????? COM ?????? ?????????? ?? ????? ????? ???????? ?????? (????,???????,struct,????? ????) ?? COM ??????? ????????? ?? ??? ???????? ?? ?? ????????????? ?? ???? ????:
COM interop ?? ??? .NET ??????? ??????? ?? ??? ?? ?? ???? ?????? ????????? ??? ??? ????????????? ???????? ??? ?? ??? ???????? ???? ?? ??? Visual Basic 6.0, ?? ??? ?????? ?? ?? ?? ??????? COM interop ?? ??? ??????? ???? ?? ???? ?????? ????????? ????? ????? ?? ??????? ?????? ?? ?? ???? ???????? ???????? ?? ???? ??? COM ??????? ????????? interacts ??????? ?? ???? ?????? ????????? COM ??????? ????????? ?? ??? ??????? ??? exposed ???????? ?? ???? ??? ?????? ?? ??????? ?? ?????? ???? ??? ??? ???? ?? ??? ????????? ?? ?????? ???? ????? ??? ?? ?? ??? ??? ?? ?????? ???????? ?? ?? ????? ???????? ???????? ???????? ?? Microsoft Visual Studio .NET ?? Microsoft Visual Studio 2005 ???????? ??? ?? ???? ?????? ????????? ????? ?? ?? registers ??? ??????? ????????? ?? ????? ???COM Interop ?? ??? ???????????????? ?? ??? ??? ????? ????? ??configuration???. ??? ?? ?????COMClass???????? ?? ?? ?? ????, Visual Studio .NET ????? ?? Visual Studio 2005 ????: ??? ???? ??COM Interop ?? ??? ?????????? ?????. ?????? ???? ?? ???? ?? ???COM Interop ?? ??? ???????Visual Studio .NET ??? ?? Visual Studio 2005 ??? ??? ????? ????? ??, ????? ????? ?? ???? ????:
?? ???? ??????? ???? ????????? ?? ???? ??, ?? ?? ????????? ?? ????? ????? ?? ??? ?????? ??? ???? ????????? ???? ??????? ???? ???? ??? ???? assemblies ????? ????????? (EXE) ?? ??? ??????? ??? ??????? ???? ?? ??? ??????? ??? ?? ???? ???? COM ??????? ?????????, ?? ??? ?? ?? ???? ?? ?? ??????? ?? ????????? ?? ??? ??????? ??? ????? ??? A shared assembly is available for use by multiple applications on the computer. To create a shared assembly, you must sign the assembly with a strong name and install the assembly into the Global Assembly Cache (GAC) on the destination computer. For more information about how to sign the assembly with a strong name and install the assembly into the Global Assembly Cache (GAC), visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/xc31ft41(vs.71).aspx
(http://msdn2.microsoft.com/en-us/library/xc31ft41(vs.71).aspx)
You should use both the/tlb:switch and the/Codebaseswitch when you register the assembly. The/tlb:switch generates and registers a type library, and the/Codebaseswitch registers the location of the managed assembly in the
Windows registry. If you do not use the/Codebaseswitch and the assembly has not been installed into the Global
Assembly Cache (GAC), you must put a copy of the assembly into the folder of
each COM client application (EXE) so that the assembly can be located by the
common language runtime (CLR).To generate and register a type library and register the location of the managed assembly, type the following command at the command prompt: RegasmAssemblyName.dll/tlb:FileName.tlb/codebase Create a COM callable assembly in Visual Basic .NET
?????????? ??????? ?? ???, Microsoft ?? ????? ??? ???? ?? ????:: ????????? ??? ?? ??? interoperating (vs.71) http://msdn2.Microsoft.com/en-us/library/sd10k43k .aspx (http://msdn2.microsoft.com/en-us/library/sd10k43k(vs.71).aspx) ???? ???? ???? ??:
???? ?????? ??????????????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??. ?????????? ?? ??????? ????????? ??????? ??:817248
(http://support.microsoft.com/kb/817248/en-us/
)
| ???? ?????? ???? ?????? ??????
????????? ?????? ??????? ???????? ??????
|






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email

????? ?? ???? ????
