muthuraja's Q&A profile
Visual Studio Team System Problems with glimport
I tried to add a new globallist called Teams today and it failed with an exception: Exception from HRESULT: 0x8004EA73 < GLOBALLIST name = " Teams " > < LISTITEM value = " [Global]\Team - Database " /> < LISTITEM value = " [Global]\Team - Desktop Applications " /> < LISTITEM value = " [Global]\Team - Graphics " /> < LISTITEM value = " [Global]\Team - Management " /> < LISTITEM value = " [Global]\Team - Math " /> < LISTITEM value = " [Global]\Team - Printing " /> < LISTITEM value = " [Global]\Team - QA " /> < LISTITEM value = " [Global]\Team - Sales " /> < LISTITE ...Show All
Visual Studio Package Load Failure
I am developing a custom source control provider(like VSS).Its VS Integration package. I have added some menus and other stuff in that.I have tested the application in my machine in experimental hive.Its working fine.Now I need to install it in a seperate machine.I created a setup package for that.I have generated the registry entries using RegPkg exe in the SDK.I have imported those entries in the setup file.I have a Package Load Key which i have used using [MsVsShell. ProvideLoadKey ( "Professional" , "1.0" , "Package Name" , "Company name" , 300)] I have added the PLK in Resources.resx with the ID as 300.When i installed the setup package, I get to select the package in the Tools-->Op ...Show All
Visual Basic Process.GetCurrentProcess.Threads(0).UserProcessorTime Doesn't Work?
Hi there, I am using laptop with PM1.7CPU + 1G memory with XP pro.Please consider below code in VB2005 EXPRESS.I am expecting a duration when the app printing the array,but the second last line of the code result in just 0 when running. Should there be anybody would like to lend me a hand on what's going on here Sam Module Test Sub Main() Dim myArray(99999) As Integer InitArray(myArray) Dim timeStart As TimeSpan Dim duration As TimeSpan timeStart = Process.GetCurrentProcess.Threads(0).UserProcessorTime printArray(myArray) duration = Process.GetCurrentProcess.Threads(0).UserProcessorTime.Subtract(timeStart) Console.WriteLine("Time Duration:" & duration.To ...Show All
Visual Studio Express Editions setjmp.h(197) : error C2059: syntax error : '('
I found this error when I tried porting my project from VC++ 6.0 (32-bit configuration) to VC++ 8.0 project (64-bit configuration). setprop.c C:\Program Files\Microsoft Visual Studio 8\VC\include\setjmp.h(197) : error C2059: syntax error : '(' setls.c rpml.c C:\Program Files\Microsoft Visual Studio 8\VC\include\setjmp.h(197) : error C2059: syntax error : '(' crtbuf.c C:\Program Files\Microsoft Visual Studio 8\VC\include\setjmp.h(197) : error C2059: syntax error : '(' There are no using of setjmp() or longjmp() in those files that show errors. And this project can be compiled without any errors in VC++6.0 (32 bit) This is what I see at line 197 in setjmp.h: typedef _CRT_ ...Show All
Visual C++ Problems by using _beginthreadex() in VS 2005
Hi, I'm trying to make a C++ thread example to work with VS 2005 without any luck. My implementation attempts to create a thread within a class. A simplified version is: Header: #include <windows.h> //For multithread support #include <process.h> //For _beginthreadex() and _endthreadex() #include <iostream> using namespace std; class Receiver { public : Receiver(); unsigned __stdcall MyThread1( void * param); unsigned tid1; // thread IDs HANDLE hThread1; // thread handles }; Source: #include "Receiver.h" Receiver::Receiver() { hThread1 = (HANDLE) _beginthreadex(NULL, 0, MyThread1, ( void *) NULL, 0, &tid1); ...Show All
.NET Development A .net 2.0 application runs on Win XP, not on Win 2000
I created an application in Visual Studio 2005. It runs fine on my Win XP SP2 computer. When I xcopy/deploy to a Win 2000 SP4 computer, it silently fails to run (without any error messages). Both computers have .net 2.0 re-distributable installed. Any ideas What's your program called See if there is an entry for an exe of the same name in: HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths. on that Windows 2000 system. The one named there might be running instead of yours. ...Show All
Visual Studio Express Editions Find the smallest of a group of numbers
I would like to find the smallest number in the group of numbers - to keep it simple. I would like to know the best way to do this. The numbers would be in an array, set as variables or in a database - whatever makes the most sense. Thanks Lots of response, here's a bit of code from QuickBasic that does the job. 'demo code to find minimum values stored in an array DIM a(1 TO 10) AS SINGLE 'a( ) contains the values DIM min, j AS SINGLE min = 1000000! 'set min to be larger than expected value a(5) = -5 'test value =-5 FOR j = 1 TO 10 IF a(j) < min THEN min = a(j) NEXT j PRINT min ...Show All
Visual Studio Express Editions Can't access my localhost
Hi, I've installed SQL Server 2005 Express Edition, SQL Server Management Studio Express using Windows Authentification and IIS 5. The problem occurs when I try to access the default address of my local computer to test my installation. I've tried with both http://localhost and http://127.0.0.1 . The system requires a password despite I don't use password for my Windows Authentification. Does IIS always demands a password regardless my settings for Windows Authentification or Best regards Thanks for your answer. However, the problem is that I haven't got a website yet! I'm just trying to access a instance of the local webserver. ...Show All
SQL Server using for xml and xquery to create a new xml
hi I would like to construct a new xml from 2 xmls using for xml and xquery. here what the query looks like declare @t table ( c xml) declare @xml xml insert into @t ( '<node1></node1>') set @xml = '<node2></node2>' select c . query ( '/node1' ), @xml from @t for xml path ( 'root' ) right now, this comes out at the same level <root> <node1 /> <node2 /> </root> I would like is to have node2 be the child of node1. I know you can have node1 as the root node in for xml path ('node1'). my problem is that there are alot of attributes in node1 that I do not want to have to retype out as attributes in the above query. Is there a way to somehow nest node2 under nod ...Show All
SQL Server Accesing package Variable in Conditional Component
Hello Experts, I am trying to load data to a sql table from flat file..I have a script component which will validate the data. I am also firing the errros when data validation fails. Once I encounter an error I want the whole package to be aborted. What I have done is declared a variable called errorcount (Scope :Package) and I am incrmenting this variable everytime an error is raised and next I have a Conditional Split which will check if this variable count is greater than 0 if yes I will not update the table.This is the only way I think this will work. error I am getting is :The collection of variables locked for read and write access is not available outside of PostExecute. I understand they r in the same data flow thats the r ...Show All
Game Technologies: DirectX, XNA, XACT, etc. my first game problems
Hi everyone :) I have been having some weird issues with this tutorials code. It is mainly in this area here: myTexture = Texture2D .FromFile(graphics.GraphicsDevice, "mytexture.bmp" ); Which is located in here: void LoadResources() { myTexture = Texture2D .FromFile(graphics.GraphicsDevice, "mytexture.bmp" ); spriteBatch = new SpriteBatch (graphics.GraphicsDevice); } Everytime i run the game it gives me this weird error: An unknown error has occured. The result code was -2005529767. Any ideas what it might be Thanks for any replies. EricTN: You can use the PNG for transparency. I have a png with transparency and I did not need to use a mask. When I call ...Show All
.NET Development How to access to Paradox database in ASP.Net
I got a strang problem in reading Paradox database via ODBC. I can not read Paradox table without BDE. Finally I can read it after I install BDE. I setup system ODBC to access Paradox and test ok in Window From. but It does'nt work when I move the same code to ASP.Net. Does anyone have the same question as mine I am using vs.net 2003 under .Net 1.1 and windows server 2003 and BDE5.1 Thank you reply so soon. I am trying ur connection string and it works to open the connection. but I can not use a DataAdaptor to fill a dataset or datatable at runtime. But it works in window from not a webform. I am wondering what is the difference between window from and webfrom. Does the ...Show All
Windows Forms Creating Professional looking applications
I need some advice on creating professional applications and what kind of controls to use. For example, in the majority of applications, you have a main form with a menu and then below this, you will have buttons for adding, editing and deleting records. On the side of the form, you may have a panel with the main options and then the rest of the form will house the user entry information that needs to be entered. If you want to always have the main form displayed and the inner part of the form to change when selecting any option, then should you use usercontrols or have a subform within a form If you want to see what I am referring to, then please look at this link for a example user interface. http://www.hornbill.com/products/ ...Show All
Visual C++ registrykey.setValue problem
Hi, I am trying to save my form's location into the registry, so I used this code: "main ->SetValue(S"MainX", this ->Location.get_X()); main ->SetValue(S"MainY", this ->Location.get_Y());" I then get the compiler error, "cannot convert 'int' to 'Object __gc*'" Now, I realize that its SetValue(String*, Object*), but when I look at the MSDN info about the method, it shows examples of it storing integers, floats, etc. I am not using the .NET framework 2.0. How can I save int's into the registry Thanks davidguygc wrote: Ok, so when I retrieve it, do I just do the __box() command again to get an int data type or will it automatically be an int You have to ...Show All
SQL Server Exporting to .csv Reporting Services 2000
Hello, I'm running RS 2000 on Win 2003 Svr, sp2 + hotfix KB901383. When I export a report to a csv file (after running the report), the output comes out in one excel column. The only control on the report is a table, and no other textboxes, footer or header. The only way I've found is to use Data -> Text in Excel. Is there a way to go directly to the multi column csv without saving as a .xls first Thanks, Elaine ...Show All
