Sachin Saxena's Q&A profile
Visual Studio Express Editions unit testing & Express editions
What options are available for unit testing with the Express editions While you can certainly use standalone unit testers like NUnit to test Express-built code, you can't attach to NUnit's process to enable debugging NUnit tests, and the unit test frameworks that install as add-ins are out, given no add-in capability with Express. Jamie Cansdale had a solution that involved hooking the Express process to install TestDriven.NET, but some sort of dispute with Microsoft seems to have killed that option too. What does that leave You may argue that hobbyists, novices, and students, teh primary audience for Express, don't need unit testing, but I beg to differ. This is actually a big issue for me, as I'm working on an introductory-level book ...Show All
SQL Server Reporting Service vs UDM
I am new to both technologies and would has been reading UDM on how to create a cube. My orginal intention is to create cubes for efficient retrieval of data which ends up in reports managment in an application. Can anyone elaborates on how the reporting service differs from UDM ( or what reporting services are )I thought they are mutually exclusive Thanks. Regards Alu Does it mean that the report service generates reports from OLTP database if the UDM is not created Does it mean UDM can work with reporting serivce which theortically speaking making the best of both if implemented Thanks. Regards Alu ...Show All
Windows Forms Visual Studio abnormal shutdown when drop control on form
Hi, I am using third party framework to build my application. The framework come with a derived label inherit from System.Windows.Forms. It works fine. However, I created my own derived label class inherit from the framework's label. When I drop my label on form, Visual Studio IDE would shutdown abnornal. No error/warning prompted. My derived label class is simple as below: Public Class myLabel Inherits MyFramework.UI.Windows.Forms.Label End Class How could I check for this Thank you yes,you can report this information to VS http://connect.microsoft.com/Main/content/content.aspx ContentID=2220 ...Show All
Visual Studio Team System Using Excel data source with a Load test - works for 1 user but not for 10 users
Hello, I have a webtest that uses an Excel sheet data source. (The same row is used 4-5 times in the course of the test. There are 2 columns in the sheet.) When I run this in a load test with 1 user, it works fine. When I run it with 10 users at constant load, only about 25% of the tests are completed successfully. Could this be because the users are simultaneously trying to access the same Excel file and running into conflicts Or it might go like this: user 1 accesses row 1, then user 2 goes to row 2, and when user 1 comes back he hits row 3 instead of row 1 again. Another one of my webtests worked great with 10 concurrent users. This test only accesses the data source once per test, which is why I'm thinking there might be some ...Show All
SQL Server Create a c# method that wrap a stored procedure
Hi all, I want to create a c# method that wrap a sql stored procedure and is mantained updated in c#. Ex: Stored Procedure on db: insTableA(par varchar(255) .... I want to create a class in c# like this: public class insTableA { public object Execute(String par) { // call execution of stored insTableA ................ } } Using VS 2005 e Sql Server 2005 you know a method to do this and to mantain (automatically!) the c# class update when I change the stored procedure signature (ex: if change the number or datatype of parameters) Thanks.... Luca Is not clear if you C# code runs ouside SQL server or inside as a CLR stored proc. Anyway there's no way to what you want except building at ...Show All
Visual Basic OCR - Optical Character Recognition
Hi Everybody, I was recently pursuing code that would allow me to read machine text off an image. The text will only consist of characters a-b, 0-9 and a few special characters (+,=,-,@,&). I have pursued a few third party OCR controls however all require licenses to be fully functional, would anyone know of any third party OCR controls that does not cost anything If not is there anyway i can build my own OCR control that will read machine text Thanks In Advance, TheDarkestShadow Hi Timothy and thanks for the quick reply I took a look (well tried to) look around those two websites you noted above and unfortunatley all of the OCR development code was in C# rather than VB. I found howev ...Show All
SQL Server Msg 2801, The definition of object 'xxx' has changed since it was compiled.
1. Create table and 2 triggers with script below (*) 2. Run the following script: use testjrl ; begin transaction ; update testtable set workphone = '333' where id = 1; rollback ; Get following error message: (1 row(s) affected) Msg 2801, Level 16, State 1, Procedure trgTestTableInsertUpdate, Line 7 The definition of object 'trgTestTableInsertUpdate' has changed since it was compiled. The statement has been terminated. 3. Change trgTestTableInsertUpdate trigger to alter table TestTable disable trigger trgTestTableDelete select 1 alter table TestTable enable trigger trgTestTableDelete 4. Run the script from step 2 again - works fine. Questions: a. Why does first error occur ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Locking of Managed Texture
I'm currently developing an application which will use managed textures. Part of the code needs to create the texture data in a seperate thread. I will be locking the texture and passing the data pointer to a function. My question is will the video memory texture continue to render while the texture is locked Or should I copy out the existing data to a temp buffer for editing, then copy it back into the managed texture GrkEngineer Vite Falcon wrote: "I will be locking the texture and passing the data pointer to a function." I believe that u cannot lock a managed texture. Try using texture created in system memory. This is incorrect. All textures are lockable except those in D3DPOOL_ ...Show All
Visual Studio Express Editions Can we redistribute VB express on our product CD?
I know SQL Server Express can be redistributed with applications. I'm wondering if there is a way to license VB Express to redistribute with our application I don't think you will get legal hassles for doing so: you aren't exactly 'distributing' it, even though legally it's not right. I suppose theoretically, you could download another version and transfer the license to the person you are giving it to - it appears to be allowable, but I think you start getting into a gray area. Professionally, I wouldn't do it. ...Show All
Visual Basic Formula construction
I have a big problem here, I am writing an application that requires that the user have the ability to construct their own pricing formula for different items and have managed to store that formula in the database, the problem is... How can I read a resulting formula string as a formula I.e: (BuyingPrice * (100 + VATpercent) + 10) BuyingPrice = 40 VATpercent = 17.5 I can return the string "40/100*(100+17.5)+10" but can't find a way to process it and return the result (57). Any ideas will be greatly appreciated guys. The following is the VB implementation of this code, you'll need to add the reference to Microsoft.jscript.dll and there is a obselete warning which is generated fo ...Show All
Software Development for Windows Vista No uninstall option in Control Panel->Installed Programs
Hi, if I go to Control Panel->Software->Installed Software all programs installed before the Windows Vista upgrade can't be rightclicked so they can't be uninstalled. I tried the third-party uninstallation tool "add remove pro" but those old programs don't even show up on the list. How can I uninstall programs now of which I don't know the setup path or the uninstall program With kind regards Johannes This is the procedure I used to uninstall Windows Vista on a clean install How do you perform a reinstallation of Windows XP, sometimes called a repair installation Boot Your computer and as it's starting to boot press the delete key to get in setup In the choices to boot ...Show All
Windows Live Developer Forums Virtual Earth is so slow!
Am I crazy, or is VE tremendously slower than it's competitor, Google Local As a Microsoft developer I am all for evangelizing the Live platform. However every time I tell people about the cool features in Virtual Earth, they all inevitably come back saying they were frustrated with the very slow performance and preferred to keep using Google Local. Is anyone else finding this Well, some of what you're saying might be true (about the caching). However, isn't it the job of the VE team to make sure the application's user experience is as good (or better) than the competition I told some friends of mine to mind their browser's settings for caching and, though it made some difference in perceptions, ...Show All
Visual C# Role Based Security
Hi How can i implement Role Based Security in c# desktop application . I have one table for registered users named tb_User and one for role named tb_UserRole . One user will have only one role tb_User //Information about registered user FirstName LastName LoginID Password UserRoleID // foreign key from tb_UserRole tb_UserRole UserRoleID Role // i.e Administrator, Guest,Backup Operator, Report Generator Plz, let me know the best approach for this. If you are using SQL server then you can use a sc ...Show All
Visual Studio Team System I got nothing After successfully finished webproject build, why?
After successfully finished webproject build, I found only one BuildLog.txt file in the build droplocation. why the build log as follows: 生成 2006-7-14 16:25:11。 __________________________________________________ 目“F:\UBSWebsolution\UBS\ubsweb\BuildType\TFSBuild.proj”(EndToEndIteration 目 ): 目 InitializeEndToEndIteration: UpdateBuildNumberDropLocation BuildNumber='ubsweb_20060714.5' DropLocation='\\ubscmserver\UBSWeb\ubsweb_20060714.5' 目 CoreClean: 正在移除目 “F:\UBSWebsolution\UBS\ubsweb\BuildType\..\Sources”。 正在移除目 “F:\UBSWebsolution\UBS\ubsweb\BuildType\..\Sources\..\Binaries”。 目 InitializeBuild: 正在 建目 “F:\UBSWebsolution\UBS\ubsweb\BuildType\..\Sources”。 目 InitializeWorkspace: DeleteWorkspaceTask Name= ...Show All
.NET Development [C#] shell extension : IContextMenu.GetCommandString
i am looking into the SDK\v1.1\Technologies\Interop\Applications\ShellCmd which come with VS.Net 2003 (guess, me copy it somewhere from internet) the sample work well except the IContextMenu.GetCommandString, it should show the description on the Explorer statusbar, but it not. me have try to add MessageBox.Show() to check whether it have fired or not, and it fire when me rollover the menuitem. me running Windows XP SP2 is there any idea to make it work :: code copy from the sample :: void IContextMenu.GetCommandString(int idCmd, uint uFlags, int pwReserved, StringBuilder commandString, int cchMax) { switch(uFlags) { case (uint)GCS.VERB: commandString = new StringBuilder(m_items[idCmd - 1].command.Substring(1, cchMax - 1)); ...Show All
