hypo's Q&A profile
Visual Basic Run-time error '-2147467259 (800004005)'.... HELP please!!!
I created a simple database program using VB 6. I use ADO connection. Though, I used DAO too for my DBGrid. I also use classes and modules. I was able to run and compile this program. I actually was using it for three months now. Then, i suddenly encountered this error: "Run-time error '-2147467259 (800004005)': Unrecognized database format:'<my .mdb path>'". I tried searching Microsoft KB but found none. I searched even the whole Microsoft site but to no avail. The only thing i remember before i encountered this is a MS patch was installed in my PC. The installation is automated by our company's servers. When i checked the last patch being installed before i encountered the error, MS06-034, it's a patch for ASPs which i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reading embedded files
Hi, i've added a .xml file to my xna project for windows, i've set it to be an embedded resource, how i can i them read the file n e attempt i make seems to try to read a file from the hdd or from a url many thanks ok the following line of code XmlTextReader reader = new XmlTextReader ( Assembly .GetExecutingAssembly().GetFile( "propladderwin.codehelp.xml" )); while (reader.Read()) { } throws a n erro Object reference not set to an instance of an object. when compiled and run n e idea what may cause this ...Show All
.NET Development build query based on user input criteria (search function)
I have a search form which contains a set of search criteria and a datagridview. the datagridview is populated by entering none or some of or all of these critera and click on "search" button. the search criteria are: name, dob, gender, date_time_registered, active , etc. I am able to build a simple query for each possibility, e.g. only search for one field, or search for all fields, or search for any 2 or these fields. This is rather inefficient. Is there a way to build one query to accommodate all possibilities I tried to do something like this: SELECT * FROM patient WHERE name = AND dob = AND date_time_registered = AND active = assume user only specified two criteria: name and active, I did this in my code ...Show All
Software Development for Windows Vista Are your customers able to modify workflows?
Hello, We are considering use of Workflow for internal projects with not well defined or ever changing business rules. I believe implementation time (and especially maintenance) for such projects can be improved with WF. However, it is crucial for us to know that we can build a framework where not only developers but people from other departments (support workers, business developers and even customers) can take care of some workflow scenarios. If it's still us who will have to build and maintain all scenarios, then we need to perform a comprehensive analysis of where WF gives us benefits in comparison with traditional .NET components. In case you have a great experience with WF in your organization, can you please say a couple of wo ...Show All
Visual Studio checkout a file.(VSS+c#)
Hi. I connected to VSS using COM objects, that is located on the server. When I checkout a file to C:\test it checks out to the server c:\test and not to my local PC. IS there away to checkout not to the server's local computer folder but to the local computer from where the appiaction is run. Since not all users has access to the server machine. I am tring to find the local path's PC (user loged-in) when accesing the server.. (I use impersonation) Thank you in advance. I understand it is a server-side code.. But because it is, you saying what I am tring to do is impossible.. could you explain what exactly you mean "Because ASP.net is server-side code". sorry for aski ...Show All
.NET Development Bug in CLR
I don't know where I can send bug report. So.. If 2 threads simultaneously creating another threads this way: using System; using System.Threading; namespace HungsUp { class Program { static void Idle() { while(true) { Thread.Sleep(1000); } } static void CreateThreads() { for(int i = 0; i < 50; i++) { Thread thread = new Thread(new ThreadStart(Idle)); thread.Priority = ThreadPriority.BelowNormal; thread.Start(); } } static void Main(string[] args) { for(int i = 0; i < 2; i++) { new Thread(new ThreadStart(CreateThreads)).Start(); } Idle(); } } } Then CLR will hangs up. Tested on .NET 2.0 with hotfix #1. You are ...Show All
SQL Server CSV file as a data source
Hi, Can a CSV file be used as a data source for Microsoft Analysis Services 2005 Rgds hari You can create SSIS pipeline, which will read CSV's and then uses AS Processing Task to load data into partitions. I have done it in the past, and while it is not a smooth ride (especially when your partitioning scheme of the cube is not trivial), it can be made work. ...Show All
SQL Server SQL Server 2000: VB Client: (250,000 login + logouts per hour) OR (1500 Active Connections)?
I understand that it depends on what we do. Here is the use case: Number of simultaneous users (systems): 800 Each System needs (max) 4 connections Environment: Windows 2003 EE , SQL Server 2000 EE, Two Tier VB Client Apps with good hardware (quad dual code with 32 GB RAM). And connection is being opened before executing an SP / SQL Statement and will be closed immediately (ADODB.Connection.Close + ADODB.Connection = Nothing). And most of these SP / SQL take few milliseconds (or lessthan a second) and gap between calls, 50% of the times, will be few seconds. And at any give point of time Average Number User Connections = 200 to 500 From server side, we are seeing around 250,000 login + logouts (Audit Login + Audit Logout) ...Show All
Visual Studio 2008 (Pre-release) Performance problem
Hello, The following app creates a set of rectangles. The performance with WPF is pretty bad. On my brand new laptop (512 MB of RAM) it takes about two seconds to create or delete these rectangles. Is there a way to optimize this Code: using System; using System.Collections.Generic; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Shapes; using System.Windows.Media; namespace TestPerformance { class App { [ STAThread ] static void Main() { Application app = new Application (); app.Run( new MainWindow ()); } } class MainWindow : Window { public MainWindow() { canvas = new Can ...Show All
Visual Studio Team System Ridiculous code coverage results?
We're getting interesting code coverage results from unit tests. In every class that implements IList<T> and therefore must implement System.Collections.IEnumerable.GetEnumerator(), the code coverage result for GetEnumerator is absurd. These methods are 12 lines long, but code coverage says that 2400 or so lines aren't executed. The results roll up to the class level and then the namespace level, and really skew our results. I fully believe the methods are never exercised, but the coverage counter should be able to figure out how many lines there really are in the source. In addition, when coverage coloring is used in the IDE text editor, files containing GetEnumerator methods are painted randomly, as if the painter is computing a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Draw without Texture
do i HAVE to use a Texture/Texture2D/Texture3D loaded from a file to render anything within XNA, or can i give a buffer to a SpriteBatch or even tell it to just draw a simple line thankyou SpriteBatch can only draw textures, but if you write your own code that calls DrawUserPrimitives on the graphics device, you can draw any kind of geometry you like. You will probably want to set a BasicEffect, which has a property indicating whether it should draw textured or not. ...Show All
Visual Studio Express Editions Simulate hotkey press
Hi all, I'm trying to simulate some hotkeys to activate a program (though MapVirtualKey in use with keybd_event didn't work). I also tried simple SendMessages and PostMessages, but they didn't work eather (neather did the Screen Keyboard from Microsoft). As I kinda gave up the SendMessage to the Program itself (Send a mouseclick to a specific window on specific coordinate)... I need to simulate the hotkey which is set in the program... I already tried: keybd_event(VK_NUMPAD1, MapVirtualKey(VK_NUMPAD1, 0), 0, 0) keybd_event(VK_NUMPAD1, MapVirtualKey(VK_NUMPAD1, 0), KEYEVENTF_KEYUP, 0) But that didnt work... If someone could help me, then please... The Hotkey can be Global Hotkey, DirectInput hotkey or somethi ...Show All
Visual Studio Team System Protocol violation - can I change how sensible the test shall be to protocol errors?
I get this error when running a test on a web page that I have no possibility to change: RequestFailed: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF Is it possible to configure how the test shall handle this so the test will not fail I also encountered the same exeption: private void Form1_Load( object sender, EventArgs e) { string Url = "http://www.microsoft.com" ; HttpWebRequest Hppt = ( HttpWebRequest ) HttpWebRequest .Create(Url); Hppt.Timeout = 10000; HttpWebResponse WebResponse = ( HttpWebResponse )Hppt.GetResponse(); Encoding enc = Encoding .GetEncoding(1252); StreamReader ResponseStream = new StreamReader (WebResponse.GetResponseStrea ...Show All
Visual C# How get a list of domain names
Hi everyone i have a little dude, how can i get a list of domain names like the login window of Windows Xp, i see some codes on internet using the system.DirectoryServices but i don't have the names that appear in the "connect to" field of login dialog of windows ...Show All
.NET Development DataTable.Load() Generates InvalidOperationException
Hello All: I am having a problem with the following code generating a "InvalidOperationException". The exception is thrown sometime, but not all the times. Does anyone have any idea why this code may be causing DataTable.Load() to throw that exception Thank you kindly. Jerry... p.s. Please forgive the cross-post. I must have inadvertantly posted this to WindowsForms. ***** Start Here ***** public partial class CollectionDetailStatusDataTable { public event TableFillingEvent TableFilling = null; private EventWaitHandle tableFilledWaitHandle = new ManualResetEvent(false); private CollectionDetailStatusTableAdapter tableAdapter = null; public CollectionDetailStatusTableAdapter Adapter { get { if (tableAdapter == nu ...Show All
