[?] C#.net dll and ActiveXObject - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [?] C#.net dll and ActiveXObject (/showthread.php?tid=69491) [?] C#.net dll and ActiveXObject by Felu on 12-14-2006 at 12:39 PM
I made a dll in C#.net with MS Visual C# 2005 Express Edition. When i declare the ActiveXObject it gives either of the two errors. code:or code: -The dll is COM Visible -The dll is registered with ResAsm utility and is also placed in <DotNetFiles> in the ScriptInfo.xml -A GUID is registered. I've read other threads on the forum, some of them having the same problem. But none have a working solution . Any help is appreciated RE: [?] C#.net dll and ActiveXObject by Deco on 12-14-2006 at 12:57 PM
Great thread. Same problem here. RE: [?] C#.net dll and ActiveXObject by Felu on 12-14-2006 at 01:06 PM
Sample code i'm using code:And to make an assembly COM visible in Visual C# 2005. Projects > Application > Assembly Information > Make Assembly COM Visible. RE: [?] C#.net dll and ActiveXObject by Deco on 12-14-2006 at 01:07 PM
Thanks I'm trying some things here if I succeed I'll make sure to let you know RE: [?] C#.net dll and ActiveXObject by Chestah on 12-14-2006 at 01:16 PM
I can't exactly remember how i got my C# dlls to work, but theres another process you have to do to the actual code itself to get it "visible" and able to be registered. I'm fairly sure i learnt how to do it from a tutorial on the codeproject website. code: I'd personally recommend staying away from ActiveX dlls and use as much Jscript as you can. RE: [?] C#.net dll and ActiveXObject by Deco on 12-14-2006 at 01:34 PM
If I make a dll out of that.. RE: [?] C#.net dll and ActiveXObject by -dt- on 12-14-2006 at 01:44 PM
quote: thats for a COM dll though, Interop.Call is for dlls which export their functions. you use the following for COM code: RE: [?] C#.net dll and ActiveXObject by Deco on 12-14-2006 at 02:00 PM
Ok that was it... RE: [?] C#.net dll and ActiveXObject by Felu on 12-16-2006 at 05:00 AM Read many articles on The Code Project, none of them could help me to get rid of the unknown error . RE: [?] C#.net dll and ActiveXObject by ShawnZ on 12-16-2006 at 05:05 AM
quote: * ShawnZ sighs why are you searching so specifically? why not search for something like "C# COM ActiveX Expose" or sometihng RE: [?] C#.net dll and ActiveXObject by RaceProUK on 12-16-2006 at 11:07 AM
quote:Why do I get the feeling it's this that's causing issues? Granted, I'm not familiar with all the Scripting API, but surely trying to load the DLL as a COM object when it's also exposed as a .NET assembly may be causing problems? RE: [?] C#.net dll and ActiveXObject by Felu on 12-17-2006 at 05:23 AM
quote:Scripts support COM objects and not .NET(as far as i know) so the dll has to be COM Visible. Scripting contest ends day after and i haven't been able to solve my dll's problem ;<. Help me!!!! Edit : I just found out that MP!L when registers the dll doesn't add it to Global Assembly Cache resulting in failing of the dll RE: [?] C#.net dll and ActiveXObject by Chestah on 12-17-2006 at 08:02 AM
quote: So are you saying .Net/COM dll's don't work because of a plus problem ? RE: [?] C#.net dll and ActiveXObject by Felu on 12-17-2006 at 08:04 AM
quote:In a way, yes. RE: [?] C#.net dll and ActiveXObject by Chestah on 12-17-2006 at 08:10 AM I'd bring Patchou's attention to the problem. If it is a Plus! problem i'm sure he'd allow your scripts entry into the competition by the due date or give you until he fixes the problem. |