iammai's Q&A profile
.NET Development list files sorted by date
this must be easy, but I can't see how to do it. I can list the files I want (see code below) but they are listed in name order. Obviously I could sort them manually afterwards, but that sounds like hard work, any ideas anyone Thanks, Ade ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dim dir As DirectoryInfo = New DirectoryInfo(m_strDirectory & "\Export ...Show All
SQL Server SQL 2005 Very Slow on Itaniam 64bit
Hi, I am facing a very wierd problem with SQL 2005 Itaniam 64bit with 4 processor machine. A simple SQL Select Statement: Select * from table The statement takes almost 45 minutes on a table of 7 million records, while on SQL 2000 32bit 2 processor machine it takes 10 minutes. The checked the index, and rebuilt it several times and still the problem persists. I tried the database fine tuning wizard but still no effect. Tried ...Show All
.NET Development TableMapping Error
(1) I am using the undersaid code in order to select from more than one table and map it app using TAbleMapping string query_String=""; query_String += "Select empno from emp;"; query_String += "Select ename from bonus;"; OleDbCommand o_command= new OleDbCommand(query_String,o_connection); OleDbDataAdapter o_adapter= new OleDbDataAdapter(o_command); o_adapter.TableMappings.Add("Table","emp"); o_adapter.TableMappings.Add("Table1","bon ...Show All
SQL Server A Better Way (Complicated Select Statement)
After hours of trying, I finally got a select statement to return what I needed, but I am not sure how I am doing is the most efficient way. Please give me your input. Here's the situation: I want to allow customers to add to their magazine subscriptions online, so I created an aspx form that shows the magazines they are currently subscribed to and allows them to choose from other "available" magazines. In the available magazines fi ...Show All
.NET Development How to create XMLDocument using code that has multiple namespaces
Hi, I need to generate an XML doc which looks something like this: <Report xmlns=" http://ReportSchema " xmlns:rd=" http://DesignerSchema "> <Width>8in</Width> <rd:DefaultName>report1</rd:DefaultName> </Report> When I call CreateNode for the 'Report' node, I pass in the ReportSchema for the URI, but I am not sure what I can do to get the second namespace in there as well. ...Show All
Windows Forms Install-time code generation...
I am reading a book and found reference to Install-time code generation as being a part of an install that will compile all the msil dll code in to computer code. This is very interesting to me and I have been looking for information ...Show All
Visual C++ How to use Pointers to pass an matrix array?
I used to pass a one-dimension array by using pointer,like the following code: int * entry(int *a){ for(int be = 0; be<7; b++){ cout<<"Input: "; do{cin>>a[be]; }while(foo) return a; }; So I can read from arrays with no problems. However, when trying to pass a two-dimension array( Ex: a[50][50] ) using the same trick, I got the error C2109 message: How to use pointers or any methods to pass a matrix a ...Show All
Visual Studio Team System Is SQL Server 2005 June CTP compatible with VSTS Beta 2?
Hi all, We have been trying unsuccessfully to install VSTS for quite a while now (error 32000). Everytime we installed SQL Server 2005 April CTP, we always had "missing" files errors during the setup process for which we had to say "Ignore and continue". Is the June CTP compatible with VSTS Beta 2 Anyone installed VSTS with success using the SQL Server 2005 June CTP Is it installing "smootly" without "files missing" errors Thanks for ...Show All
Visual Basic Safely Remove Hardware
How to write vb code to unplug or eject the USB Storage Device safely Does the device have a driver or DLL to control it The function you would want would be managed by routines in those most in a dll. if you can identfiy a dll in via the device manager, with luck you can obtain a lot of information examining the dll with depends.exe. I know depends .exe is in <drive>:\Visual Studio 8\Common7\Tools\ ...Show All
Visual Studio Tools for Office Full trust is there : Still not working : VSTO, WSE 3.0 Permission / Security error
I'm using VS 2005 RC1, VSTO with Excel, and WSE 3.0 Oct CTP. I've encountered permission when I tried to instantiate the wizard-created classes (the Wse class). The exception is found to be a permission issue on the get configuration section of WSE. The error was the "An error occurred creating the configuration section handler for microsoft.web.services3: That assembly does not allow partially trusted callers." How do I grant the WS ...Show All
Software Development for Windows Vista VMRMulti from DX SDK
On Windows 2000 sample work fine But on Windows XP its can't open more that 3 video file , where problem Here any way to get number of VMR which im can open By default appcrash in function RenderFile ;( ...Show All
Visual C++ native members of managed classes?
Hi jedediah! What's the preferred way to effectively have a native class as a member of a managed class What do you mean class NativeClass { }; public ref class ManagedClass { protected private: NativeClass *_pNativeMember; }; jedediah wrote: It's the C#/VB monkies I'm worried about. C++/CLI seems to do the ...Show All
Visual C# best place to look for a cookie?
Hi all, hopefully a quick/easy question. i have a site im doing in v1.1 and i am using a small cookie to ensure the users have completed a profile that is in two steps. The cookie gets created when they press the first submit button and contains nothing more than a 6 digit string. After the profile has been completed (on a subsequent page) i delete the cookie. This is intended to allow the user to go to step 2 if they close the browser or ...Show All
Smart Device Development Open/Run HTML+JavaScript in Pocket PC 2003 Form
I need to open and run in my application's form (Pocket PC 2003 + .NET v1.1 + C#) a file with HTML+JavaScript content (that implement a mini-texteditor). Something like an Internet browser but it is in a form with other Windows.Forms controls (if it is posible). Scenario: user can input a text in a html textarea and formatting it (with html tags) using a JavaScript tool. Finally the user can save that in database). Can I get some help with ...Show All
Visual FoxPro I have a corrupted table. Is there a simple, FREE way of repairing or recovering the data?
I have a corrupted table. Is there a simple, FREE way of repairing or recovering the data Thanks, Jim Try this one . Run the following command from the command window: Set table validation to 0 Now open your table, add a new record, delete it and pack the table. Works in most cases !!! ...Show All
