[ADVANCED-DOTNET] Process.CreateProcess for Compact Framework

2002-06-21 Thread LIK MUI
I am trying to invoke an external process using System.Diagnostic.Process class for CompactFramework. But apparently it does not exist (checked using ildasm on the CF mscorlib). I also tried using P/Invoke on CoreDLL.dll to use its CreateProcess() but got a "System.NotSupportedException". Does

Re: [ADVANCED-DOTNET] Active Directory Reporting Integration

2002-06-21 Thread Joseph E Shook
Commerce Server 2000 solves this problem scenario similar to the way John mentioned below. A User object handles all of the Active Directory and SQL server access so the client doesn't have to handle the details of coordinating this. Just thought that this would be interesting to note. -Ori

[ADVANCED-DOTNET] COM Interop: Problems with Regasm and assemblies in leaf directories

2002-06-21 Thread Sam Gentile
The issue is pretty straightforward. When you run RegAsm against an assembly, it tries to find the assemblies that are referenced. Based on my experiments, it looks for them in the current directory or in the GAC, similar to what happens at execution time. So, if we generate assemblies that ref

Re: [ADVANCED-DOTNET] Listing WinNT:// user group Membership

2002-06-21 Thread Marsh, Drew
Powell, Simon [mailto:[EMAIL PROTECTED]] wrote: > Why doesn't this list the group membership? > How can I get it to list the group membership for an account? > If you know of any good books or example code it would be > much appreciated? In the WinNT ADSI schema, groups are not a property of a u

Re: [ADVANCED-DOTNET] GAC Download Cache

2002-06-21 Thread Keith Hill
On Fri, 21 Jun 2002 06:00:16 -0400, Browning, Don <[EMAIL PROTECTED]> wrote: >In my (limited) experence with this, the download cache is used when you >do an assembly.LoadFrom(urlLocation) [1] where URL is the HTTP address to >locate the assembly. So what if you do an Assembly.LoadFrom() on a lo

Re: [ADVANCED-DOTNET] Killing a process from a .NET application

2002-06-21 Thread Ian Griffiths
Well...this is why we have multitasking operating systems - so that even when one process wants to consume 100% of the CPU, other processes still get a look in. The only situation in which a process could starve another of CPU is when one or more of its threads runs with raised priority. But if

Re: [ADVANCED-DOTNET] PInvoke, WinCE, and CompactFramework

2002-06-21 Thread Ken Alverson
> From: Lik Mui [mailto:[EMAIL PROTECTED]] > Posted At: Friday, June 21, 2002 2:54 AM > Subject: Re: PInvoke, WinCE, and CompactFramework > > Thanks Paul for pointing that out. > > Your approach seems to suggest that name mangling is due to the C++ > compiler for C++ symbols but ok for regular C

Re: [ADVANCED-DOTNET] Active Directory Reporting Integration

2002-06-21 Thread Bill Swartz
yep, know about the AD Changes, and we are using the GUID for the ID of the record stored in the database. It's just a pain in the butt to have to add this additional layer, AND store the data in two places. -Original Message- From: Moderated discussion of advanced .NET topics. [mailto:

[ADVANCED-DOTNET] Reflection.Emit issues (was: Re: [ADVANCED-DOTNET] Reflection To Create Enum)

2002-06-21 Thread Paolo Molaro
On 06/21/02 Peter Lillevold wrote: > Well ofcourse, everything you can create using handtyped code and a compiler > can be generated using Reflection. Barring bugs and omissions, of course. And in Reflection land there are quite a bit of both. For example, you can't create a nested enum. Here is

Re: [ADVANCED-DOTNET] Blobs and ADO.NET

2002-06-21 Thread Sean Greer (SBI-Chico)
I haven't worked with the types under System.Data.SqlClient, however when using the Ole* classes you should be setting the .Size member of the OleDbParameter variable that represents the image data. So, perhaps you should add this: cmd.Parameters["@blobdata"].Size = imageData.Length; HTH, Se

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread kojiishi
Change your view point. Make your child table as your master table; i.e., in an expression column in a child table, refer parent, like: column.Expression = "Parent(YourRelationNameHere).YourParentColumnNameHere"; You're right that one-to-many is not possible AFAIK, but many-to-one is poss

Re: [ADVANCED-DOTNET] PInvoke, WinCE, and CompactFramework

2002-06-21 Thread Lik Mui
Thanks Paul for pointing that out. Your approach seems to suggest that name mangling is due to the C++ compiler for C++ symbols but ok for regular C (perhaps for other languages like vb, C#, ...). Can you provide some more insights on this name mangling issue? You can read messages from the Adv

Re: [ADVANCED-DOTNET] Reflection To Create Enum

2002-06-21 Thread Peter Lillevold
Well ofcourse, everything you can create using handtyped code and a compiler can be generated using Reflection. To create an enum you must use the DefineEnum method of a ModuleBuilder object. Here is some code to get you started. AssemblyName an = new AssemblyName();

Re: [ADVANCED-DOTNET] Blobs and ADO.NET

2002-06-21 Thread Jeff Metzner
Using your example, instead of: SqlCommand cmd = new SqlCommand("StorePicture", conn); cmd.CommandType = CommandType.StoredProcedure; Try: SqlCommand cmd = new SqlCommand("INSERT INTO tablename VALUES(@filename, @blobdata)", conn); You can read messages from the Advanced DOTNET archive,

Re: [ADVANCED-DOTNET] HELP ---- VB.Net Performance

2002-06-21 Thread Ben Kloosterman
This would be the same with C#. Suggestions 1.use ngen.exe to precompile this form . Remember to inclkude the operation with your release. 2.When using such a large amount create text boxes and labels when required. Do not just show and hide panels - manualy create them when needed. 3.

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
> -Original Message- > From: Ian Griffiths [mailto:[EMAIL PROTECTED]] > I can see how I can use this when there is just 1 row in the > child table corresponding to a row in the parent table. But > what if there are many? For example, support my parent table > is Orders and my child table

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
hmm..yeah that does look interesting, and may be useful So..OTTOMH..if I created an expression to add a field to the child that simply indicated the presence of the parent (and vice versa), I could then filter out using these columns..hmm..I'll give that a shot :-) Thanks Merak > -Original

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Chris Anderson
This is actually what I ended up doing :-) It still means manually traversing the Child table looking for rows with no parent (so I can remove them), but there should only be about a hundred rows in the child (Sage-sourced) DataTable anyway, so it should be ok Thanks Merak > -Original Mess

Re: [ADVANCED-DOTNET] Killing a process from a .NET application

2002-06-21 Thread Stefan Holdermans
Lidor wrote: > I don't know if this is relevant but I try to kill the process when it is > stuck on an infinite loop and consumes ~100% CPU. Seems relevant to me. When another process is consuming 100% --- or almost 100 % --- off your CPU-resources, how is your coding going to be run!? --Stefan

Re: [ADVANCED-DOTNET] Reflection To Create Enum

2002-06-21 Thread Stefan Holdermans
Paul wrote: > Is it Possible to create an enum Using Reflection? Yep... use the classes in the System.Reflection.Emit namespace. Alternatively, you can apply the CodeDOM. -- Stefan You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other

Re: [ADVANCED-DOTNET] Filtering DataSets

2002-06-21 Thread Beauchemin, Bob
Here's the original inquiry: "...select the records in the first datatable that have corresponding customerID's in the second datatable". (I have added a row to my authors table, so numbers may not exactly match your copy) DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter( "

Re: [ADVANCED-DOTNET] GAC Download Cache

2002-06-21 Thread Browning, Don
In my (limited) experence with this, the download cache is used when you do an assembly.LoadFrom(urlLocation) [1] where URL is the HTTP address to locate the assembly. Don [1] ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemreflectionassemblyclassloadfromtopic1.htm -Original Message---