Re: [DOTNET] need very Urgently - scripting in .net

2002-06-04 Thread george antony
Thanks..Ijust want this only..I need a vbs script to be executed in .net... Thanks a lot for this.. --- Mitch Denny <[EMAIL PROTECTED]> wrote: > George, > > What sort of script? You can write out a WSH script > and > execute it like this in C#: > > // Declare locals. > Process ru

Re: [DOTNET] Search the DOTNET archives

2002-06-04 Thread Avi Nahir
I suggest you find a way to work like - or with - dotnet247 (I'm not affiliated, of course). They are very well integrated with Google. This has two facets: First, when I do a regular google search, they ofter appear with relevant data. And, when I'm at their site and do a search, it's google on

[DOTNET] Hashtable XML Serialization

2002-06-04 Thread Rolls, Robert
In the following message http://discuss.develop.com/archives/wa.exe?A2=ind0201C&L=DOTNET&P=R1973&m=39 477 Ivan mentioned writing a wrapper class and adding the Add method? I'm not exactly sure what I need to do? anybody like to explain in simple English. Could you not derive from Hastable and ad

Re: [DOTNET] need very Urgently - scripting in .net

2002-06-04 Thread Mitch Denny
George, What sort of script? You can write out a WSH script and execute it like this in C#: // Declare locals. Process runner = null; StreamWriter writer = null; // Write out the script. writer = new StreamWriter("runme.vbs"); writer.WriteLine("Ca

Re: [DOTNET] need very Urgently - scripting in .net

2002-06-04 Thread george antony
I think my requirements are different.. I want to know how to write and execute a script in .net --- Shawn Wildermuth <[EMAIL PROTECTED]> wrote: > This isn't quite what you want, but it might get you > started... > > http://www.codeproject.com/csharp/runtime_eval.asp > > Thanks, > > Shawn Wilderm

Re: [DOTNET] need very Urgently - scripting in .net

2002-06-04 Thread Shawn Wildermuth
This isn't quite what you want, but it might get you started... http://www.codeproject.com/csharp/runtime_eval.asp Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]] On Behalf Of george antony > Se

[DOTNET] need very Urgently - scripting in .net

2002-06-04 Thread george antony
hi all Can any one tell me how to write and execute a script in .net regards george __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read messages from the DOTNET archive, unsubscribe from DO

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Ben Kloosterman
least recently used would be similar to last used - close enough for me anyway. Normally weaklinks sound good but my concerns with using weaklinks are 1. I can't control which Datatable will be cleaned up, I would like to give some preferences to which tables get cleaned up. 2. I don't want to

Re: [ADVANCED-DOTNET] GC asleep at the wheel

2002-06-04 Thread Edward Evans
Calling Dispose() on the message objects did the trick. I'm still concerned about my ability to run low on virtual memory. Message should clean up after itself when GC'd, including unmanaged resources, no? And, IMO, running out of virtual memory is a pretty good clue to fire up the Finalize calls

[ADVANCED-DOTNET] Using a Data Builder and Data Adapter with Oracle

2002-06-04 Thread Noam Arbel
Hi, I am trying to use an OleDbDataAdapter and DataBuilder with a recordset to update and insert rows into a table in Oracle. All the documentation and examples I can find are all for SQL Server(using the SqlDataAdapter variant). I can get my code to work on Access (with the OleDBData* classes),

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Marsh, Drew
Murphy, James [mailto:[EMAIL PROTECTED]] wrote: > If you > let the GC handle it you cache my grow larger than you'd dare > let it if you managed it yourself. So you're saying you think you can write better a memory manager than the GC? =) Seriously though, this is exactly what weak references a

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Brad Wilson
Murphy, James wrote: > I understand that the refinement over using weak references would be to > dictate the objects that get collected rather than letting the GC decide. As I see it, these objects will never get out of gen 0 unless they're being held during GC, which should be rare enough (don'

Re: [DOTNET] Odd XML Parsing exception when I pass & in...

