stevenb01's Q&A profile
Visual C++ build error
after downloading VC beta 2 and spending hours trying to get the header files to be recognized and figuring out how to build a hello world file, i decided to move on to chapter 1 of tricks of the windows game programming gurus and run the sample game called freakout, i recieve this error 1>------ Build started: Project: freak1, Configuration: Debug Win32 ------ 1>Compiling... 1>blackbox.cpp 1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' 1>c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error ...Show All
SQL Server SQL Query not returning identity field - sometimes
Hello, I have a C# application that adds records to a SQL Server database using a query something like this one: INSERT INTO table_name (first_name, last_name, date_added) ('john', 'smith', '1/1/2005 12:00:00pm') ; SELECT SCOPE_IDENTITY() AS [Scope_Identity] This works fine unless there's already a John Smith in the database. When that happens, Scope_Identity is null even though the date_added is different. About half the time the record is added even though Scope_Identity is null. I've added code to notify me when this happens, but it's a pain in the neck to re-run my import utility for individual records. (The table I'm adding to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Inverse fonts
What is the prefered way to render inverse fonts I need to render some text where most of the caracters are black one white, but some are inverse (white on black). Are there any prefered ways of doing this Tomas. You can invert the colors of your font texture during rendering by using the texture stage argument D3DTA_TEXTURE|D3DTA_COMPLEMENT. ...Show All
Smart Device Development NumericUpDown Select All? How can I do this?
Is there a way I can select all in a numericupdown As in cause it all to be highlight/selected I'm assuming this is a PInvoke Thanks! Sorry, so broken down a little more... If the name of my control was numericUD... how would I do this... I get the PInvoke end of it, if just not familiar with the API. Thanks! ...Show All
Software Development for Windows Vista 2 way Communication
I am trying to build an application that uses workflow on a server and a client. I want to use WCF in the middle to handle messaging. I need to establish 2 way communication between the client and the server. I used the Expense Report sample as a bases but when I try to hook to an event on the service using remoting I get an error. Saying that the application is not flagged as serialized. Can any one help I don't have a solution for you, but I am experiencing a similar problem (somewhat similar, I think, anyway). Specifically the exception is thrown when I try to raise the event into the workflow ...Show All
SQL Server Modifying View Data
Hi, I was asking how can I make updating and deleting for data through database views in Microsoft SQL Server 2005 Best Regards, Hi, if the database view is updateable you can directly modify the table through thta mechanism. If not (in cases of union etc.) you can use an instead of trigger, which does the custom defined commands *instead of* any command you have defined. The are some sample in the BOL for it. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Administering SQL
In SQL Server 2005 to administer all aspects of SQL is there any way a non local administrator can do this We are trying to remove the DBAs from being local administrators over the SQL server machines in SQL 2005, we were able to do this in SQL 2000 but SQL 2005 is not working correctly. We want to make the DBAs a member of local power users and assign the specific rights for it. Can this be done, if so how is there a document I can reference somewhere. Hi, yes sure. Local administrators are automatically in the sysadmin group. YOu can sure remove them from the group if you don’t want them to have access to the server. On the ...Show All
Visual Studio 2008 (Pre-release) Layout broke after migrated from January to February CTP
My main Window contains a grid with 3 rows: header, content area and a footer, and one grid was placed in each area. The resultant layout is expressed in the following Pseudo-XAML: <grid name="main"> <grid name="header" row="0"/> <grid name="footer" row="2"/> <grid name="content" row="1"> <grid name="sumary" row=0> <listbox name="master" row="0" /> <listbox name="detail" row="1" /> </grid> <grid name ...Show All
Windows Forms Howto add custom clipboard operation to DataGrid
Hi, is it possible to override the builtin copy-to-clipboard operation of the DataGrid-class and to replace the standard OnKeyDown (e.g.) handling by a custom one. We already have a custom GridView class derived from DataGrid. Regards, Walter Platform: XP, .NET1.1, VSNET2003 First, let me point out that I do not know what I am doing. But I did do what you are talking about. I added a context meny to the DataGrid and included a Copy item on that menu and have an event hadler for it. I also set the keboard shortcut for the Copy item to Ctrl-C. Something in .NET automatically call ...Show All
Visual C# can i use assemblers code in c# code?
How can i use in my c# application a block of assembler code I don't believe you can, directly. The .NET framework is designed to compile to MSIL, so there's a layer between your code and the machine, which makes assembly there unlikely. You can do it in C++ tho, and you can call a C++ dll from C# using COM or just plain interop. ...Show All
Visual C# Clock
Ok. I have a Label object. In the a button click_event, I want the text in the label to start incrementing seconds. Can someone tell me how to do this See my response on the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=156871&SiteID=1 ...Show All
Visual Basic Generics and Performance (Sorting)
Hello guys, i'm just joining the forum (hopefully for good). I just started playing with Generics, obviously, i'm in love with them... Question: How would the Innerlist Sort of the Generic Collection compare to sorting directly on a constructed SQL Query Thanks fellas ...Show All
Windows Forms TaskVision server source code?
Hi, I didn't find any info on that on the web site - does the TaskVision server have source code open or just the client Thank you, Andrey yeah the server is there too, its a web service ...Show All
Windows Forms Deploy with Crystal
I am in the process of writing a small application to assist our HR department in evaluating employees that I wish to deploy to our entire company (about 80 people). The previous version of the application runs as a web application but has the normal web limitations. The primary reason that it was developed as a web application is because I didn't want to have to maintain an application on all of those workstations. Now with ClickOnce I am hoping that I can redevelop this application and deploy it to each workstation without any extra work on my part. I am aware that the .Net Framework 2.0 has to be installed on a ...Show All
Visual Studio 2008 (Pre-release) Custom UIElementCollection and data binding
I have created a custom Panel. I have also created a custom UIElementCollection for it because I need to do some extra operations when the collection is modified. Everything works fine when the custom panel is used in standalone mode. The problem is when I use this custom Panel as a items host for a data binded ItemsControl, it seems that the items are not added through the overriden Add method of the custom UIElementCollection so those extra operations are not executed. Sadly, the current design of UIElementCollection is very decieving. It shouldn't be virtual because the methods your can override or never called. ...Show All
