Marcelroos's Q&A profile
Visual Studio warnings in Code Snippets Output for snippets in My Snippets folder
Hi Everybody, I've got a strange problem with Code snippets I've created for C# (I'm using VS2005 for Developers). I've created the snippets xml files (using snippy) And put them in Visual Studio 2005\CodeSnippets\Visual c#\My Code Snippets The snippets I've created work OK, I can add them from the Intelisense menu, or by writing the snippet shortcut and pressing TAB. The problem is that I keep getting these warning in the Code Snippets Output window C:\Documents and Settings\<myUser>\My Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets\events.snippet: Missing or unspecified Language attribute C:\Documents and Settings\<myUser>\My Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code ...Show All
Visual C++ C++/CLI S**Ks what syntax direction should I really follow???????????????
I'm confused on what C++ language syntax to learn cause there are too many flavors.. I want to learn C++ but which one is the best to conquer,,, I have been playing with C++/CLI But what I'm find is the syntax is limited,,, things that I find on the internet that already work in C++ have no compatible syntax in C++/CLI..... so why bother,,,, I have found many post that say not to use C++/CLI... I have no idea how and what turned into what like a flow chart c turn into c++ and what flavors thanks.... Ok I switched to starting my project with C# instead of C++ then played with the code.. What a difference!!! Things I couldn't do in C++/CLI are working in C#.. ...Show All
Visual Studio 2008 (Pre-release) How To set the ClientBase Address To be Routable
Hi All Using the WCF service, I just finished writing a little pub/sub e-mail application that resembles outlook (a little bit some how) The WCF service I Created uses a Duplex communication and when an a new email is sent for an online client, the service automatically invokes a call back event attached to the client. In order for the service to find the client, the client first has to provide its base address on the binding information of the client side when it subscribes to the service. Now everything works fine as long as I am on local area network but if I am on a different subnet or I am trying to access the service form a different network, then the service can not find the client and Vise versa How sho ...Show All
.NET Development Announcing .NET Framework 3.0
Just found this on MSDN: Announcing .NET Framework 3.0 Senior Vice President Eric Rudder announced the unveiling of the final release of the .NET Framework 3.0 at a recent keynote at TechEd: Developers conference in Barcelona, Spain. Download the new release today. Here is the direct link to the download page. http://www.microsoft.com/downloads/details.aspx FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en One more thing, you can download the entire redist package to use on your local network from the download page. Here are the direct links: Full Redist package x86: http://go.microsoft.com/fwlink/ LinkId=70848 Full Redist package x64: http://go.microsoft.com/f ...Show All
Windows Forms NumericUpDown Control binding issues
Hello, I have a NumericUpDown control bound to the property of an object. Using the up and down buttons update the property. However, typing in a number directly into the control and forcing the control to lose focus does not update the property. Is this the correct behavior of the NumericUpDown control. I am using VS 2003 .NET Here is the code to bind the control: void BindNumericUpDown() { m_numericUpDown.Bindings.Clear(); m_numericUpDown.Bindings.Add( "Value", m_object, "Property" ); } Thanks In vs 2005, you can simply use the DataSourceUpdateMode.OnPropertyChanged parameter to implements your desire,as following: m_numericUpDown.Bindings.Add( "Value", m_object, &qu ...Show All
SQL Server Change Table from Namespace
I have a table like this : dbo.Table, and I recently create a namespace, and that table belongs there. So I want the table to be created on the new namespace, Namespace.Table, which is not big deal because I can script the table as a Create, and changes the [dbo].[table] to [Namespace].[Table]. But I need to import all the rows already on the old table. How can I achieve that Thanks YOu can simply do a INSERT INTO SchemaName.NewTable SELECT * FROM SchemaOld.OldTable HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Team System Updating default 'MSF for Agile' banner on project home page
Hi all, I am attempting to update the banner on my TFS Project Portal Home Page. I have successfully customized the project template to our requirements but would like to update the home page banner. Note I am not trying to update the banners displayed on the Process Guidance pages, but the banner on the project Home page. I have already made a number of changes to the default SPS Site, saved it as a template and loaded this new template so it is used with my new project template. I expected to be able to also do this with Frontpage simply by uploading some new images, however when I attempt to upload the new gif files into the sites 'images' directory I get the following error: 'Server error: The Web site that is referenced ...Show All
Windows Forms How to loop through an unselected CheckedListBox ?
How can I loop through my checkedlistbox I am now using the following code : Dim checkeditemindex As Integer Label2.Text = "0" '#########Test############## For Each checkeditemindex In CheckedListBox1.CheckedIndices CheckedListBox1.SetItemChecked(checkeditemindex, CheckState.Checked) Label2.Text = CInt(Label2.Text) + 1 '#########Test############### Next Label1.Text = CheckedListBox1.Items.Count '#######Test########### Label1 can show the exactly record number of my Checkedlistbox but Label2 remain 0 (The codes seem skipped) BTW, My checkedlistbox has no checked item when the form show. So, I guess that I cannot use CheckedListBox1.CheckedIndices, am ...Show All
.NET Development ODBC Access using Server Explorer gives TABLE_CAT error
Hello I am having a problem accessing the ODBC tables from the Visual Studio .NET 2005 version I am trying to use the Server explorer (View a Server Explorer) option in VS 2005 to acce ss the data through one of our properiatiary database. I am able to successfully login and execute Select Queries in the Queries BOX. But when i try expanding the drop down of TABLES and VIEWS in the right pane after connecting through the system DSN, I am getting the following error. Microsoft Visual Studio Column 'TABLE_CAT' does not belong to table Tables. This method works fine with the VS .NET 2003 version. I was trying to find out if this could be a problem since couple of folks had reported this problem in ...Show All
Visual C# Can char type hold escape sequences?
Hi, In Learning C#, the authors states that the char type can represent a simple character ( A) , a Unicode character ( \u0041 ), or an escape character enclosed by single quote marks ( '\n' ). Isn't '\n' an escape sequence rather than an escape character. Isn't "\" alone the escape character Can the char type hold entire escape sequences then, which are a group of characters beginning with an escape character, and which can be used as a command to control devices like the display Please clarify. Karim The compiler converts the two textual characters \n in your source code into a single character (code 10) in the compiled program. So textually, '\n' is an escape sequence of characters, and ...Show All
Commerce Server Updating GUIDs for use with DW
Afternoon, I’ve been having trouble importing objects into the DW from the CS databases: I’ve found a post on Alan Faulkner’s blog: ( http://blogs.msdn.com/akfaulkner/archive/2006/08/24/719638.aspx ) and the CS 2002 documentation: (http://msdn2.microsoft.com/en-us/library/ms944310.aspx) which mentions that all GUIDs need to have brackets to work with the DTS DW Importer. Our existing system does not use this format. I can easily migrate the existing profiles to the new format but I am worried that changing the transaction GUIDs will cause problems with data held in the various binary data columns it uses. Has anyone any experience of performing this change and do they know if there are any issues with just updating the GU ...Show All
Visual Basic I have a MediaPlayer and Upload .avi,.mpeg and other media files
I have a MediaPlayer on Web Form.And I want to upload media files(.avi,.mpeg) and so my code any ASP.NET related questions should also be posted over at the ASP.NET forums: http://forums.asp.net ...Show All
SQL Server Copying variables from another package
HI, we have something like 120 packages that need to be "upgraded" to a newer version of a template. Basically, we need to add a bunch of variables of various types (12-15 variables). Is there a way to open the package in a script task and add those variables programmatically Or is there another way to do it (e.g. modify the dtsx file) Thank you, Ccote There's no way to do this using the Designer. However a package is just an XML document so you try adding a new variable by processing those XML documents using XQuery. If you work out how to do that - reply here and let me know -Jamie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Questions about the Camera Examples
Why does the example turn off culling so the back side of the triangles can be seen (Seems to defeat the purpose of back-culling.) Which leads me to the next question... Why are we looking at the back-side of the triangles in the first place I am trying to build a tiled gameboard. When translating my quads, positive numbers seem to go up and left. And when I texture my quads they are all flipped horizontally. I'm relatively new at game programming but this seems kinda convoluted to me. Why do it like this I'm a Westerner. I read from left-to-right top-to-bottom. All this backwardness is totally unintuitive. I want to look at the front of my quads and leave back-culling on. I want to build my tile gameboard from left-to-right top-to-botto ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Exception throw by GraphicsAdaptor???
Hi, I am getting a weird exception throw from 4 PCs that have the XNA 1.0 redist installed. I have a development PC that is executing the game perfectly, but the other 4 PCs (Windows 2003, Vista and XP SP2 based) throw this exception: The type initializer for 'Microsoft.Xna.Framework.Graphics.GraphicsAdapter' threw an exception. Is anybody else having this problem The project I am distributing is just a WindowsGame project, unaltered. I have exactly same problem! On my computer it's working fine, but on other PC it's throwing error: "The type initializer for "Microsoft.Xna.Framework.Graphics.GraphicAdapter" threw an exception." Code: Dim presentParams As ...Show All