2002-06-04 Thread Brad Wilson
Phill Tornroth wrote: > At any rate, my problem is that if I get XML like the stuff shown below: > Result="FAILURE_UNKNOWNUSER"/> > The '&' character in the post causes the data to get chopped in half (I'm > assuming this is because the '&' character is a field delimeter in http).. It should

Re: [DOTNET] Dataset not very useful in this scenario

2002-06-04 Thread Keith A Franklin
Greg, I think what you would rather do is to bind your controls to a business object rather then a dataset. This way the property procedures can have business rule logic that fires when the data in the control is changed. Later I will send you an example of business objects that support data bin

[DOTNET] Using a Data Builder and Data Adapter with Oracle

2002-06-04 Thread Noam Arbel
Hi, I am trying to use an OleDbDataAdapter and DataBuilder with a recordset to update and insert rows into a table in Oracle. All the documentation and examples I can find are all for SQL Server(using the SqlDataAdapter variant). I can get my code to work on Access (with the OleDBData* classes),

[DOTNET] Client Access Services COM Bridge and VB.NET

2002-06-04 Thread Farhan
I am not sure what i am doing wrong but this seems to be not working. I am trying to access Java class using CAS COM Brdige using VB.NET. Problem is all i get back is "System.__COMOBject". Following is how my code look like: Dim strValue As New ComBridgeJavaServices.JavaServices()

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a s trin g)

2002-06-04 Thread Michael Weinhardt
This is it [1], and it's now October mw [1] http://www.amazon.com/exec/obidos/ASIN/0201734117/qid%3D1017292091/sr%3D2-1/ref%3Dsr%5F2%5F1/103-1781157-5050265 > -Original Message- > From: Kevin E. Kenny [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 5 June 2002 9:21 AM > To: [EMAIL P

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a s trin g)

2002-06-04 Thread Kevin E. Kenny
I think the book was originally titled Essential .Net by Don Box and was in very early draft form at the PDC last year - I have a copy. I believe it's now called something else and is due out in September 2002 and annoyingly I can't find the reference to the blasted thing anywhere now. I had its

[DOTNET] UITypeEditor in PropertyGrid???

2002-06-04 Thread Arulraja Koildason
Hi, I am using a UITypeEditor in my Propertygrid Control, Is there a way to add items to that Editor( I am using Combo box in this case) at runtime. If so can u pls give me an example. Help will be appreciated Thanks Livi _ MSN

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a s trin g)

2002-06-04 Thread Marsh, Drew
Chris Sells [mailto:[EMAIL PROTECTED]] wrote: > No one I know is working on such a book. Hmmm... I coulda sworn. Wishful thinking I suppose. ;) Later, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develo

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a strin g)

2002-06-04 Thread Serdar Kilic
Effective C# is already available ;) http://www.sellsbrothers.com/spout/#effcsharp Regards, Serdar Kilic | skilic.com - Original Message - From: "Shawn Wildermuth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 6:38 AM Subject: Re: [DOTNET] Effective.NET book..

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a strin g)

2002-06-04 Thread Chris Sells
No one I know is working on such a book. Chris Sells http://www.sellsbrothers.com/ > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]] On Behalf Of Marsh, Drew > Sent: Tuesday, June 04, 2002 12:46 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET]

Re: [DOTNET] ArrayList vs. DataSet

2002-06-04 Thread Greg Gates
Hello Bob: Not sure why, but the response you posted came out garbled. thanks, Greg On Tue, 4 Jun 2002 15:27:47 -0700, Beauchemin, Bob <[EMAIL PROTECTED]> wrote: >QSBEYXRhU2V0IGlzIGEgc2VyaWVzIG9mIGNvbGxlY3Rpb24gY2xhc3NlcyBiYXNlZCBvbiB0aGU g >QXJyYXlMaXN0LiA7LSkgVGhlcmVmb3JlLCB0aGUgb25seSB0aGl

Re: [DOTNET] ArrayList vs. DataSet

2002-06-04 Thread Nick Wienholt
If you program in terms of interfaces like ICollection and IEnumerbale, which are supported by both ArrayList and the child collections of DataSet, you can interchange either implementation where appropriate. This would make either solution 'flexibility-neutral'. Nick - Original Message ---

[DOTNET] Drawing Question

2002-06-04 Thread Peter Vertes
Hello All, I have a question about WinForms. I'm writing this C# app. that is supposed to display a group of machines and the way they are connected to each other. I've never done any image representation within a GUI before and I would like to seek some advise on what would be the best way

Re: [DOTNET] ArrayList vs. DataSet

2002-06-04 Thread Beauchemin, Bob
A DataSet is a series of collection classes based on the ArrayList. ;-) Therefore, the only thing that you gain by using a DataReader to populate an ArrayList is that you don't allocate the (relatively) small bits of storage used to store column definitions, table definitions, etc. If your Arra

[DOTNET] Debug assertion when showing a managed MessageBox from an MFC application?

2002-06-04 Thread Chris Sells
This is new. I run the MFC wizard with all the defaults, set all the right switches to get it to compile with managed extensions, did a #using on System.Windows.Forms.dll, #undef'd MessageBox and run the following line of code in OnAppAbout: System::Windows::Forms::MessageBox::Show(S"Ain't .NET c

Re: [DOTNET] Handling Unhandled Exceptions

2002-06-04 Thread Nick Wienholt
Richter's ".NET Framework Programming" deals with the topic in great depth, and cover the behaviour of unhandled exceptions in all different types of applications (WinForms, ASP.NET). This is the best reference I have seen on the topic. Nick - Original Message - From: "Paul Stevens" <[E

Re: [DOTNET] Remoting question

2002-06-04 Thread Stan LaRue
Jeez, I was afraid you were going to say that. It is the client machine. The whole reason I was doing the factory pattern was so that I would not have to distribute new builds of the component to the client. Oh, well, give and take I guess. Thanks for your help, Mike, I sincerely appreciate you ta

[DOTNET] Odd XML Parsing exception when I pass & in...

