Darren Kennedy's Q&A profile
Visual C# typedef in C#: Visible in separate projects
I saw that you could get around the absens of the C++ typedef feature by using: namespace NameSpaceCS { using Handle = System. Int64 ; or using Handle = System. Int64 ; namespace NameSpace CS { But this is only visible in one file. How do you make it visible in other projects. I have added the reference and the using NameSpace CS ; in my other project but it still seems to ...Show All
.NET Development Timeout on SQL Server 2000
I am using SQL Helper in my code and getting a timeout error. I can set the timeout value at the code level and the database level. At the code level, I need to set the properties of the connection and command objects.However, at the database level, I can simply set the query timeout value to infinite and proceed. My doubt is, if I specify a timeout of say 30secs at the code level and infinite at the database level, which if the two ti ...Show All
Visual C# DataGridView control with databound and non-databound columns
I am trying to use a datagridview control to display images associated with a given record + some text about the image. The data table contains the text, technical info and the location of the image file. (I considered storing it in the database but it is stored as a byte[] meaning that databinding it to an image column does not work anyway. My datagridview has the text and image location and bound columns (the image location is hidden) an ...Show All
Visual Studio Express Editions how to save and update database?Urgent!!!
hi...i'm using visual c# express edition to create my application for my assignment. But i'm facing problem to store the information from the form. I have tried to create a class to open the connection for it but failed. The following is the code i used to save the user's input data into database but failed. The first one, i try to save the data from textbox. The second one, i try to update the data using the datagridview. Unfortuna ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I Setup Visual C++.net 2003 Standard for Direct X Games Programming
Hello! How do I Set up Visual C++.net 2003 for DirectX Games programming. I have just up graded from Visual C++ 6, I know how to do this in Visual C++ 6, with linker and # includes, is it the same with Visual C++.net 2003 standard. If so a step by step would be helpful. Thanks. If you are planning on using Managed Directx you can just add a reference to Microsoft.DirectX, Microsoft.DirectX ...Show All
Windows Forms showing popup menu on a listview
Hi I have this code to show a context menu when i right click on a treeView, I want the same effect for the Listvew can anyone show me how...I want it so that when i right click on an item in the listview it comes up wi ...Show All
SQL Server Tricky Grand Total on Column Needed
OK, I've created this query so far: Select Distinct CustomerName, CustomerNumber, FGoal AS FG, FSched, ...Show All
Windows Forms DataGridView Calendar And Scheduler
Hi, Can anyone help me with the following Using the new DataGridView in .NET 2.0, can the look be configured so that the days of the week are headers and the rows are subdivided into 30 min. time intervals much like Outlook allows you to schedule appointments. I'd like the same look and feel. As an option, I'd like to be able to add multiple "Customer" objects to any given cell and cli ...Show All
Visual Studio Class Designer in Visual Studio 2005 Beta 2
Hi, I would like to know if there is a possibility in Visual Studio 2005 Beta 2 to design classes using Class Designer without updating the code The purpose is to have the tool create a XML schema, kind of XMI, that will at the end generate with a custom tool my Data Access Layer. Thanks Best Regards, --- Laurent Kempe - laurent.kempe@techheadbrothers.com Tech Head Brothers - http://www.TechHeadBrothers.com Blog - http://weblogs.asp.net/l ...Show All
.NET Development Using returned value from SqlDataSource1
I, a newbie, can't seem to figure this out or find the answer on forums. Any help you could offer me is appreciated. VS2005, C#, Web forms. What I'm doing is writing the login name and password to Profile.Login & Profile.Password from the text boxes on a login screen only if there is such a combo. I also want to write the person's UserID but can't get it out of the SqlDataSource1. I have an SqlDataSource1 that returns a distinct integer v ...Show All
Visual C++ Not able to print Unicode Characters on Command Prompt
Hi, I want to display unicode strings on the command prompt. I am using following code: TCHAR szTemp[50]; NLSLoadString(hInstNLSDll, ID_USAGE_2, szTemp, sizeof(szTemp)/ sizeof(szTemp)); _tprintf(_T("%s\n"), szTemp); NLSLoadString loads the string ID_USAGE_2 into szTemp. But it prints nothing from first unicode characters :( It prints the string before first unicode character w/o any problem. I changed the locale also accord ...Show All
Visual Studio Express Editions Un-escaping XML?
Hi, just playing around with some XML stuff in c# and have a problem un-escaping a SQL Connection string... The XML is as follows: < xml version="1.0" encoding="utf-8" > <dbSettings> <connectionString> User ID = ****;Password = ****;Integrated Security = False;Initial Catalog = CMS;Data Source = vaio\sqlexpress </connectionString> </dbSettings> I'm using a nodeiterator and fetching the req ...Show All
Windows Forms How to kill application?
My windows form starts like this: [STAThread] static void Main() { My_App ma = new My_App(); Application.Run(ma); } When I get into the "ma" class, I check to see if the user is online. If he is not, I just need to kill the whole app. However, I'm having trouble killing the main form from my "ma" class, so the user just sees a blank form on the screen. Any ideas thanks for any h ...Show All
Visual C# How to interpret void* in C#?
I am writing a porgram to call function in a dll created by C++. this is not a com dll,so I use pinvoke . In this function,there is a parameter was the type void* how can I translate it in C# If you know that the parameter type should be a pointer to an int, just change the parameter type to ref int instead of IntPtr. ...Show All
SQL Server Problem to connect to Reporting Services 2005 from Enterprise Managment Studio
Hi Guys and Gals Need to get some help from you Guys and Gals. After I install a MS SQL 2005 SP1 and also renamed my SQL 2005 instance, I can't connect to my reporting services from my enterprise studio. Cannot connect to CSAVSTEST3. The error message as the following" The remote name could not be resolved:' csavsstestsev3'. This is the error message I am getting only apply on reporting services, I don't have any problem to access my ...Show All
