Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 15th, 2002, 08:01 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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 .

Reply With Quote
  #2  
Old October 18th, 2002, 12:44 PM
GaryGnu GaryGnu is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 1 GaryGnu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old August 24th, 2003, 10:48 AM
Mr-Konj Mr-Konj is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 Mr-Konj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old September 20th, 2004, 01:50 PM
Erestar Erestar is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 1 Erestar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Using the .NET Assembly in PHP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT