|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: Using the .NET Assembly in PHP
Using the .NET Assembly in PHP If you have any questions or comments about this article then please post them here.
You can read the article here . |
|
#2
|
|||
|
|||
|
Just wondering
I'm just wondering how many folks who are PHP programmers and are readers of devarticles.com actually have Visual Studio .NET? Its one of the requirements for this article.
|
|
#3
|
|||
|
|||
|
arrays
Hi,
In my .net application I have a array type string like this : Public IndexImen() As String Now when I want to set it from PHP like this: $MyPita = new COM("korona.obmocje52.ustvaripito"); $MyPita->IndexImen = array(0=>"bla",1=>"ble"); i get this error : Warning: main(): PropPut() failed: The parameter is incorrect. in C:\Inetpub\wwwroot\jer.php on line 8 I can set all other variables (strings,integers) from PHP I just dont know how to set a array type? |
|
#4
|
|||
|
|||
|
What about referenced assemblies without strong names?
Hi!
I loved the article, and I can now successfully use my .NET objects in PHP. However, I'm having a problem when I reference an assembly that doesn't have a strong name. Here's the situation: name space: PHPObject class: myObj I reference the mappoint object library COM object. When I view the properties, it has Strong Name set to false, and this is not editable. I did some searching and found this article on the MSDN KB: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q313666 This tells you that you can set a COM wrapper assembly key file in the project properties. I did this as well. However, I don't know what to do once I move the compiled code to the remote server. I've moved both PHPObject.dll and Interop.MapPoint.dll (which gets created upon compile) and tried to follow the steps provided in the article. PHPObject worked fine as normal, but the Interop.MapPoint produces this: Types registered successfully RegAsm error: CLR assembly n:\webroot\interop.mappoint.dll was imported from a t ype library and can not be re-exported to a type library. Make sure the type li brary from which the assembly was imported is registered. Registering both DLLs in the global cache works fine. Now, remember that PHPObject works fine without the reference added, but when I add the reference to the project and follow the steps I mentioned above, I get this: Unable to obtain IDispatch interface for CLSID {028DD59C-BFFA-3A20-9B22-B182903BF475}: Server execution failed Does anyone have any ideas how I could make this work? You help would be really appriciated. Thanks, Ere |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: Using the .NET Assembly in PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|