Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# COM Intertop Not Right With VFP?
Message
From
01/05/2002 11:18:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00651339
Message ID:
00651352
Views:
188
>Take this code and save it as str.cs :
>
>using System;
>
>public class T
>{
>public string A(string s)
>{
>return s+" from C#";
>}
>}
>
>
>Take this code and save it as strmake.cmd:
>
>csc /t:library str.cs
>tlbexp str.dll /out:str.tlb
>regasm str.dll
>
>
>Copy str.dll and str.tlb into c:\winnt\system32. Take this code and save it as str.vbs:
>
>	Set o = CreateObject("T")
>	MsgBox o.A("Hello"), , "VBS test"
>
>
>If you run the .vbs, it runs fine. But in VFP7/SP1, if you just do a CreateObject(), you get "OLE error code 0x80131522: Unknown COM status code".
>
>What happened?
>
>Thanks.

Steve,
I don't know the answer but maybe UT magazine Aprill 2002 issue might help. There was an article there.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform