James Clark's Q&A profile
Visual Studio Team System Team Explorer : Need log to investigate an error
Hi, I have currently an issue with team explorer (RC builds). I've tried uninstalling all visual studio 2005 and TFC without success (deleting any application files, VS folder, registry entries). I'm having a simple VS crash when connecting to any project (when threads read work items folder / source control) : invalidcastexception. In order to investigate, I've tried to enable /log file for devenv, but the log is empty of any explanation. Reinstalling TFS didn't resolve anything, and it's not a server problem, since other users are still able to connect to the server. Is there any way to have a decent log file to follow TFS operations Or so ...Show All
Smart Device Development Creating a unified installer for both SmartPhone and PocketPC
Hi, Is it possible to create a unified installer that automatically installs the correct version of software depending on whether a SmartPhone versus PocketPC is connected Basically, one installer self extracting Windows .exe file that installs the correct .cab file of two .cab files (SmartPhone versus PocketPC). Can it be done with the .inf/.ini files Thanks for letting me know. We will change this approach after our beta testing is completed, since we do want to follow proper Microsoft procedure since we want to get the software Microsoft certified soon. At the moment, we are targetting only 2 ...Show All
Visual C# Custom Control Error Message Hell!
Hey howzit I am trying to implement a new user control...all that it allows is for the user to assign each control to a group. One group of OurRadioButton's consist of 2 or more radio buttons and if they have the same checkgroup then you can only check one of them in the group. BUT I keep getting this error message: (the error message appears as a message box type message not in VS debug) "Property value is not valid: Unable to cast object of type '...OurTextbox' to type '...OurRadioButton'. namespace whatever { public partial class OurRadioButton : CheckBox { private int _check ...Show All
SQL Server Information Schema Views in SQL Server 2005
Hi I am having a minor problem with SQL Server 2005. I have a requirement that certain users (developers) should have visibility of certain schema information using either Management Studio, or from an application... The problem is that when we do a query on the information schema views (from accounts that have db_DataReader and db_DataWriter and Public role membership) the column_default value is not returned, (a null value is returned) even if there is definately a default value constraint. What permisions do I have to give these individuals, dbo is NOT an option as they should only have restriceted access to the Database. I ...Show All
SQL Server SQL 2005 Time Sensitive Question
I have a problem installing sp 1 for sql 2005 express. How can I check if I have sql server or the sql 2005 express edtion and if it is a beta or not. I want ot install the SP1 OF SQL 2005 When I go to the add/remove program section I see sql 2005 edition and not sql 2005 express edition, very confusing because it indicates to look for sql 2005 express edition in the add/remove program and remove it. I don't even know if I have a beta release or not at this point anymore. Is sql 2005 express packaged with VWD 2005 express edition. Hi DKB, In Add/Remove Programs, all SQL maintenance is exposed under the si ...Show All
Visual Basic getting cell values for a gridview
how can you get a cell value from a gridview. I want to get the values of a gridview row just after the user updates it. and use the values in a form on another page. ...Show All
SQL Server Scheduling the SSIS Package
Hi, I want to schedule an SSIS package to run always. So I tried scheduling the SSIS Package as a Job in the SQL Server Agent and I have set the Schedule Type as " Start automatically when SQL Server Agent Starts ". I have used an WMI Event Watcher task to raise an event when the file dropped in a folder. And I have provided the configuration file also properly in the job. But still my package is not running properly. The application is running, but it is not raising any events even when the files are dropped in that folder. Pls anyone of you provide some solution for this. Thanks & Regards, Prakash Srini ...Show All
Visual Basic How to I add the hex value "1A" to a string
I have an export format that requires the file to end with this 1A value. In notepad it looks like a rectangle on end but a hex editor show it as 1A. Thanks Dim a As String = Chr(&H1A) There are things to be aware of, however. I think you want to be aware of whether your strings are unicode or UTF8 and what is required. A unicode value will be x001A. You will want to do something else if you want a byte stream of just &h1A. vb.net 2005 assumes unicode. I don't know enough about your full file internals to know if it a binary file of bytes: dim b as byte = &H1A or unicode. ...Show All
Visual Studio Cross Project builds
We have a solution that contains both c# and c++/cli projects. When building using msbuild, we are directed to use devenv /build to execute a build from command line. In the Feb CTP Professional version, I got this to work fine. I just updated to the latest Visual Studio 2005 Standard Beta 2 (April) and with the same commands I get errors like: "The application for project 'c:\...\code\Parser.csproj' is not installed. Make sure the application for the project type (.csproj) is installed." on every c# project but the c++/cli projects build ok. Could this be a Standard vs. Pro issue We are using ClearCase an ...Show All
Visual C# what is #if used for?
hi all, going through some company templates i discovered this statement, i figure it logs something if debug is set, but how does the #if work, and is this just evaluating if its compiled in debug or release or is there some other switch thanks #if DEBUG Engine.SqlQuery.StartLog(); #endif If I remember correctly, the '#if DEBUG' states that all inbetween code, will be run and executed when in debug mode (F5) This however does not happen when you run the exe file itself (outside Visual Studio) ...Show All
Visual C++ Help w/ Code
//WaveIn.h #ifndef _WAVEIN_H #define _WAVEIN_H #include <windows.h> #include <mmsystem.h> typedef struct { WORD wFormatTag; WORD nChannels; DWORD nSamplesPerSec; DWORD nAvgBytesPerSec; WORD nBlockAlign; WORD wBitsPerSample; WORD cbSize; }WAVEFORMATEX; MMRESULT IsFormatSupported(LPWAVEFORMATEX pwfx, UINT uDeviceID) { return (waveOutOpen( NULL, // ptr can be NULL for query uDeviceID, // the device identifier pwfx, // defines requested format NULL, // no callback NULL, // no instance data WAVE_FORMAT_QUERY)); // query only, do not open devi ...Show All
Visual C# Generic math functions
I want to create some functions that operate only on the numeric types but I don't particularly care what those types are. I'd rather rely on the invoker or .NET's automatic casting rules to create the answer in the appropriate type. I could declare two versions of every funciton one taking and returning doubles and the other decimals but that seems excessive and slow. Is there a way to make a function generic yet restrict its parameters to numeric types As an example say you had the formula x*x + 2*y + z where x,y, and z are numbers of any of the standard .NET numeric types (and not necessarily the same type). How would you dec ...Show All
.NET Development cookie less web service
Hi, I have a small query can you help on the following problem I am using a web service which is added as a reference in a pocket pc application I try to implement this with System.Net.CookieContainer but as i am working for a pocket pc this class is not available Then i try to create a webservice that maintaining sessions without cookies I edit web.config file cookieless ="true" and try to use [ WebMethod ( EnableSession = true)] but it gave me the followin error Server found request content type to be 'text/html; charset =utf-8', but expected 'text/xml'." ...Show All
Windows Forms .NET 2.0 on the server or only the client?
Hi, For ClickOnce, does .NET 2.0 have to be installed on the server Or is it only necessary for the client Regards. You don't need .Net 2.0 or ASP.Net. For web-server to serve the applications all it matters is that the MIME types are configured correctly .application -> application/x-ms-application .manifest -> application/x-ms-application .deploy -> application/octet-stream Thanks, Sameer ...Show All
Visual C# how can I put in a procedure to download a file
I have been searching and searching - but it is hard to find anything useful when the key word is "download" Anyway here is what I would like to know how to do If I have a WebSite created in VS2005 and I add a button to Default.aspx, I would like to have a file to be downloaded on the user's computer in a directory that they choose. I would think that this should not be too hard but I just can't seem to find out how to do this no matter how hard I search. thanks I usually dont post any replys because I am not an expert, but I think I could help you on this. The following c ...Show All
