PB to maintain an old system, in some places with PB is not convenient, and good on John Doe with a few people, each person put on a .net framework.
Provided .NET class COM visible
Way: the entire assembly is set to COM visible
Second way, only a part of the class disclosed
Using the .Net framework to carry RegAsm.exe command-line tool .net dll file registered as COM
If your assembly optional parameters codeBase not strongly typed (strongly typed installed in the GAC), you need to use Regasm command to specify the location of the assembly where the
show "successfully registered type!" Note that the command runs successfully you can go to the registry to view the type of registration, the following code
May be in registry [HKEY_CLASSES_ROOT \ CLSID \ {09BCD386- F397-4810-B0CD-D4C4CE85D7AC}]
find specific types of information in the registration
Use OLEObject call in Pb,
MyIo OLEObject
Long conn_status // conn_status is 0 is normal, meaning the value of other specific look at the help documentation
myIo = Create OLEObject
conn_status=myIo.ConnectToNewObject ("MyIO.FFF") messagebox("返回",string( myIo.GetGuid("N")))
myIo.disconnectobject( );
Description:
References:
http://blog.csdn.net/ATField/article/details/1750890
problem:
The same error code is reported runform in 2003
on xp