GaryWH's Q&A profile
.NET Development Simple TSQL called by ADO fails
(SQL 2005) I have a program using ADO that sends a line of text to SQL Server to be executed. the line is essentially: if exists(select 1) DELETE C_Codes WHERE category=13; I can't get the DELETE clause to execute in ADO even when the if exists clause is clearly true (works fine when manually executed in Management Studio). Can someone explain why this doesn't work, and what I need to do to make it work Thanks. hi there, create an sp and call the sp from ado hope this works. It looks like a batch to me rather than a single query ...Show All
Visual J# J# Browser Controls for Pocket IE?
Are there any plans to make a Pocket Internet Explorer version of J# Browser Controls That will save a lot for the application deployment to mobile PDA's. Thanks for the feedback. As of now we dont have any information on this, however we will keep you updated of our future plans. Thanks, Varun ...Show All
SQL Server AS 2005 Business Intelligence Wizard - rerunning to add time calculations
In Analysis Services 2005, once you’ve used the Business Intelligence Wizard in the BI Development Studio to add time calculations to a cube, how do you come back later and add additional standard time calculations based on the named calculation that was already created in the cube’s data source view by the prior run of the Wizard I'm running SP1 on Standard Edition. I'm also using the code (below) that's recommended as a workaround but still get the same problem. NAs are displayed when I try to browse the data for this measure / calculation combo. All I've done is put the code into my calculations script on A ...Show All
Visual C++ pseudorandom number
I am learning c++ and just a beginner.I want to know how to get a pseudorandom number in the range one number to another.Thank you very much! Hi, take a look at this page: http://msdn.microsoft.com/library/default.asp url=/library/en-us/vclib/html/_CRT_rand.asp ...Show All
Visual Studio VSWebSite.PreCompileWeb fails when data connections are open
I recently noticed that VSWebSite.PreCompileWeb fails whenever the selected web site includes a database file that is open in the Server Explorer. An error is given that the database file is in use by another process. This is not strictly an extensibility problem though; the same error occurs when using the Publish Web Site wizard in the IDE or trying to use the aspnet_compiler.exe directly. Is there a workaround for this issue Simply closing the Server Explorer won't work, but closing the connection of the open database file does. How can that be accomplished programmatically Thanks, Bryan Thanks to Antoine Cote and Br ...Show All
Visual Studio 2008 (Pre-release) Controlling the aspect of soap message
Hi I'm using WCF to exchange a soap document with a specifically xml in its body node, in the past, before WCF arrived I was using atrtibutes like: [SoapDocumentMethod] or [XmlElemen]] or [XmlAttribute] to set the aspect of soap message to my convenience. Now, in WCF I can't find a simple way to do the same. I'm using Message Contracts but it force me to write the code to write and read the message. Is there a easy way Because a simple thing like an argument was represented like a xml attribute instead of xml element now it is a lot of code. Thanks in advance Javier Hi Javier, I' ...Show All
Windows Forms Applications Settings shared between projects
I have a VB solution with two projects in it. How can I access the settings of the second project from the first Thanks... ShadeZero Generally you would have one main project (Say a windows Form) and then Assemblies from there. You would then be able to get information from the first using the second by using the fullname of the application settings call. If you have two sepperate forms applications you will more then likly have to generate a wrapper around the settings calsses to allow you to read them, becuase from memory the files are lock to the application that controls them. ...Show All
Visual Studio Express Editions microsoft.visualbasic.compatibility 8.0.0.0. ????
I tried to install a small test app, created in VB Express, on three machines. On one machine the app installed and runs perfectly. The two other machines (one XP Home, one XP Pro) refused to install the app, saying "the system should be updated to microsoft.visualbasic.compatibility version 8.0.0.0.". Can't find anything about this "update". The framework 2.0 Beta was installed automatically prior to this error dialog box. How can I solve this H i Joe I installed VB8/2005, did the latest updates and installed .NET Framework 2.0. I can't locate "Microsoft.VisualBasic.Compatibility.dll" anywher ...Show All
Visual Studio Team System Automatically adding content to System.History field for a work item
Is it possible to automatically add an entry to the System.History field of a work item For instance, in the field definition for System.History I tried the following which did not work: <WHEN field="System.Reason" value="Other"> <COPY from="field" field="MyField.Other"/> </WHEN> I get an error on import that this is not valid for System.History. It's not - System.History is an internal field with its own logic, which cannot be overwritten. ...Show All
Visual C# Apps for Non-framework users
Hi. I'm been thinking of making a couple of small applikations using C# and dotnet mostly cause i want to and the language seems interesting But i have a question i'd like to have awnsered. The machines the apps ar going to be used on don't have the space for the framework but i can squeeze in one or two simple apps. So is there a way to make an application so that the needed dll files and whatNot are all gathered together and ready to be installed on the end-user. Keep in mind that i don't have a CD rom for some of my machines. Don't want to run around with 50 floppy disks. So please any advise would be great I was having a ...Show All
Visual Studio 2008 (Pre-release) WinFX Runtime Components 3.0 Beta2 Farked Up
[05/24/06,22:13:34] VS Scenario: [2] CPrevProductInstalledCheck failed : <font face=Verdana size=8pt> Thank you for participating in the Beta program. You must uninstall all pre-release products in a specific order before you can continue with setup. For detailed information, see the <a color=#3F4F7F HOVER-COLOR=#C3120C href="http://go.microsoft.com/fwlink/ LinkId=54981">uninstall support page</a> and the <a color=#3F4F7F HOVER-COLOR=#C3120C href="http://go.microsoft.com/fwlink/ LinkId=65603">readme</a>.<br> &nb ...Show All
Visual Studio Express Editions Some questions about limitations of Express Edition
1. i haven't been able to find resource view in Express Edition of VC++, is it there somwhere or not 2. Is there a place where i could compare all the different editions side by side somewhere 3. this quite doesn't belong here i guess, as it's about PSDK, but i'll ask it anyway, is it possible to develop applications to XP SP1 with the most recent version of PSDK (latest should be: WindowsR Server 2003 SP1 Platform SDK) and Express Edition of VC++ 1. Sorry, resource editing is not available for the Express. If you need to edit resources, you either need to find some free resource editing tools (eg. XN re ...Show All
Smart Device Development PocketPC Desktop -Synchronizing issue
Hi, Well ,I am working in PocketPC (eVC++,VC++6.0) I have to Synchronize the PocketPC and DesktopPC . For Synchronizing am using ActiveSync I have a Folder in the desktop for example D:\Temp\ I have a Folder in the PockePC in the Device Root for example: \Temp . I am coping a text File from desktop and placing it in the Device (PocketPC), say for example \Temp\Text.txt in the device. when i do this i create a .dat file (say Test.dat) ,now what happens is, i place both Text.txt and Test.dat in the Temp folder. so the same file (Test.txt) is copied in desktop ( D:\Temp\Test.txt) This for a single file. Suppose I have multiple files and large s ...Show All
Windows Forms Main Form Icon (Visual Basic 2005)
I have my main form in my Visual Basic 2005 application. I have created a .ico icon file for my project. When I click on my form in the designer and then put my icon file in for the Icon property of my form, the icon doesn't display on the form. Instead I get what looks like a little document placeholder icon. When I build my application, the executable file has the correct icon on it. However, when I run the executable, the actual form does not show my icon in the top left corner, just this strange little document icon instead. How do I set that icon to my one If I knew how to show a picture in these forums, I'd show you what I'm ta ...Show All
Visual Studio 2008 (Pre-release) WS-Management
Does WCF support WS-Managerement WCF doesn't have an implementation of the WS-Management http://msdn.microsoft.com/library/en-us/dnglobspec/html/ws-management.pdf The WS-Man is based on the WS-Transfer, WS-Enumeration and WS-Eventing specifications. These specifications are not implemented in the WCF current version. Roman ...Show All
