Aleksey Savateyev's Q&A profile
.NET Development filesystem.getfiles
hello, does anyone know any way to speed up the listing of files in vb.net 2005 This is the code i want to speed up: for i=1 to my.computer.filesystem.getfiles(path).count listbox1.items.add(my.computer.filesystem.getfileinfo( my.computer.filesystem.getfiles(path).item(i-1)).name) Next The problem is even if I use a backgroundworker it takes too long to get all the files in a directory if there's a mass amount of data (eg: 2000-3000 files). Thnx a lot; In your current code you are calling the GetFiles() method multiple times, twice per itteration of the loop in fact, each time it is going out and getting the list of files… ...Show All
.NET Development .NET Startup Performance, Explain to me what's going on.
I wrote an App in VB, MDI, with a winform crystal report that pulls info from a small table, less then 100 rows. On client machines running this app for the 1st time at the beginning of the day the startup performance is horrible! (typical client machine specs, xp, 2ghz cpus, 256mb mem) It's my understanding that before the app is launched it's JIT compiled then run. This does not seem to be the case as the main form (mdi parent) will load..then many seconds later the menu bar on that form will load, then if they click one of the menu choices, another many seconds for the child form to appear, etc, etc.. What the bleep is going on ...Show All
SQL Server Get last record in a SQL database
Don't know if this is the right SQL section, but... using VBE, how do you SQL for the last record in the database Thanks. Dear Valeriy, Your reply has helped me a lot !!!! I have been searching for this answer since a long time and didn't get any answer from any where !!!!I am extremely thankful to you. May God Bless you always Thanks Maleeha ...Show All
Visual Studio 2008 (Pre-release) XAML, RenderTargetBitmap - picture disappears from image after load testing
I'm developing a simple ASP.NET handler that returns image that is rendered using XAML on server side. The problem that after stress testing picture disappears from returned image (but empty image is still returned). The picture here is XAML canvas (I put it to the bottom of the message) with different shapes and glyphs (rectangles with gradient fill, lines and text with digits). I tested on Windows 2003 (two processors, four processors), IIS 6.0, .NET 2.0, WinFX RC (February CTP), emulated 250 concurrent users. I have the following code: public MemoryStream CreateImageStream(String xaml) { object obj = System.Windows.Mar ...Show All
Software Development for Windows Vista Persistence & tracking in beta 2.2
I have created a simple application with 1 code activity, one delay and another code activity, in that order. If i'm enabling both the tracking and persistence, my workflow stops at unload If one if disabled, the other works just fine. Any ideas why this might happen Are you using a shared database Is the app hosted in ASP.NET or a win form app Can you post your code for creating the runtime and adding the tracking and persistence services ...Show All
Windows Forms audio conference
Hi ! Does anyone know about tools or libraries to make an audioconference application developped in delphi or C++ I've already tried the VCX Library 3.0 from lake of soft, and the RTC tool from the msdn without any success. Do you know if we can use the library from msn messenger that is able to do this kind of conference If you've&n ...Show All
Visual Studio Express Editions sendkeys and focus
Ok i got a bit of a prob. i'm tryin to make vb type in a webbrowser thing tht i got onscreen in a vb form. my friend suggested send keys but you have to set a focus to the webbroweser or somethin like tht. i tried everything he's said but i've had no luck. can anyone out there help me if u didn't get tht, i want vb to type in a webbrowser bit which is in my form when i click a button. ok a bit of an update here. i tried what my friend said again except with a textbox. tht worked. But i tried the exact same thing except with my webbrowser and it doesn't work. Why not and how can i fix it so it will ...Show All
SQL Server Authentication mode, connecting from webpage
Hello, I need help setting up SQL Server Express edition. What I did so far: 1) Downloaded and installed it with windows authentication 2) Installed SQL Server Management Studio Express 3) Created a database 4) Realized I needed SQL Authentication for connecting via php page. 5) Followed these instructions to enable SQL Authentication Now that SQL Authentication is enabled, how do I create a user account that I can use in php pages to connect to the database Thanks, Kurt Hi Chad, I keep getting an error when I try to connect from a webpage. For the server can I use localhost Warning : mssql ...Show All
Visual Studio Team System Exclude EnumStorageShouldBeInt32 for importing C++ enums?
I got hit with the "EnumStorageShouldBeInt32 " rule ( http://www.gotdotnet.com/team/fxcop/docs/rules.aspx version=1.35&url=/Design/EnumStorageShouldBeInt32.html ) One area that I don't think this makes sense for is when using enums to import native C++ DWORD-based enumerations. For example, I want to import kernel32!ContinueDebugEvent, which takes a DWORD for its 3rd parameter, and that can be set to one of several strange values. I'd like to hide those values behind an enum like so: public enum ContinueStatus : uint { DBG_CONTINUE = 0x00010002, DBG_EXCEPTION_NOT_HANDLED = 0x80010001, } [ DllImport (Kernel ...Show All
Visual C++ run time errors!
Why am I getting these errers at run time ////////////////////////// Debug Assertion Failed! File: dbgdel.cpp . . Expressiong: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) ////////////////////////// Debug Assertion Failed! File: dbgheap.c . . Expressiong: _CrtIsValidHeapPointer(pUserData) ///////////////////////////// Debug Assertion Failed! File: dbgheap.c . . Expressiong: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Is there something wrong with this code (I compiled the same code using GCC for win32 with no run time error). class cString{ char *cData; unsigned int c ...Show All
SQL Server DECODE Statement
Is there something like the DECODE Statement in ORACLE also provided for SQL-Server Thanks in advance Raimund Look in Books On-Line for the CASE statement. You will probably want the simple CASE format. Here is an example from there: CASE type WHEN 'popular_comp' THEN 'Popular Computing' WHEN 'mod_cook' THEN 'Modern Cooking' WHEN 'business' THEN 'Business' WHEN 'psychology' THEN 'Psychology' WHEN 'trad_cook' THEN 'Traditional Cooking' ELSE 'Not yet categorized' END, ...Show All
Visual Studio Changing Matrix subtotal aggregation
Hi, I have the following problem, I have a matrix and i want to do a subtotal that is a sum of every column and the other total, to not appear or be the average of the values. Matrix 01/01/2005 02/01/2005 Total Qty % Qty % Sum(Qty) Sum(Qty)/ Sum(ShopTotal) Shop 1 2 12,5 4 20 6 6/36 Shop 2 8 50 6 30 14 14/36 Shop 3 2 12,5 6 30 8 8 /36 Shop 4 4 25 4 20 8 8/36 Shop total 16 100 20 100 36 100 Is it pos ...Show All
Software Development for Windows Vista WorkflowPersistence simple question
Hi there, I'm writing my own workflow persistence service to support another database. I have following two save methods to override in my service: SaveCompletedContextActivity(Activity root) SaveWorkflowInstanceState(Activity root, bool unlock) The question is quite simple, how do I find in these two methods when I need to INSERT workflow record in database and when I need to UPDATE workflow record in database I can't find any boolean flags on Activity object indicating that this instance was already persisted. The primary key in your table should be the InstanceId. Then you just need to ch ...Show All
Visual Studio Express Editions Tool tips in statusstrip
I start working with VB 2005 EE. But I find one trouble.I was put StatusStrip control on design panel and ShowItemTooltips property switch on true. Then I put the Tooltip control on design panel and on the form add some controls. I fill Tooltip on ToolTip1 property with text. I see hint inside popup baloon, but not in the Statusstrip control. What i do wrong As far as i can see, the ToolTip will be displayed in either a Balloon or a PopUp "window" (depending on the "isBalloon" property). If you would like to use the StatusStrip control to display a certain "ToolTip" then you co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can I use PixelShaders with Sprites
Hello, First, We can I use pixel shaders with sprites Second, Is Sprites fast enough to not drawing with a conventional way (Holding the vertices in vertex buffer and then apply a texture to them and use the pixel shader as regular) I want to know which one is faster Thanks, Mustafa ELBanna Point sprites are fast, but very limited - you can't do a lot of things with them. And they're not usually significantly faster than normal triangles. I would use the standard method to start with. ...Show All
