Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Jonathan Ross
Okay, for the last 4 hours I've been stuck on calling a dynamic method from another dynamic method. Following is my code, which errors out for some reason unknown to me. Also, in my research I've learned the terms early-binding, late-binding, and hybrid-binding. What I was talking about wanting in

Re: [ADVANCED-DOTNET] Best Practices for data access question

2005-08-02 Thread Royal, Timothy
Once again, I'm in your debt. This will help me do it right (this time. :) ) Tim -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of William Bartholomew Sent: Tuesday, August 02, 2005 6:48 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.

Re: [ADVANCED-DOTNET] Best Practices for data access question

2005-08-02 Thread William Bartholomew
Remoting isn't very firewall friendly, so if the application will be running outside of your organisation then stick with web-services, otherwise you will get better performance with remoting. Your choices for what to send across the web-service are really: 1. DataSet 2. Typed DataSet 3. Business

[ADVANCED-DOTNET] Best Practices for data access question

2005-08-02 Thread Royal, Timothy
I'm asking quite a few questions today (but since I'm getting great answers and have already solved one of my big issues involving the c# plug-in editor thanks to some good leads from the group)... In this upcoming project I've got coming up, I'm going to need to make the app be operable, for the

Re: [ADVANCED-DOTNET] Interop & binary compatibility

2005-08-02 Thread Wilson, Phil D
It'd be interesting to see a code sample, just to see the details of class/interface declarations etc. The behavior you're seeing would make sense if you weren't implementing an explicit interface because with ClassInterfaceT-ype.None you're declaring that the only interface is IDispatch, late-bind

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Royal, Timothy
Cool. THANKS for the tip! I'll check them out now. tim -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of William Bartholomew Sent: Tuesday, August 02, 2005 3:53 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Jonathan Ross
Thanks for the help everyone. I've discovered dynamic methods, and I've successfully been able to call a function in my program using one. Now I just need to test calling one of my dynamic methods from another, but it looks like this won't be too hard. Unfortunately this is still all using emit, a

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread William Bartholomew
I would recommend SharpDevelop but it is GPL which probably doesn't suit. Essential Edit from SyncFusion is a commercial product with Intellisense, syntax colouring etc. and I know for a fact that it is what is used in SnippetCompiler (have a play with this and see if you like how the control works

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Royal, Timothy
This runs close to what I'm going to be embarking on in the next few weeks. I need to rewrite a tool that was written in wxPython, and allowed users to build "work steps" as python scripts and string them together into a execution plan (with scheduling, database updating, custom configurations, etc

Re: [ADVANCED-DOTNET] Sorting an XmlNodeList

2005-08-02 Thread William Bartholomew
Eddie, Give this a try: http://samples.gotdotnet.com/quickstart/howto/doc/Xml/XPathExpression.aspx On 8/3/05, Eduard Lascu <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I have an XmlDocument and I use GetElementsByTagName method to obtain a list > of nodes with a specific name. This nodes mu

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread William Bartholomew
Jonathan, You can do this with CodeDOM. CodeDOM allows you to compile to in-memory assemblies which you can load and execute and most importantly for your purposes CodeDOM won't validate that types/methods/etc. exist until compile time. So when you are writing the code for "A" you can refer to the

Re: [ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Geoff Taylor
Hi there. Sounds difficult (and interesting!) If I were you, I'd have a look at Jscript .NET - it has some of the features you want. It won't do it all, but looking at the way it does things may give you some ideas. This post may help get things started: http://pluralsight.com/blogs/crai

[ADVANCED-DOTNET] CodeDOM and OpCodes in Implementing Dynamic Code

2005-08-02 Thread Jonathan Ross
I'm writing a program that must be almost completely reprogrammable during run-time. I've experimented with the CodeDOM, but I'm still having issues. Essentially, what I'm trying to build would be similar to a byte-code interpreter that allows the extension of programs during execution, but real

[ADVANCED-DOTNET] Sorting an XmlNodeList

2005-08-02 Thread Eduard Lascu
Hello everybody, I have an XmlDocument and I use GetElementsByTagName method to obtain a list of nodes with a specific name. This nodes must be sorted based on the value of an attribute, before they are further processed. What's the easiest way to do this? I don't necessarily have to keep them in