Tim Dallmann's Q&A profile
Visual Basic vb5 to vb2005 express
How can i convert my vb5 sources to vb2005 without vb6 Okay, I didn't know whether it'd open a VB5 project: that's the way to convert VB6 projects. Good top know it opened. However, you have probably a long, up-hill struggle with the converted project. Generally, the recommendation would be to keep an existing project in it's native development environment, unless it's fairly trivial. The upgrade process is a simple 'unintelligent' process, and it won't convert to the eqivalent new features in VB 2005 (e.g. file handling or graphics). You will need to go through the whole program to check almost every line for functionality - it may be easier to rewrite, while supporting the existing version, and trans ...Show All
Visual Studio 2008 (Pre-release) Visual Studio Code Name Orcas
Am I understanding things correctly. That in this new version one feature is you no longer need to declare a variable of what it is. Meaning instead of : string b = "hi" var b = "hi" seems like using var for everything really isnt a good idea and in a way is almost like vb.net where you don't even need to declare variables at all. Please explain to me as I am thinking all I learned of variables was wasted if you can just use var. Again I could be misunderstanding. A variable of type object is not typed unless you cast it explicitely. Example: object s = "abc"; s.ToUpper(); // Invalid! A Variant 's type exists only at run-time. Example: Dim v as Variant = ...Show All
Visual Basic How to make a program run in the taskbar?????
I want to have my program run at all time in the taskbar. Is there any way to do this Im using VB2005. You can keep all of these in the settings configuration file. Double click the "My Project" icon in your solution explorer. There should be a tab called "Settings", click that. In there you can add all of the user settings you like, such as, last entry, form colors, etc.... Then, when you need to get the data from these, simply type My.Settings. LastEntry to get the value. ...Show All
Visual C# An example of a Messenger toast is the message that appears on a user's desktop when one of the user's contacts signs in.
An example of a Messenger toast is the message that appears on a user's desktop when one of the user's contacts signs in. Another example of Messenger toasts is the messages displayed when a user receives an alert from the .NET Alerts service. The following are examples of typical toasts: Could you please tell me how to catch the screens above If i clcik the "chage" in the screen and how to respond this event. Thanks in advance. ...Show All
Visual Studio 2008 (Pre-release) Serialize as attribute versus element.
I would like to build a data contract that has attributes rather than (or in addition to) XML elements. With the XML serializer there was [XmlAttribute]. Is there an equivalent "attribute" for data contracts I see [DataMember] which is serialized as an XML element but I don't see how to specify that the member should be serialized as an attribute. Is this possible or are we forced to have everything "element normal" with WCF Thank you. Kevin, DataContracts don't support attributes, only elements. If you need compatibility with an existing contract that uses attributes (or simply want to create your own), you need to use the XmlSerializer instead, which is supported (with a few limita ...Show All
SQL Server How do you increase the value for: DTS_I_CHOSENMAXEXECUTABLES
We are getting the following error on an SSIS package: "54 Diagnostic VirtualSQLName Domain\UserName Load Daily 859CF005-CB7F-47D8-8432-AE7C074B343C 1A986F18-343F-4424-ABAB-AC6575187DF3 2007-02-14 10:05:42.000 2007-02-14 10:05:42.000 0 0x Based on the system configuration, the maximum concurrent executables are set to 4. " Basically it is saying the we have reached the maximum amount of executables. How can we increase this value and where Thanks Set that number at the package level. In the properties, there is a parameter titled: MaxConcurrentExecutables. Set that to your desired number. However, note that using -1 (the default) should result in the best performance based on memory, cpu, etc... ...Show All
Visual C# How to convert DateTime to Double?
I want to convert the DateTime.Now to a double number...However, it seems Convert.ToString(DateTime.Now) does not work... Any method Hi I I think this snippet shoul do the trick:- private void ConvertDate_To_Double_Click( object sender, EventArgs e) { try { double date = Convert .ToSingle( DateTime .Now.ToOADate()); MessageBox .Show( "Date to Double is : " + date.ToString()); } catch ( Exception ex) { MessageBox .Show(ex.ToString()); } } hope this helps ...Show All
Visual Studio Team System Error 1 The specified schema name "Sales" either does not exist or you do not have permission to use it.
I'm playing with the AdventureWorks DB to test the DB Pro piece, however after importing the DB I get tons of errors like the above. Is this a known bug in this release or did I miss something ciao andreas Hello Steven, thank you for the feedback, good to know I didn't miss something. Don't mind to use CTP. The product overall looks very promising. :) ...Show All
SQL Server trigger question
I have the need to use triggers in my database, but am a little foggy on something that reading the official msdn help did not quite clarify. If for example there is a trigger which is triggered when a certain record is updated (DDL ) Is it possible to see what the values were before and after the update I need to create a trail of updates such that the information can be rolled back if need be. Any help with this would be greatly appreciated. Thank you :) PS. If anyone notices that this is a re-post from another forum .... I put the other one in the wrong place accidentally :( ...Show All
Visual C++ Data Type conversion between JavaScript and C++
I am using the XMLHTTPObject in javascript, it need to invoke an ActiveX object. The ActiveX Object is written in VC++ 6.0. VC++ function looks like this. ========================= long CMYComponent::saveToFile(LPCTSTR aFileName, LPCTSTR aData, short aNewFile) { // TODO: Add your dispatch handler code here writeToFile((char *)aFileName , (char *)aData, aNewFile); return 0; } ==========================JAVASCript code=== saveToFile(fileName, xmlHTTP.responseText,1); ================================= if the data type in the reposne is ascii it works fine. if the data type is binary it fails. Really I want to send xmlHTTP.responseBody to the C++ function above, what is the best data type I should use in C++ function so that I can make it ...Show All
SQL Server Hold group constant across time?
Hi eveyone, My users asked me a question today that I wasn't sure of so I was hoping you guys could give me some advice. Is it possible to make the cube hold a group constant across time For example, I want to take all of the customers that were here in December 2006 and see how they performed during the year. Is that something I can do in a cube Obviously, I could create a seperate cube with only those customers in it, but I'd like to avoid that if possible. Thanks! Yes, you should be able to accomplish this. You'd likely want to create a named set in your Customers dimension that defines the group of customers in Dec 2006 (however you want to define that -- they had a value for a given m ...Show All
Visual Basic For Newline in VB
What is the syntax for newline in VB as '\n' in C. Hi If i understand what you are asking: - if you have a text box and in it you write: - hello world you need the command to write: hello world in the text box, if this is the case just add & vbcrlf Such that yourtextbox.text = ("Hello" & vbcrlf) yourtextbox.text = ("World" & vbcrlf) Andy ...Show All
SQL Server How do I Transfer an updated procedure to a live site?
Hi, Whilst not new to online database and web design I'm relatively new to ASP.NET and SQL Server. Can you guide me in this final hair tearing problem. If I have a development system on my local machine and a live system on the web how do I achieve the following:- If I make a change to a local Stored Procedure (or add a new one) after testing how do I transfer the changes to the Live Site Similarly if I add/amend a field to the database how do incorporate that change on the live site I can't find any tutorials on this on the net (probably because I don't know which terms to use in my search) Thanks in advance Thank you for the information. Having now searched to a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "The project type is not supported by this installation." with Beta 2
I've installed VC# Express (side-by-side with my VS Std) and then XNA Game Studio Express Beta 2. When I start a new project I can see no XNA templates, though. When I try to open an existing example (built with beta 2) I get the error message "The project type is not supported by this installation." I've not had XGS beta 1 on this machine. I've tried uninstalling both XGS and VCS and reinstalling to no avail. Please help. How can I get XGS to work /Mikael Please give this thread a look: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=888461&SiteID=1 it lists several solutions, even if you haven't run Beta 1. If you continue to have issues please unmark this thread as answered and ...Show All
Visual Studio Introducing HelpStudio Lite
The VS 2005 SDK contains a new tool for authoring Help and integrating it with VS 2005. The tool is called HelpStudio Lite. It is lightweight version of the full HelpStudio product, developed by Innovasys . HelpStudio Lite is recommended for anyone extending VS 2005 - for example, by creating add-ins, controls, or packages. You will likely also want to author and include Help content with your extensions to VS. You can use HelpStudio Lite to author your content and compile it to the Help 2.5 (hxs) format, so it can be integrated with VS 2005. The HelpStudio Lite documentation includes details on how to create deployment projects for your content (your hxs files). There are a couple options. One option is to use the Help Integration ...Show All
