Johanvdk's Q&A profile
Visual C# Speed comparison: Filestream.Seek vs. StreamReader
What's the fastest way to access the contents of 300,000 variable length "records" in an asynchronous manner A "record" is a text file approximately 20KB long. Here are some possibilities that I've considered: 1. Store each record as a file & store the file path location (ie: C:\test.txt) of the record. Use the StreamReader class (and File location ability of Windows Operating System) to locate, open, and read the file. 2. Combine all records into 1 file & store the record's location in the file (ie: byte 240 of 240000) and record length. Use the Filestream.Seek method to locate the starting file position and ...Show All
Visual C++ About my screen shot
Hi, I am writing a screen shot program with CImage object. I created a CImage object with Create() where I set the cx,cy, and bpp (bit per pixel) as the parameters. I set the cx=428, cy=302, and 24 for bpp for my CImage object. After taking a screen shot with my program, I saved it. Then, I opened the screen shot with Paint Shop Pro and check it on the resize window (through "Image | Resize" menu command) in Paint Shop Pro. In Actual/print size setting on the resize window of Paint Shop Pro, I found the resolution of my screen shots are only 72 pixels/inch. By using my program, I like to take screen shots having 160 p ...Show All
Visual J# auto Import
Is there anyway in VS 2005 to auto load import references in J#. I use the javax.swing.JOptionPane in most of my projects and was looking for a way to load it automatically into new programs. Thanks for any input. Let me get your question right. Are you looking for a way to add a reference automatically to your project if you refer some type from a particular DLL ...Show All
Microsoft ISV Community Center Forums Copying and pasting between spreadsheets
I have an Excel Macro which copies from a Source spreadsheet and pastes on the working copy. The Source spreadsheet is the result of a report gleaned from a non Microsoft database. Usually all works as expected. The problem comes when one of the items in the working copy does not appear in the Source copy. (If no activity occured, instead of displaying a zero, that particular item is excluded from the output. Since the procedure is copying and pasting to a set Range, these instances cause a mismatch on the Master Sheet and incorrect data in the linked cells elsewhere in the Workbook. I know there is a way to have the copy and paste tak ...Show All
SQL Server Size of database seems a bit large
I developed a vb app that imports csv data into an sql server db. The original text file is 36.5mb. The db after import is 230mb and the log file is 555mb. Is this normal Could be...that would depend on the schema of your database, column data types and sizes, way you are importing data, recovery model being used, etc., etc., etc. Would need much more information to say if it is or not, but a start would be by providing a script of the table(s) that make up the database (if it is only 1 or 2) and number of rows in each table...also anything on how you are loading/importing the data ...Show All
Windows Forms Adding nodes to a treeview dynamically
Hi I have a main Form with a treeView...and some nodes which are populated from a database....I have an Add New Node Form with an add method that adds a new node to the database...Obviously I have to reload from the database before I see the new node added. Now I want the node to be added dynamically...... This is in the Add form that&n ...Show All
Smart Device Development SSL
Hello, I'm new to WM development. I'm developing a client that should run on a Windows Mobile 5 device. I need to communicate with my server via SSL. Can anyone please point me to an example or a detailed document Thanks, Zohar. Have you searched through this forum yet ...Show All
.NET Development How to give an exe the permissions it wants
I'm trying to write a c# CGI app. When i simply use Console.WriteLine to output my results, everything is fine. But I want to use HTMLTextWriter and when I do, I get the following error below. When I run the program in a console it works fine, but not when I access it from a browser. The directory has read/execute permissions for the IIS user account, and I've explicitly stated [ AspNetHostingPermission ( SecurityAction .Demand, Level = AspNetHostingPermissionLevel .Minimal)] [ AspNetHostingPermission ( SecurityAction .InheritanceDemand, Level = AspNetHostingPermissionLevel .Minimal)] In my program. How then do I give ...Show All
Smart Device Development stream in vs 2005
Hi, I write a program for pocket pc 2003 in vs8 beta 2. I am using cout,cin,cerr...etc.And i compile without the error. But i can't see anything in the emulator of pocket pc 2003 in vs 2005 Can you explain to me Does vs8 really support stream for pocket pc PocketConsole works for me on WM2003SE. BTW, it is not a CMD shell program. It just displays the output directed to stdout and reads stdin in a cmd like window when a console program is executed. The window closes if the program terminates. So if you have a short lived program you should write something like getchar() before its return statement so that you have time to read the out ...Show All
Software Development for Windows Vista LockProfile of IStreamBufferSink
I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. soga... but my project is old vc6 project, and there will be a lot of errors if I build with new sdk (for new sbe.h)......... so I think to just use "run as admin" will be fine....:~ ...Show All
Visual Studio Team System Training for VSTS2005 for testers
Does anyone know if there is any training available for this visual studio team system 2005 for testers.Please let me know if there is any paid and free training available or any books that teach for web and manual testing step by step.thanks in advance. Hello Yes there are trainings available, take a look at the following link: http://www.microsoft.com/learning/syllabi/en-us/2631afinal.mspx We also have some testing videos that you might be intested in: http://www.microsoft.com/downloads/details.aspx FamilyId=88F7CB8B-473B-4ED5-BA47-ABBC06D0048E&displaylang=en And of course you can also rely on MSDN: http://msdn2.microsoft ...Show All
Visual Studio Team System How do I delete a task?
In going through the walkthrough, I accidently created a duplicate of a task. Is there some way to delete it ("Delete" doesn't seem to work.) There is no support for deleting work items in TF. You may want to just change the state of the task. If you truly want to delete the task you will have to remove entries from WorkItemsAre, WorkItemsWere, and WorkItemsLongTexts tables in TfsWorkItemTracking database (I am assuming you did not add any links or attachments to the task). -Mohammad ...Show All
Visual Basic run program without logon windows
hi, I have a tray application ready to running when windows start but this only happens when a user logon windows. (adding to registry key) How can I start the program whitout user logon windows (when computer is locked) Thanks. If you are not against the idea of losing your tray icon (or having the tray icon be located in a separate application), you may want to look at building your core application into a Windows Serivce . ...Show All
.NET Development .NET Bug : global variables and xsl:import
Hi , I have two XSL files. transform.xsl and include.xsl. transform.xsl < xml version ="1.0" > < xsl:stylesheet xmlns : xsl ="http://www.w3.org/1999/XSL/Transform" version ="1.0" > < xsl:import href ="include.xsl"/> < xsl:variable name ="MyVar"> < xsl:call-template name ="mytemplate"> < xsl:with-param name ="myname" select ="'TEST'"/> </ xsl:call-template > </ xsl:variable > <! --*************-- > < xsl:template name =" ...Show All
SQL Server Cognos to RS
Hi all! I am taking a cognos report and created an identical one in RS. Can anyone tell me what this means and help figure out how to do it in RS cognos TO_DATE(SUBSTR(DATE_TIME_STAMP,1,14),'YYYYMMDDHH24MISS') RS (i am guessing) CONVERT(SUBSTRING(DATE_TIME_STAMP,1,14),yyyyMMddhh m ss) can anyone help Thanks in avance, Kerrie you could try : http://www.sqlobserver.com SQLobSERVER is a new independent forum specialising in BI/ETL including across the vendors (ie., Cognos) Sorry about the blurb, but thought it might to be useful.. ...Show All
