Alasdair Anderson's Q&A profile
Visual Studio 2008 (Pre-release) WPF is going be absent in First Vista Release
Hello all, I am reading on some news groups that WPF is not going to be there in initial release of windows vista. Does anyone knows more about it I cannot imagine vista without WPF. Any thoughts from experts Thanks Basav Jonas Beckeman wrote: This is troublesome news, if it's true. Please, MS, shed some light on this. It would seriously affect my commitment to WPF if it's not pre-installed on Vista. I had hopes that WPF would be a viable platform for some of my products within 2-3 years, but maybe I should think more like 5-10... I really need to know about the plans f ...Show All
Windows Forms Click Once Problem
I have created a simple application for testing Click once with Beta2. After successfull building it when i try to publish it in by localhost. It gives me the following errors. I have created this application for online use only. I then run it fom http://localhost/windowsapplication1/publish.htm When i clicked the run button on the page. The WindowsApplication1.application executes ...Show All
Visual C++ CBitmap - Simple example
Hi, I am trying to load some images in a Picture Area. I only have the pointers to the images, and this pointers are of the type unsigned long* (I can also convert it to IplImage* to use with OpenCV). This unsigned long* get the images grabbed from an camera and I would like to display these images in this Picture Area (it is real time, I get the images from my camera and display them). I have tryied to use this (HBITMAP)LoadImage function, but the last parameter is always LOADIMAGEFROMFILE but this is not real in my application. So, can you help me with convert my unsigned long* to an Bitmap and than load it on the exacly place that I want ...Show All
.NET Development Import Data From an Excel File
I'm looking for the most efficient way to import data from an Excel file into a DataSet at runtime using managed C++. Do I use OLE or ADO.NET or ODBC or are they related I'm a bit confused as to how simple or difficult this should be. I believe I should be able to just link to the xls file with just a few lines of code. Any ideas Thank you very much, George Re: Import xls file into dataset http://forums.microsoft.com/msdn/ShowPost.aspx PostID=85514 The is a recent almost identical issue to the one discussed on the Visual C# General forum. James M. Sigler, II Dallas, TX jms ...Show All
Smart Device Development TAPI, TSP, LINE_APPNEWCALL
We are writing a TAPI project for a WinMobile Smartphone. The program answer an incomming call upon receiving a LINE_APPNEWCALL message. But WinCE also try to answer the call. How is it possible to block the standard behavior of the Operating System to answer an incomming call How can I kill this process on a Windows Mobile 2003 device Have you sample code Thanks TQ ...Show All
SQL Server storing values
I want to store the whole values returned by a while loop. How to do this my store procedure is like this create proc start_proc @country varchar(20), @c_code int, @p_id int, @out_put varchar(500) output as if exists(select start_date from new_start where country=@country and country_code=@c_code and program_id=@p_id) begin set nocount on declare @@msg1 datetime Declare out_put cursor local Scroll Keyset Optimistic For select start_date from new_start where country=@country and country_code=@c_code and program_id=@p_id open out_put fetch absolute 1 from out_put into @@msg1 while @@fetch_Status <> -1 begin print @@msg1 fetch next from ...Show All
Visual Studio Express Editions Express permanently free
hi, thx dan for this good news and thx microsoft, you don't know how much i'm happy to hear that best regards Microsoft Rocks. Its been taking great initiatives lately and this one by far will proove to be most useful. Atleast the guilt of a student of using a pirated software will not be there anymore :) Other stuff that microsoft is organizing like the latest "made in express" contest are really fun. IMHO Microsoft is really putting it together to recapture its reputation in the masses. So far, thumbs up to MS. :) ...Show All
Windows Forms Dressing Up the UI
I'm working on an application that could be easily deployed with standard controls like buttons, listboxes, etc... However, I really want to dress it up a bit with fancy buttons on other graphical elements. What's the best way to do this Do I just create my own controls that use the graphics or are there "best practices" ways of doing this An&n ...Show All
Smart Device Development Dllimport fails design time behavoir of other components
I am developing a CF project targeted for a smart device. Since I need to interact with native code compiled into a dll, one of my CF classes uses the Dll-import attribute. Since the targeted environment differs from my developing environment, I only make use of the dll functionality at run time, not design time. I declare the dll methods I am using as static extern functons in the global scope of my CF component. Though, having this Dll-import statement makes this component and all other components in the same project fail to run in design time, however they all will run in run time. I tried to put the Dll I am going to use o ...Show All
Visual Studio Express Editions SQL Express Local and Remote database
did anyone try... are there any samples.. for this.. i would create aplication with local database, but in code on runtime it should change connection string and connect to remote database.... is this possible Hi, Yes this is very possible. You can store your connection string externally (text file or registry) and just load it in your connection object. By that approach you can change the connection string even if its already compiled... cheers, Paul June A. Domag ...Show All
Software Development for Windows Vista Custom ActivityValidator crashes VS.NET
Hello, I have Jan CTP and I am building a new activity validator for my custom activity. According to several articles I write the following code: public override ValidationErrorCollection ValidateProperties(ValidationManager manager, object obj) { MyActivity activity = obj as MyActivity; if (activity == null) { throw new InvalidOperationException("the parameter obj is not of type MyActivity"); } ValidationErrorCollection errors = base.Validate(manager, obj); // ... check all parameters return errors; } Whe I build the solution the editor crashes. I have to change the line ValidationErrorCo ...Show All
SQL Server Calculated Measure Error
In the calculated measure formula when something is being divided by 0.XX (like 0.35..fractions) its producing those wrong figures where decimal is at a wrong place. But if we divide the numerator and denominator by 100, we get the correct figures. [something].[Something] *100 / 0.XX *100 = good [something].[Something] / 0.XX = wrong Why is that and what can be done to do it right. Thanks. Are you using AS 2000 or AS 2005, and can you reproduce this problem with one of the standard cubes (like Foodmart or Adventure Works) ...Show All
Visual Studio Team System Where to download MSFWinBuild?
I'm in the process of customizing the MSF Agile Process Guidance. I have been using the Process Guidance Customization Guide from the Visual Studio October SDK. This guide mentions that the MSFWinBuild Tool is useful to pre-render the HTML files. The guide says that this tool can be downloaded from http://msdn2.microsoft.com/en-us/library/ms243893.aspx . However, I can't find the download. Where can I download this tool from Thanks _____________________________ Sarah Cameron - InCycle Software Hi Sarah, The MSFWinBuild site is http://www.gotdotnet.co ...Show All
Visual Studio Team System team system explorer error
I have TS on a single server. Connected to the domain. When I goto somoenes' machine to set them up with team explorer, and try to connect to the TS server, I get a permission error. The account doesn't have priviledges. To which group do I need to add this user in order to allow them to connect to a project I have in TS Any TFS group should do the trick. How about "contributor" for the project ...Show All
Visual Basic A Function To Return Two Values
Hi, Is it possible for a function to return two "things" or items, i.e. a data item the function is used to get (a string) and a result saying if the function was successful or not (boolean) What I am trying to do is parse through an XML file from a server (where lots of things could go wrong), and use the data in my application by calling a function which does the parsing. I need to be able to display an error message in the application if the parsing function goes wrong. Thanks. Hi It is not possible for a function to literally return two values but there are ways of achieving this. ...Show All
