Software Development Network Logo
  • Windows Forms
  • Visual FoxPro
  • Windows Vista
  • Visual C#
  • VS Team System
  • Visual C++
  • .NET Development
  • Visual Basic
  • Visual Studio
  • SharePoint Products
  • Game Technologies
  • SQL Server
  • Microsoft ISV
  • Audio and Video
  • IE Development

Software Development Network >> chris_nelson's Q&A profile

chris_nelson

Member List

Chaman Zinga
Arjun B
Aftab Khaliq
mattdawg
Sobreira
Holm76
PaulC1234
ector
Troy Lundin
markios
michaelp
swagatika_m
mtndwell
wbrogdo1
Juan Carlos Trimiño
Pockey
nrf
NextXtreme
bilalso
JERRYa
Only Title

chris_nelson's Q&A profile

  • Visual C++ How many users still develop with Visual C++ 6 or 7.0?

    Hello, We are developing a SDK for our tools and provide libraries for Visual C++ 6, 7.0, 7.1 and 8.0. Since it is quite difficult to maintain 4 versions, I am wondering if it makes sense to discard libraries designed for Visual C++ 6 and Visual C++ 7.0 and keep only 7.1 and 8.0 Does someone know what is the percentage of VC6, 7.0, 7.1 and 8.0 currently on the market Thank you! Laurent I've no idea of the numbers, but my sense is that 6.0 is still widely used (mainly by those that detest the IDE of 7.x and above), 7.0 not so much (since 7.1 came out only a year after 7.0 most people I know moved up to 7.1).  7.1 is used a lot. And 8.0 is catching on. ...Show All

  • Windows Forms How do I get the number of lines in a text file without already knowing how many there are or its contents?

    Visual C# 2005 The topic title is pretty self explanatory. I want to create a method that will read a text file and return the number of lines in the text file. I need a method that can be implemented in plain code and inside its own function. I am combining this with another method I have to get a list of commands, which should be easier than using a dictionary array/collection. Any help is appreciated. Thanks. If its a standard text file, a brute force but easy way would be to use a StreamReader and the ReadLine method and count Copied (then modified) from VS2003 help: (should be same in 2005 I would think) int lineCount; using (StreamReader sr = new StreamReader("TestFile.txt")) { String l ...Show All

  • Windows Forms Problem with updates

    Hi! Is there any way to update child records in a master detail form without using datagrid view control. It is working fine with a datagrid view control but I want to implement it through text boxes. ...Show All

  • Architecture Detecting internal calls in business object without using TLS or overloaded internal method

      Hi Forum I have the following problem. I need to know whether a call to a business object was made from another business object or directly from the UI. I need this because of Security and Logging reasons. Security - Users might not have permission to call the method on a business object. But another business object might need to call it. - But it's the same method :( Logging - I often want to log when a user performs an action. Another business object might also perform that action but then I don't what to log it. But it is the same method. ;( The best solution I have found is to make an internal version of the method with parameters. Like this: public class BusinessObject{ &n ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Magenta sprite color comes up transparent?

    This seems to be a new behavior in Beta 2, is it a feature or a bug When I draw a sprite with SpriteBlendMode .AlphaBlend that contans the color (255, 0, 255) that color shows up as transparent. Is this to allow an easier way to create transparent regions in your sprites Bill Just as an artist creates images with lines, shapes, the presence and absence of color, etc, etc, a programmer creates games with a slew of tools as well, such as TextureProcessors, GameComponents, and Vectors.  After all, a color is simply a varying combination of red, blue, and yellow, as a Vector is a combination of floats. Compare the use of the default ContentProcessor (SpriteTextureProcessor in this ca ...Show All

  • Windows Forms Non-English Installation Dialogue box

    Hi, I am trying to deploy an application using ClickOnce. The application had been localized, except the installation dialogue. In other thread, someone said I can choose the different language file in the Publish->Application Files. However, there is no files can be choosen even I select "Show all files". I have selected "Traditional Chinese" but there is warning during publishing: "Could not match culture 'zh-CHT' for item '.NET Framework 2.0'. Using culture 'en' instead." How can I create the non-English installation dialogue box Thanks. Raymond. ...Show All

  • Windows Forms Error icons on my data sources

    I have been working with a .NET 2005 Windows Forms project for well over a year. Today, after I made some changes, my data sources window lists every data source with an error icon in front of it (icon with an exclamation point) and no contents (like of bindable fields). These are all object data sources that are bound to Windows Forms. I really don't want to delete them all, recreate them all, and rebind them all. And, interestingly, the forms that are bound to these data sources still work just fine... Anyone know how to get my Data Sources window back to listing the valid contents of my Data Sources so I can use them again Thanks! I came back to this today (Monday) and now it is fine. I don' ...Show All

  • SQL Server Query designer toggle button not present

    When I create a Report Server Project Using Visual Studio 2005 with SQL Server 2005 I can create a data source with no problem and the test shows it is good good. When I next create a report and go to the query builder using that same data source and click on the query builder button I see the Query Builder screen, but there is no toggle button in the top left of the screen so I cannot go into the graphical mode to see the tables. I have uninstalled and reinstalled both Visual Studio and SQL Server but I still have the same problem. What should I do to get the button visible on the screen Can anyone help It makes no difference either way, I can have new data source or a shared data ...Show All

  • Visual Studio 2008 (Pre-release) Changing the language on the fly?

    I want to change the current language when entering a single textbox. I can do this manually by changing the language setting using the Windows Language Bar. Is there a way to do this programatically Canging CurrentUiCulture doesn't do the trick ... Thanks for help ...Show All

  • Visual Studio Express Editions Can I get templates?

    Hi, I'm reading about controls and I don't have the Windows Control Library template in my project selector dialog. Is there anyway to get those templates added I know I can inherit from control and work around it, but don't I need to ensure certain rules are adhered to I've looked for a walkthrough, but I cannot find one. Thanks This shows the templates included in each version of the product. http://msdn2.microsoft.com/en-us/library/b4z62wxz(VS.80).aspx The Windows Control Library template does not ship with the Express editions - if you want it, but a copy of Standard edition or higher which will include it. Obviously you'll get a bit more as well. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Moving the view in 2D games

    Hello, I'm not sure if this will make sense but hopefully it will. Essentially I working on a 2D platformer as a way to develop a small 2D engine I'm working on that will hopefully help me when creating games in the future with XNA. The game is much like Mario, and like in Mario I need the view to follow the main character while moving non-player characters/enemies off the screen. I was wondering if anyone has developed a view-handling class or other code that would allow for a view to follow my main character on the X axis atleast while moving other objects off the screen while still allowing them to move relative their location. So while my character is running to the right of the screen, all objects are being pushed to the left until ...Show All

  • Visual C++ Why doesn't strncpy(strDest,strSource,-1) generate an unhandled exception instead of instantly ending the application?

    We've encountered a problem with calls to strncpy in our business application. When a invalid negative value is passed in as a count paramater the application abruptly ends, poof! gone like a puff of smoke, without throwing the usual unhandled exception. This means that our exception handler that is set using SetUnhandledExceptionFilter() gets bypassed and we cannot retrieve dump information to aid our debugging efforts. We have recently moved to Visual Studio 2005 so perhaps the internal implementation of some of the string functions have changed I know we should be using strncpy_s however given the size of our source and the number of places where the size of a string buffer is not passed around this would be a larger task than we have r ...Show All

  • .NET Development XML Serialization

    Hi, I'm reading about XML Serialization but I can't understand one thing: By the OO "rules" the fields should be private and accessible by properties. But XML Serialization only serializes public fields, this breaks one of the basics rules of OO programming. Can anyone show me where I am wrong or explain me thanks I was trying whit private fields with read-only propertiers, and this was not working. But with both "operators" it worked. Thanks :) ...Show All

  • Software Development for Windows Vista Error while executing the SQLDatabaseActivity

    Hi Deve;opers I downloaded the sqldatabaseactivity from this site,while executing this activity it is giving an error message like "An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code Additional information: Parameterized Query '(@CustomerId nvarchar(4000))SELECT * from Customers WHERE Custo' expects parameter @CustomerId, which was not supplied." I don't know what to do" If anyone knows how to solve this error plz reply. Thanks in advance... Regards Prabhakar Answered in this post. ...Show All

  • Visual C# How to create a LogFile...?

    Hi... I want to create a Log file in my application. I want to use this log file to put the text received & transmitted on my PC serial port throgh my C# application. I am receiving large text on my PC serial port. Is there is any special class to create a log file in C#. Thanks in advance, Vinay im not sure about that to be honest. It would probably handle itself. If you are going to be storing a large amount of strings, I would advise against it as I still think this is going to be overkill but you could use a MemoryStream and append data to that. The memorystream appends to itself and uses the memory as a backing storage. Then you can write the contents to file afterwards: http: ...Show All

©2008 Software Development Network