David Capone's Q&A profile
Visual Studio 2008 (Pre-release) databinding bug, or am i just expecting too much? - master/detail with a combobox in the detail
Hi, I think i may have run into a bug, maybe you'll say it's not a bug but it's not how i would have expected the framework to handle this particular case anyway... ....I'm running Vista with the feb CTP I'm setting the windows datacontext equal to an instance of a class that inherits from DependencyObject (trying to embrace the new way of handling changes in the UI / class). Then i have a listbox with it's itemssource property bound to a DependencyProperty called "Selected". I also then have a grid with it's data context set to the same path=Selected so that it shows the detail of the item selected in the listbox. This all works fi ...Show All
Software Development for Windows Vista Activity Property values not available at runtime
I am currently experimenting with a custom activity. We have a number of business rule objects which implement various, relatively complex data validation rules. The custom activity allows these business rule objects to be assigned to the activity and for parameters to be assigned as part of a workflow that links together a number of these business rule classes into a sequential [potentially brancing] workflow. So I basically have: BRActivity RuleClassReference ClassID ClassName ParameterCollection Parameter1 Name Value Parameter2 Name Value I've integrated these activities into an end-user design ...Show All
Visual C++ How to set CFLAGS
People, I want to use libcurl in my program. The manual on libcurl says : "When building an application that uses the static libcurl library, you must add -DCURL_STATICLIB to your CFLAGS." So, the question is: how to add option to CFLAGS in Visual C++ IDE Is it the "Project -> MyProject Properties (Alt+F7) -> Configuration Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions" ...Show All
.NET Development Reader.getstring(i) problem
Hay, i use this code to recieve informaton from a Query and show this in a textbox. Dim mySelectQuery As String = "SELECT [Ring nummer],Naam,Jaar,Land,Vader,Moeder FROM Tvogel WHERE [Ring nummer] = '" & Me .Ring_nummerTextBox.Text & "';" Dim myConnection As New OleDb.OleDbConnection(myConnString) Dim myCommand As New OleDb.OleDbCommand(mySelectQuery, myConnection) myConnection.Open() Dim myReader As OleDb.OleDbDataReader = myCommand.ExecuteReader() Try myReader.Read() FormStamboom.Lbl1.Text = myReader.GetString(0) FormStamboom.Txtbox1.Text = myReader.GetStr ...Show All
Visual Studio Team System Another publishing test results question
Ok, here's the steps I'm taking to attempt to publish test results. - Create a Team Build of HelloWorld app. - Run build from Team Explorer on a machine logged in as DOMAIN_A\myacct with only Team System for Testers installed and connected to Team Foundation Server via DOMAIN_B\myacct credentials. - Run test. - Right click the expected fail result in Test Results window. - Select Create Work Item -> Bug. - When prompted to publish test results now, click Yes - When dialog opens, select the failed test run result. (NOTE: Owner field shows DOMAIN_A\myacct which are not valid to connect to the TFS). - Click OK to ...Show All
SQL Server SQL 2005 Sept. CTP: Installation error related with encryption
Hi everyone, I've been trying to get SQL Server 2005 Sept. CTP installed for a few days and always end up with the same installation error: "Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client]Encryption not supported on the client. Refer to server error logs and setup logs for more information. " The installation is on a Windows 2003 SP1 machine with an SQL 2000 already installed under a non-default instance name. I have no idea as to why this is happening, and would really like to hear from others who might have had this problem. Thanks. Alex ...Show All
Visual Studio 2008 (Pre-release) relative path to image in codebehind
Hi, I've been searching for a while on this forum and tried almost everything, but nothing seemed to work. Can anyone tell exactly how you can make the path to an image relative in the codebehind I know that when you make an image a resource of your app, you can just use the image it's name to use it in the xaml, but how can I do this in the code Do I have to embed the image in my app or what or what This is what I'm trying to do... BitmapSource originalImage = new BitmapImage(new Uri(@"D:\Docs\Visual Studio 2005\Projects\TestApplication\TestApplication\bin\debug\buitenland.png")); thanks in advance, Kimme ...Show All
Visual Basic Querying Active Directory to check if a Username exists
Hi Everyone, We are doing a lot of work on our Storage server at the moment, and one thing is tidying up users folders. What I am trying to do is to pick up the name of a users folder (from a text file) and query AD to see if that User exists. In theory !! all folder names are named after the Username. Here is the connection code that I have so far, I wonder if someone could help me, or if I am totally missing the plot and on the wrong lines, steer me in the right direction .................... Dim currentuser As String Dim currentuserpassword As String currentuser = InputBox("Please enter your Username") currentuserpas ...Show All
Visual Studio Express Editions outlook address book
How can I access outlook's address book inside C# code without using MAPI/CDO Is there any way by C++/C to access this outlook address book Thanks Hi! You can try OLE DB - Outlook have OLE DB provider (but I never used it). Also you can try search COM Automation interfaces in Outlook. But in general you better use MAPI - what if user don't use Outlook and use Bat or other mail application ...Show All
Smart Device Development Native Exception Error - 0xc0000005
I am running the following code - which takes the data from an XML file and updates a SQL Mobile table - it seems to consistenly throw a native exception error (ExceptionCode: 0xc0000005) Here is the code: #region DataRefreshFromXML public void RefreshDataFromXML() { if ( File .Exists(appPath + @"\data\HandheldInventory.xml" )) try { DataSet ds = new DataSet (); ds.ReadXml(appPath + @"\data\HandheldInventory.xml" ); if (ds.Tables.Count > 0) { using ( SqlCeConnection cn = GetConnection()) { SqlCeDataAdapter da; da = new SqlCeDataAdapter ( "S ...Show All
Visual C# Generics and Interfaces concepts
Hello, I am learning how to apply generics and when to use it. I saw an example somewhere showing how to use constraints in generics, where you can specity a Type which implements an interface, something like this: class MyClass<T> where T : IMyInterface { //here come all sorts of toying with T } Now to my question: what is the advantage of using generics here Why can't I simply refer to the interface After all I am limiting T to be an IMyInterface implementation. Am I missing something Thanks in advance, David. Just some literature for you to read ;) http://msdn2.microsoft.com/en-US/library/512 ...Show All
Visual Basic Issues with Express Registration and Activation
Now that Visual Basic 2005 and Visual Studio 2005 has shipped the final release, we have a new home for setup and registration issues for VB Express. Please direct all setup, install/uninstall, and registration issues to this forum: Installing and Registering Visual Studio Express Editions Thanks, Paul I am still having the issue I described on 5/29. I have 12 days left. HELP!!! ...Show All
Visual Studio Express Editions Continuing despite exceptions
I have designed a class that throws an exception in cases when it gets wrong input. How can I continue program execution normally even after it throws an exception For instance, if in the constructor I throw an ArgumentException, I want to continue processing the rest of the input. Right now, I have code that looks like this (to create a new instance of the class): RandomString randomString=null; try { randomString = new RandomString( comboBoxCharsToUse.Text, ",", "\\/:* \"<>|"); } catch (ArgumentException exc) { Globals.ShowError(exc.Message); } Globals.ShowError (randomString.All()); If an ArgumentExcep ...Show All
Software Development for Windows Vista VMR9 and HD Resolution Video
I've been having some problems with displaying DivX HD Video in my application that uses DirectX9 together with VMR9. I have been talking about problems with VMR9 before and that the only solution so far have been putting a Sleep(10) in the render loop to get rid of (I guess) blocking problems. The blocking has for me caused problems with the video not playing in full frame rate. Now, the problem is that to get DivX HD (for example) content to play smoothly I have to Sleep(25) or more, and this is a problem because I'm trying to run DirectX at 60hz or more and then everything else will not be able to play smoothly. Windows Media HD works nic ...Show All
SQL Server Finding SQL Server Permissions...
Hi There, I want to know how i can find statement/object permissions given to database users using a sql query from query analyzer!! i am using sql 2000 server. Regards, ...Show All
