JimGecko's Q&A profile
SQL Server negative values on a measure
have a measure called total sales amount in a FACT table some values are reported back as a negative number. anyone know the issue int can go to roughly +/- 2 billion, so it would be unlikely that it has overflowed. Another possiblity might be the numeric format. If you have defined a custom number format, make sure that you don't have the postive and negative sections around the wrong way. ...Show All
Visual Basic Making my programs executable?
I am fairly new to programming, and going to college for Software Engineering (just started); I was just wondering once you get all the code written out, and everything in place like you want it, how do you convert it to an .exe to where it will run on any machine Any help would be appreciated! Simply compile the project. Build > Build solution, and this will output it (depending on the project type) to an .exe file. On order to run it on other people's computers, they must have the latest version of .NET Framework installed, otherwise it will not run. You can create an installer for the project, which will automatically download the framework required on their PC if they do not have .NET Frame ...Show All
Visual Studio Team System Get labled files with TFS API
Hi, I can get latest files from TFS using GetStatus status = ws.Get(serverItems, VersionSpec .Latest, RecursionType .Full, GetOptions .Overwrite | GetOptions .GetAll); but, how can I get all the files that belong to a label Thanks. You might want to take a look at the VersionSpec class in the documentation. There is a subclass of VersionSpec called LabelVersionSpec that has functionality for specifying labels. Passing an instance of LabelVersionSpec as your second parameter instead of VersionSpec.Latest could be a good bet. http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.labelversionspec(VS.80).aspx ...Show All
Windows Forms datagridview picture column - can I have a cell without a picture?
Hi I have a datagridview control with three columns. One of the columns is a picture column which is bound to an imagelist. What I'd like to be able to do in some cases is show no image at all in this cell. I can't find a property of the image list to display 'none'. Is it possible to do what I'm after Cheers, Mike ...Show All
Windows Forms ClickOnce and .Net Framework 3.0
Hi ! Do you know if the new version of the framework has any enhancements/changes/upgrades regarding ClickOnce Technology Planning new deployments, is there anything different that should be taken into account Thxs Daniel .NET Framework 3.0 doesn't have any changes to ClickOnce. This is the version being released with Vista (and should be available for downlevel platforms as well) and is basically the 2.0 Frameworks with the Windows Presentation Frameworks, Window Communication Frameworks, and Windows Workflow.... Until we get to the Betas, we can't discuss what will be in the next version of Visual Studio... but I have been busy :-). ...Show All
Visual C++ overload operator..
What is wrong with this declaration //overload operators definition in my class fraction_class operator +( const fraction_class & t) const ; in the program: fraction_class:: operator +( const fraction_class & t) const { fraction_class sum; int opcommdem,opresult1; int opresult2,opresult1; int nresult1,dresult2; ------ Build started: Project: overload_operation_8, Configuration: Debug Win32 ------ Compiling... overload_operation_8.cpp .\overload_operation_8.cpp(20) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int .\overload_operation_8.cpp(20) : error C2556: 'int fraction_class::operator +(const fraction_class ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Hope Xbox360 can support Flash File(*.swf) !
xbox360 is a good TV Console, can use XNA tools make game by myself, but now,flash game is much more other on internet, I hope make flash game on Xbox360. It's fun. Well, I believe flash uses opengl as it's rendering core, xbox 360 only supports d3d afaik... However, I believe there was a flash wrapper written for the Ogre3D engine, however that's still C++ not C#. In short, it would be pretty tough if not impossible. There are alternatives however, you should look into Garage game's XNA game framework, it's a neat tool that allows you to easily create 2D scrolling games (drag and drop graphics, scripting, etc) fun stuff. With enough work, you may be able to use it as a gui system for your own ...Show All
Visual Studio Tools for Office vsto - .Net framework 2 security - publisher certificate as avidance
Hello, I cannot find the way to implement certificate as security for my vsto word application. how can i do that references thanks Hilla Hello, Unfortunately Vsto doesn't support true click-once behaviour. Vsto uses a deployment scheme that is very similar to click-once but it requires that all trust decisions be made via caspol policies. Some very good articles on how to deploy Vsto solutions can be found at http://msdn2.microsoft.com/en-us/library/hesc2788.aspx . Thanks Kris Makey ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ Squire James wrote: Employers seem to make a big deal out of miniscule differences, treating people like vb and C# are different job skills and all. I've always thought this as well. VB and C# are extremely similar -- much closer to each other than C# is to C++. Personally, I prefer writing in C++. I like knowing what the machine is doing, and VB/C# don't provide that knowledge. And with the addition of C++/CLI, ...Show All
Software Development for Windows Vista not using release()
Hi, In some of the directshow documents, the authors use release() method after they are finished with some interfaces. For example: // get next filter EnumFilters -> Next (1, & Renderer , & fetched ); Renderer -> EnumPins (& EnumPins ); EnumPins -> Reset (); numoutputpins = 0; while ( EnumPins -> Next (1, & InPin , & fetched ) == S_OK ) { InPin -> QueryPinInfo (& pinfo ); pinfo . pFilter -> Release (); InPin -> Release (); if ( pinfo . dir == PINDIR_OUTPUT ) { numoutputpins ++; // we can jump out if we found an ...Show All
Visual Studio 2008 (Pre-release) Loading Separate XAML File
I am creating a UI that will have 'placeholders' for the certain elements. In other words, if I have, let's say, a dock panel, rather than add my controls directly to that dock panel, I am going to load a separate XAML file, which contains the layout elements and controls. I am not sure just how I would go about doing this (and haven't been able to find any good examples). Is this the approach I should be using I need to use placeholders, or something similar, since the UI is going to appear differently to different types of users. Any help or, better yet, examples, would be much appreciated. Thanks!!! ...Show All
Windows Forms How to find start of line in richtextbox
Hi How can i find the start of line in richtextbox For example, RichTextBox1.SelStart = RichTextBox1.Find("i m finding") what is the start of line that includes "i m finding" I want to know selstart number of start of line. thanks. why dont you use the Find method, which returns back to you the starting position of that found string you can then maybe use the SelectionStart property to indicate the starting position of that string Dim theResult as Integer = Me.theRichTextBox.Find("String Here") if theResult > -1 then Me.theRichTextBox.SelectionStart = theResult end if ...Show All
Visual Studio Express Editions startIndex problem when unable to connect to the internet
I've been creating a program that will restart my modem so I can get a new IP whenever it changes to an IP out of the range I want. For getting the IP I used a ready-code that catches the content of a webpage into a textbox. Then I used a System.IO.StringReader to start getting the content of the textbox after the ": ", which is when the IP comes. Here it is: Public Function getIPstring() As String 'This creates the filestream and streamreader that is used to read the source Dim SR As New System.IO.StringReader(TextBox1.Text) 'Here is where we start looking for the ip. 'This puts the entire file into a string Dim entirefile As String = SR.ReadToEnd 'This gets the starting position o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. missing Direct3D device???
Help! I'm working on my first XNA Project: Learning how to work with 2D images/sprites. I follow the directions completely and I get this in the Main() module when it tries to access the Game1 module: Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater. I tried downloading the Direct3D 9.0 SDK extras package, but it didn't help. I'm stumped. Dan This really irritates me that their is absolutely no workaround! I'm creating a strictly 2D game without any pixel shading, and I was working on them before beta 2 with no problems at all. Now that its required its ridiculous! I found workarounds after it gets to the actual Game class, but mine wont get that far. ...Show All
Windows Forms textBox Question
is there a way to allow only ' a-z A-Z 0-9 ][{}()-* ' characters to be typed into a normal textBox the MaskedTextBox wont work in the way that i want it too. Im using VC++ 2005 thanks ------ Build started: Project: test, Configuration: Debug Win32 ------ Compiling... test.cpp c:\documents and settings\dion1\my documents\visual studio 2005\projects\test\test\Form1.h(2954) : warning C4244: 'initializing' : conversion from 'wchar_t' to 'char', possible loss of data c:\documents and settings\dion1\my documents\visual studio 2005\projects\test\test\Form1.h(2955) : error C2352: 'System::SByte::ToString' : illegal call of non-static member function c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System:: ...Show All