2002-06-04 Thread Phill Tornroth
Hey.. Ugly one. I have a webmethod that takes a string (which is actually XML), and parses it.. does some stuff, and returns a success or error code to the caller. (For the record, the reason it's a string instead of an XmlDocument parameter or something similar is that originally we couldn't gua

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Murphy, James
I understand that the refinement over using weak references would be to dictate the objects that get collected rather than letting the GC decide. That way you could institute the most recently used policy. Assuming that makes a difference. It might but in that case if you keep your cache too sma

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Marsh, Drew
Willy Denoyette [mailto:[EMAIL PROTECTED]] wrote: > And of course you can call Delete on the ManagementObject > to delete the files like: > > queryCollection = query.Get(); >foreach( ManagementObject dataFile in queryCollection ) { > // delete file object in the collection >

[ADVANCED-DOTNET] template columns/data grids, handling no rows returned

2002-06-04 Thread bev
I have a data grid, bound to one field. when I do the sql statement, I get no rows back. what I would like to do, is display a friendly message "N/A" when this occurs. below is the data grid definition. in the sql statement, I did a retrieval with isnull(field,"N/A") on that field. only the head

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Murphy, James
> Maybe I'm misunderstanding the documentation, but it seems to > be saying > that if I have a weak reference to an object, the GC doesn't see that > object as any different from an object to which I have no reference, > even though I might want it to leave weak-referenced objects alone > unless m

Re: [DOTNET] Effective.NET book... (was: RE: Converting a datatable to a strin g)

2002-06-04 Thread Shawn Wildermuth
I think Don Box (formerly of DM) is working on Effective C#, but I am not sure about .NET on the whole. Maybe someone has already written a book with that title. Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EM

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Willy Denoyette
And of course you can call Delete on the ManagementObject to delete the files like: queryCollection = query.Get(); foreach( ManagementObject dataFile in queryCollection ) { // delete file object in the collection dataFile .Delete(); } Willy. - Original Messag

Re: [DOTNET] Calling Java classes from ASP.NET

2002-06-04 Thread Greg Reinacker
You might try Ja.NET [1], from Intrinsyc. There's a review of it here [2]. I haven't used it myself... [1] - http://www.intrinsyc.com/products/bridging/janet.asp [2] - http://www.devx.com/dotnet/articles/ir051402/ir051402-1.asp Greg Reinacker Reinacker & Associates, Inc. http://www.rassoc.co

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Brad Wilson
Joel Mueller wrote: > Maybe I'm misunderstanding the documentation, but it seems to be saying > that if I have a weak reference to an object, the GC doesn't see that > object as any different from an object to which I have no reference, > even though I might want it to leave weak-referenced objec

Re: [DOTNET] Remoting question

2002-06-04 Thread Mike Woodring
Which machine is getting the exception (client or server; and if server - is it crashing the server or is the exception getting serialized back to the client for processing). My guess is that you don't have the assemblies in the right spot. Since the MBV type needs to be deserialized on the clie

[DOTNET] ArrayList vs. DataSet

2002-06-04 Thread Greg Gates
Hello: What are the advantages and disadvantages of eschewing the DataSet in favour of using a DataReader to populate objects and adding the objects to an ArrayList? I'm wondering about the performance/flexibility tradeoffs. thanks, Greg You can read messages from the DOTNET archive, unsubscrib

Re: [ADVANCED-DOTNET] Size of object

2002-06-04 Thread Joel Mueller
I'm sorry, but I'm a bit confused by this. Ben just got done saying that he needs a mechanism whereby objects that were accessed least-recently are removed first, then you tell him that the garbage collector behaves more-or-less the opposite of what he needs, but that he should go ahead and use we

Re: [DOTNET] Checked casting between DataSet and its children

2002-06-04 Thread Loc Nguyen
So to understand you correctly, you have your own custom tool to help modify the code generated by the XSD to class generator? I thought about replacing or not using this tool because it didn't do everything I wanted. What do you mean by maintaining metadata in the schema, using your own name

[DOTNET] Effective.NET book... (was: RE: Converting a datatable to a strin g)

2002-06-04 Thread Marsh, Drew
Peter Foreman [mailto:[EMAIL PROTECTED]] wrote: > Wow Drew! > > I think it is time you wrote a Scott Meyers-esque Effective > .Net book. Ever considered it? I would urge you to do so > for the good of the rest of us :-) Heheh, thanks for the kind comments! I have considered writing a book nume

Re: [DOTNET] XML to string and vice versa

2002-06-04 Thread Karen Healey
I did... plus rewrote in C#. You also didn't need the XMLTextReader (but wasn't gonna say anything...). Anyhow, thanks again! Karen - Original Message - From: "franklin gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 15:38 Subject: Re: [DOTNET] XML to st

Re: [ADVANCED-DOTNET] threadpool and STA

2002-06-04 Thread Pradeep Tapadiya
As far as I know, the apartment model cannot be changed for the system-defined ThreadPool class. Pradeep http://www.tapadiya.net/pradeep - Original Message - From: "Zoltan Csibi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 4:02 AM Subject: [ADVANCED-DOTNET]

Re: [DOTNET] XML to string and vice versa

2002-06-04 Thread franklin gray
Actually, throw out the try catch block. I don't know what I was thinking putting that in there. -Original Message- From: Karen Healey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:30 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] XML to string and vice versa Thank you! T

Re: [DOTNET] XML to string and vice versa

2002-06-04 Thread Karen Healey
Thank you! That worked. I haven't played with System.IO.StringReader so I assumed that I could not use DataSet.ReadXML. Thanks again! Karen - Original Message - From: "franklin gray" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 15:20 Subject: Re: [DOTNET]

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Murphy, James
Heartily agree! At least so Blog/web content along those lines. :) Jim > -Original Message- > From: Peter Foreman [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 3:17 PM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] Converting a datatable to a string > > > --- "Marsh, Drew"

Re: [DOTNET] XML to string and vice versa

2002-06-04 Thread franklin gray
such as Public Function CreateDS(ByRef XMLString As String) As DataSet Try ' Create Dataset from xml string Dim oDS As New DataSet() Dim MyStringReader As System.IO.StringReader Dim MyTextReader As Xml.XmlTextReader MyStr

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Peter Foreman
--- "Marsh, Drew" <[EMAIL PROTECTED]> wrote: > This avoids the overhead of IEnumerable and IEnumerator and allows the MSJIT > will optimize away bounds checking on the array. Wow Drew! I think it is time you wrote a Scott Meyers-esque Effective .Net book. Ever considered it? I would urge you

Re: [DOTNET] XML to string and vice versa

2002-06-04 Thread Jon Finley
Karen, Try Dataset.ReadXml Jon Finley > -Original Message- > From: Karen Healey [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 04, 2002 2:13 PM > To: [EMAIL PROTECTED] > Subject: [DOTNET] XML to string and vice versa > > > Hi, > > I've created a dataset and then I write the datase

[DOTNET] XML to string and vice versa

2002-06-04 Thread Karen Healey
Hi, I've created a dataset and then I write the dataset to a database by taking the XML string of the dataset and storing that as one column in the database (because the dataset is variable). In other words, I call GetXml on the dataset, and store this string. Now I want to go the other way...

Re: [DOTNET] SoapExtension communication

2002-06-04 Thread Alex DeJarnatt
Wil, your SoapExtension has access to the proxy or service object using the SoapClientMessage.Client or SoapServerMessage.Server properties (you need to downcast the SoapMessage parameter to ProcessMessage). You can put this value in a property or field and access it that way. alex -Original

Re: [DOTNET] OO Architecture question...

2002-06-04 Thread Jeff Reese
I'm curious why you say that it is necessary to make sure that a user stays within his original server. The original poster mentions that he would be using load balancing with a dedicated state server. Is there a reason other than state management that you want him to keep his users requesting t

Re: [DOTNET] Calling Java classes from ASP.NET

2002-06-04 Thread George Mladenov
Halcyon Software offers a .NET to Java (N2J) Bridge: http://www.halcyonsoft.com/products/iHUB.asp I've never used it, though. On Tue, 4 Jun 2002 04:55:52 -0700, Farhan <[EMAIL PROTECTED]> wrote: >is it possible to call Java classes from ASP.NET? I know this is very >generic question but i am n

Re: [DOTNET] Remoting, I think

2002-06-04 Thread Marsh, Drew
David B. Bitton [mailto:[EMAIL PROTECTED]] wrote: > new sk00l Heheh... cool. ;) First, if you just need signaling you might want to consider firing WMI events. It's abstract and easy to hook into with System.Management, though there will be a slight learning curve if you've never used WMI befor

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Blain Timberlake
Very interesting Thanks for the code, I'll give that a whirl and see how it plays out. =Blain -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Marsh, Drew Sent: Tuesday, June 04, 2002 2:16 PM To: [EMAIL PROTECTED] Subject

Re: [DOTNET] Remoting question

2002-06-04 Thread Stan LaRue
FileNotFoundException if I remember correctly (I dont have access to the code right now). I should also mention that the MBR is an object factory that is attempting to return the MBV object through an interface. Stan On Tue, 4 Jun 2002 10:04:42 -0600, Mike Woodring <[EMAIL PROTECTED]> wrote: >

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Marsh, Drew
I said: > Note: I'm using a literal string for the filter, but you need > to escape path > quotes at the WMI query level. I meant: "you need to escape path *separators* at the WMI query level." Later, Drew .NET MVP You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subs

[DOTNET] Scale ADO.Net to SQL Server over Internet - How?

2002-06-04 Thread Avi Nahir
Hi all, I now understand how to use ADO.Net using a local database in my WinForm: I have a DataAdapter, DataSet, DataGrid etc. My question is: How do I scale up to an Internet scenario using SQL Server? I speak about Internet scenario meaning that it's not Intranet - my users are ordinary around

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Marsh, Drew
Blain Timberlake [mailto:[EMAIL PROTECTED]] wrote: > Correct, and this way has been working for me, but for some > reason I recall seeing an example that did it in a much > simpler manner, but I can't find it to save my life. Thought > someone else might have seen something on it. You could use

Re: [DOTNET] Why don't Buttons have a ToolTip property ?

2002-06-04 Thread Sean Greer (SBI-Chico)
Drop a ToolTip control on the form and the Button will then have a ToolTip property. The ToolTip control supports the IExtenderProvider interface, by which it let's the designer know that it can extend properties to controls that are in the same container. Seang -Original Message- From:

Re: [DOTNET] Why don't Buttons have a ToolTip property ?

2002-06-04 Thread franklin gray
They do it you add a tooltip control to your form. -Original Message- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 8:10 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Why don't Buttons have a ToolTip property ? Why don't the standard push buttons have a tooltip

[DOTNET] Why don't Buttons have a ToolTip property ?

2002-06-04 Thread Jeff Roberts
Why don't the standard push buttons have a tooltip property ? This would be a nice feature to have ! No ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Remoting, I think

2002-06-04 Thread David B. Bitton
new sk00l -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh Daily™ - Original Message - From: "Marsh, Drew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 1:30 PM Subject: Re: Remoting, I think > David B. Bitton [mailto:[EMAIL PROTECTED]]

Re: [DOTNET] Remoting, I think

2002-06-04 Thread Marsh, Drew
David B. Bitton [mailto:[EMAIL PROTECTED]] wrote: > I'd like to have an app running in the foreground, and handle > calls coming in from an ASP page. How would I allow code > from ASP to interact w/ a running app (a WinForms app)? > Would I use remoting? And if so, how? When you say "ASP" do y

Re: [DOTNET] Remoting, I think

2002-06-04 Thread David B. Bitton
What I was thinking was the ability to change front end behavior by the asp pages via a "command console" . -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh Daily™ - Original Message - From: "Browning, Don" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

[DOTNET] Expanding size of program as shown in add/Remove

2002-06-04 Thread Blain Timberlake
A little deployment package I've been debugging looks to keep growing each time I uninstall and reinstall it. I create the package on my machine. The /Release directory contains 3.5MB of data (all the little MSI installer stuff it puts there, etc...) of data. I copy that to Machine B and instal

Re: [DOTNET] Remoting, I think

2002-06-04 Thread Browning, Don
It sounds to me like your looking for an ISAPI filter of some sort, but I'm a little unclear from your post. Do you want the app to automatically intercept incoming http requests, or do you want the asp page to forward calls on to you app... Don -Original Message- From: David B. Bitt

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Marsh, Drew
Greg Gates [mailto:[EMAIL PROTECTED]] wrote: > I wrote the following routine to convert a datatable to a > string. However, I am wondering if this is the most efficient > way of doing it in .NET. > > private static string DataTableToString(DataTable table, > string delimiter) { > if (table.Rows

Re: [DOTNET] Remoting, I think

2002-06-04 Thread Pradeep Tapadiya
David, I guess what you are asking is what is the best way of inter-process communication between two .NET applications running on the same machine? Using .NET remoting with binary formatter over TCP is simple and efficient. Look at www.gotdonet.com for examples. Regards Pradeep http://www.tapad

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Marina Zlatkina
Ok, in that case, you may be able to use XSL transforms to take the XML and format it. Although to be honest, I know very little about that, so maybe someone else here knows if that is possible and if so how it should be done. On Tue, 4 Jun 2002 09:38:58 -0700, Greg Gates <[EMAIL PROTECTED]> wrot

Re: [DOTNET] Old Unanswer Question: How do you trap hosted IE events?

2002-06-04 Thread Jade Martin
I found a really nice tutorial at http://www.syncfusion.com/FAQ/WinForms/FAQ_c100c.asp#q645q I now can trap link clicks by using the BeforeNavigate event. Now I just need to figure out how to trap button clicks. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Greg Gates
Hi Marina: The string representation of the data is imported into a third party payroll application. The payroll app only understands delimited strings, not XML. thanks, Greg On Tue, 4 Jun 2002 09:24:34 -0700, Marina Zlatkina <[EMAIL PROTECTED]> wrote: >I don't know the purpose for which you

Re: [DOTNET] Calling Java classes from ASP.NET

2002-06-04 Thread David B. Bitton
Our app is using Java in conjuntion w/ ASP. I call my Java classes via SOAP. The Java code is running on a seperate machine (though that is only for resources sake) under Tomcat 4 and Apache SOAP 2.2. Once you fine tune the interop, it works like a charm! -- David B. Bitton [EMAIL PROTECTED] w

[DOTNET] Remoting, I think

2002-06-04 Thread David B. Bitton
I'd like to have an app running in the foreground, and handle calls coming in from an ASP page. How would I allow code from ASP to interact w/ a running app (a WinForms app)? Would I use remoting? And if so, how? -- David B. Bitton [EMAIL PROTECTED] www.codenoevil.com Code Made Fresh DailyT

Re: [DOTNET] Converting a datatable to a string

2002-06-04 Thread Marina Zlatkina
I don't know the purpose for which you are doing this, but have you considered using the table's XML representation? You could use the DataSet GetXml method, load that into an XmlDocument, then find the node corresponding to your table, and use that. It would be much easier to query the data using

Re: [DOTNET] Remoting question

2002-06-04 Thread Mike Woodring
Sure, it's possible. Just make sure the type you're returning is marked [Serializable]. What kind of failure are you getting (SerializationException, FileNotFoundException, etc...)? -Mike http://staff.develop.com/woodring http://www.develop.com/devresources - Original Message - From: "

Re: [DOTNET] Remoting question

2002-06-04 Thread Peter Laan
It's possible. Peter - Original Message - From: "Stan LaRue" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 04, 2002 5:18 PM Subject: [DOTNET] Remoting question > Could someone please tell me if it is possible for a method in a > MarshalByRefObj to return a marshal by

[DOTNET] Remoting question

2002-06-04 Thread Stan LaRue
Could someone please tell me if it is possible for a method in a MarshalByRefObj to return a marshal by value object? I've tried but I can't seem to make it work. So I am assuming it is not possible. Stan You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to ot

[DOTNET] Converting a datatable to a string

2002-06-04 Thread Greg Gates
Hello everyone: I wrote the following routine to convert a datatable to a string. However, I am wondering if this is the most efficient way of doing it in .NET. private static string DataTableToString(DataTable table, string delimiter) { if (table.Rows.Count == 0) {return String.Empty;} Stri

[DOTNET] Suddenly unable to create web projects!?

2002-06-04 Thread Dadi Ingolfsson
Hi, I´ve been working with web services in VS.NET for some time now but recently I started getting an error that is preventing me from creating any sort of web project!! The error I get doesn't really tell me anything: "The default web access mode for this project is set to file share, but th

[DOTNET] SoapExtension communication

2002-06-04 Thread Wil Burton
Is there any way to communicate between SoapExtension and web service on the server or SoapExtension and web service proxy object on the client? I am trying to implement an encryption extension that uses a different key per session. Unfortunately, I can't figure out a way to have the web service

Re: [ADVANCED-DOTNET] Streaming via Web Services

2002-06-04 Thread Thomas Tomiczek
The main disadavantage will be that the .NET web service implementations do not support "streaming" at all :-) Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: tatochip [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 4. Juni 2002 15:34 To: [EMA

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-04 Thread Greg Reinacker
Ah, quite right. For the archives, to confirm this for myself, I wrote a little C# code: using System; class Class1 { static int x = 0; [LoaderOptimizationAttribute(LoaderOptimization.SingleDomain)] static void Main(string[] args) { x += 5;

Re: [ADVANCED-DOTNET] Streaming via Web Services

2002-06-04 Thread Craig Andera
If you're talking about real streaming - like audio or video - then I doubt any XML+HTTP-based approach is going to work well. Instead, I'd recommend using one of the technologies specifically designed for streaming. If you want to leverage web services, set it up so that you can send a SOAP messa

Re: [DOTNET] DataSet Binding in Winform

2002-06-04 Thread Cédric Dardenne
OK, I have a workaround, but really don't know why it works this way. The workaround is the following : 1. Bind graphically the control to : "Table1.Field1", 2. Edit auto-generated code to update to : this.txtBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.myDS, "Table1.ChildRe

Re: [DOTNET] a c#/client/server/remoting design problem

2002-06-04 Thread Yuval Gross
i've found a solution. thanx anyway. Peter Laan <[EMAIL PROTECTED]> wrote: Lets see if I understand your problem. You are conserned that the person who writes the client might accidentaly code it wrong and create a writable document when it shouldn't. Correct? I was about to suggest that the

Re: [DOTNET] DirectoryNotFound Exception

2002-06-04 Thread Todd Clemetson
Prashanth, I haven't had a chance to play with the .NET compact framework, but in Embedded Visual C++ 3.0, each emulator had its own directory structure on the hard disk that simulated the directory structure you would find on the target device. This allowed you to place configuration files, etc

Re: [DOTNET] Class Member Initialization.

2002-06-04 Thread Mitch Denny
Robert, A general philosophy that can be applied is to aquire resources late and release early, however it really depends on the nature of the problem you are trying to solve. Sometimes its best to do alot of upfront initialization to make response times a little snapper in other points of execut

Re: [DOTNET] DirectoryNotFound Exception

2002-06-04 Thread Bryan Batchelder
Its because the code is being run in the emulator - which for all intents and purposes is a separate machine, and cannot communicate with your PC except through the normal means any other pocket device can (i.e. ActiveSync, etc) Just copy your XML file to the file system on the emulator. --b Br

[DOTNET] System.Net.WebException

2002-06-04 Thread SUBSCRIBE DOTNET Tantra
Greetings I use IIS for hosting remote objects. I have the windows application client. When I try to create remote object, this exception occured : System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. Regards Tantra You can read messages from the

Re: [ADVANCED-DOTNET] Singleton pattern

2002-06-04 Thread Mike Woodring
Actually, the LoaderOptimization flag controls how the JIT-compiled code for types is handled. But it won't affect the observable nature of having types loaded separately into each appdomain from the standpoint of a developer and their expectations with respect to the scope of static fields. The

Re: [DOTNET] .NET Printing HELP!!!

2002-06-04 Thread Sam R. Akhtar
We needed to print a label to formatted specs and went through a slew of potential solutions until we settled on ScriptX from Mead & Co (http://www.meadroid.com). Works very well, with pretty much any kind of printer you can think of, and of course does more than just labels. Very professional g

Re: [DOTNET] try catch question

2002-06-04 Thread Jacob Grass
Just add multiple catch statements: Dim a As Integer = 1 Dim b As Integer = 0 Dim y As Integer Try y = a\b Catch y As DivideByZeroException Debug.Writeline("DBZ") Catch x As Exception Debug.Writeline("Exception") Finally End Try Will catch on the first catch. . .Any

[DOTNET] DirectoryNotFound Exception

2002-06-04 Thread PrashanthG
Hi, I am developing a small Prototype in .Net Compact Framework targeting Pocket PC 2002 using .Net CE Beta1. In the application I am reading an xml configuration file present on my local hard disk. But this throws an exception DirectoryNotFound. I am using Emulator for testing. Is it something

Re: [DOTNET] try catch question

2002-06-04 Thread Jeff Roberts
thats simple enough ! thanks You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] try catch question

2002-06-04 Thread Steve Johnson
> Is it possible to catch more than 1 type of exception ? I am calling a > method that can throw different types of exceptions, how do I catch them > all ? try { } catch (ExceptionType1 e) { } catch (ExceptionType2 e) { } catch (Exception e) { } finally { } -- Steve Johnson 3t Systems You can

[DOTNET] try catch question

2002-06-04 Thread Jeff Roberts
Is it possible to catch more than 1 type of exception ? I am calling a method that can throw different types of exceptions, how do I catch them all ? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Deletion of old files....

2002-06-04 Thread Blain Timberlake
Correct, and this way has been working for me, but for some reason I recall seeing an example that did it in a much simpler manner, but I can't find it to save my life. Thought someone else might have seen something on it. =Blain -Original Message- From: The DOTNET list will be retired

  1   2   >