Transco901's Q&A profile
Visual C++ Halting Keypresses?
Hi all, I am writing a program that is supposed to lock a user from the common key presses, i.e. Alt + F4, Crtl+Alt+Del, etc. I know I have to have case WM_KEYDOWN: switch(wParam) { //The Keypresses } break; My problem is that I do not know how to halt the keys from doing anything. I am certain that VK_F4 is for the F4 key, but how do I link alll of the keypresses of one command together, i.e. the keypresses for the Task Manager. I also need to know how to make the window, that will disappear, to keep windows ...Show All
Smart Device Development DirectDraw application not executing in Windows CE Platform Builder 5.0
I am trying to execute an application in which I am using DirectDraw API to create overlays. This application has to be executed on a Windows CE 5.0 platform in a mobile device or an Emulator (I am using Pocket PC 2003 SE Emulator ). In the application a DirectDraw object has to be created using the API call: DirectDrawCreate(NULL, &pDD, NULL); But it is failing everytime giving the error: Application xyz.exe has performed an illegal operation and will be shut down. If the problem persists, contact the program vendor. Program: xyz.exe Exception: 0xC0000005 Address: 00000000 The pro ...Show All
SQL Server Management Studio and Beta versions
Hi, Does the SQL Server Management Studio Express (CTP) November 2005 work with Sql Server 2005 Express which was included in the Visual Studio Team Suite 2005 Beta 2 Thanks, shiversticks SQL Server Management Studio Express only works with the RTM versions of SQL Server 2005, SQL Server Express, SQL Server 2000, and SQL Server 2000 Desktop Engine. You can download the RTM SQL Server Express here: http://msdn.microsoft.com/vstudio/express/sql/download/ ...Show All
Windows Forms Can't Add Rows to Datagridview
Hi, I am trying to add a row to a DataGridView that is bound to my database. object[] values = {"new opperation", opperation_size, "1"}; myDataGrid.Rows.Add(values); seems to throw an exception (I tried putting it in a try/catch block and the catch would always go off) I was wondering if it is something wrong with my code, or is it that I just can't add rows to it while it is databound It worked perfectly before I bound it to my database. Thank you -Bryan St. Amour Yes, it throughs the following exception, which explains all the situation System.InvalidOperationException: Rows cannot be p ...Show All
Visual Studio Team System Random server 400 errors
Usually on startup of VS.Net I get 400 errors connecting to TFS. After 1-3 retries it works. The same things happens once in a while for checking out code. Usually after 1 or 2 retries it's successful. I looked on the server IIS logs and I don't see any 400 errors. I'm wondering if anyone else is getting this error All the directories have integration authentication enabled. It's just very annoying. Please post the actual errors that you receive. Additionally, check the event log of the application-tier (log: application) and post any errors or warnings for TFS components. ...Show All
Visual C# calling scripts from C#
how can i call javascript functions from my C# code <script language=javascript> function test() { // my code } C# -------- protected void Page_Load(object sender, EventArgs e) { Response.Write("<script language='javascript'>test();</script>"); } the above C# code is not working. but if i use alert() function, then its working Response.Write("<script language='javascript'>alert("hello");</script>"); pls help me to correct the problem. You can't execute a JS method in the CodeBehind. What do you want to do Now you just write some Java ...Show All
Visual C# Interactive Report
How can I add click event handle to labels in report ...Show All
Visual C++ Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document."
I have recently install VS 2005 Pro and I cannot get breakpoints to work properly in my C++ Win32 application. After compiling for Debug and placing a breakpoint, when I run my program the breakpoint indicator becomes a hollow circle with an exclamation point and I see the above message when I hover over it. This makes no sense to me because I have verified the following: 1. Yes, I have compiled for Debug. 2. Output for my program indicates that "Symbols loaded". 3. I see the .pdb file in my \<project>\debug\ folder with the correct build date/time. Curiously, I have created other new projects under VS 2005 tha ...Show All
Visual Basic Whats wrong with this?
Im using this code to save: Dim app_path As String Dim nFileNum As Short app_path = My .Application.Info.DirectoryPath FileOpen(nFileNum, app_path & "\" & "SortingApp.data" , OpenMode.Binary, OpenAccess.Read, OpenShare.LockReadWrite) I put this code in the form1 load But when i run the program it highlights the whole last line in yellow and says 'bad file name or number' Could someone please tell me whats up with that! OK, Here's how we're going to proceed. Waxing a bit philosophical for a moment, I'm not going to "help" you. I'm going to assist you. If I help you, what that really means is ...Show All
Windows Forms 121 PictureBoxes slow my app. Help me optimize?
I'm developing a program that uses 121 pictureboxes on one form and when I run the program, it is rather slow. I haven't even coded yet! If I try to move the window, the contents get especially choppy. It's even worse if I'm moving the app and it hits the edge of the screen. Plus, my pictureboxes all need to have transparent backgrounds. That slows my app even more. I know that the alternative is having one big picturebox and using the Paint event. I've tried that back in Visual Basic 2003 and it was a total nightmare. Can anyone help me optimize my app so that all the pictureboxes don't slow it ...Show All
Visual C++ Post-build events in VC++ 2005 always running
Why are post-build events (Configuration properties - Build Events - Post Build Event) executed regardless of whether any build occurred in the main part of the build If nothing changed in the project, i.e. the main build never occurred because it was already up to date, a post-build event is still run. In VC 6.0 when the build was up to date, the post-build event did not run which is the behavior I desire. Should this be filed as a bug or is this by design Is there any way to make a conditional post-build event based on whether the main build occurred, like in VC 6.0 Thanks, Ted. FINALLY ...Show All
Visual C++ returning string references
Hello everybody! I tried to return a reference to a string by a function, but this doesn't work with MS VC 2005. Here a samlple: #include <cstdlib> #include <iostream> #include <string> using namespace std; string& foo(string bar) { return bar; } int main( int argc, char *argv[]) { cout << foo( "baz" ) << endl; system( "PAUSE" ); return 0; } When I compile this piece of code with the MS VC 2005 and run the program I get lot's of text plotted to the console window, then the program crashes. When I compile this piece of code with Dev++, which uses MinGW 3.4.somethi ...Show All
SQL Server Conditional calculated member
Hi there, I have a newbe MDX question. Im trying to make a calculated member that contains a different calculation depending on a value of an attribute. something like: "CASE WHEN Attribute X = "string A" THEN calculation X ELSE calculation Z" I tried the IFF and the CASE statement, but with negative results Any Suggestions I am using MS AS 2005 RTM. A more efficient way to achieve this in AS 2005 (assuming that AttributeHierarchyEnabled is set to True for Attribute X) is to scope the calculation in the cube MDX Script on Attribute X. This Newsgroup thread explains how, in a similar situatio ...Show All
Windows Forms Create an event for the close button on the title bar
Hello, I am using VS 2003. Lets say for example we have just a simple form and at the top of the form we have the default minimize, maximize and close button. How would I create an event for when if the user clicks the close button at the top of the form before the window closed it would perform an operation For example, if the user clicked the close button at the top, it would print a message box saying "Are you sure you want to close" or something of that nature. I simply just want to be able to execute some code when the user clicks that close button. Thanks. ~zero sorry this code i was sending to some other ...Show All
Visual Studio Express Editions Visual Web Developer Express - No Publish Button
Hi, I am trying to publish an website that I built with VWD. I test the site (f5) and it works well, but when I try to publish the site, the only choices I get is build website or copy website. I do have IIS 6.0 server with asp 2.0 loaded and ready to go, and I can connect to it, but I can't seem to publish to it. Has anybody run into this and have a solution PS I'm using a connection to sql server 7.0 which VWD and my server can see. Thanks for any help. I dont have one either - It looks like nobody does. I found this note in the help files: The Publish Web utility is not available in Visual Web Developer Expre ...Show All
