vitich's Q&A profile
Visual C++ GDI Back Buffer
Is there a simple way to make a backbuffer for GDI hdcCompatible = CreateCompatibleDC(hdcWindow); //Draw anythin on hdcCompatible. MoveToEx( hdcCompatible , (int) x - 10, (int) y, (LPPOINT) NULL); LineTo( hdcCompatible , (int) x + 10, (int) y); MoveToEx( hdcCompatible , (int) x, (int) y - 10, (LPPOINT) NULL); LineTo( hdcCompatible , (int) x, (int) y + 10); //Copy back on screen (window). BitBlt(hdcWindow, 0,0, windowWidth, windowHeight, hdcCompatible, 0,0, SRCCOPY)); DeleteDC(hdcCompatible); ...Show All
SQL Server SQL Server Managment Studio Express 2005 Import/Export Wizard
I've created a new database and restored the database from a backup. I'm wanting to import raw data from an excel spreadsheet into the tables of the new database. When I right click on the database, and hover over tasks the import/ export data menu options are not in the menu.The menu items ends at 'Generate Scripts'. I'm connected on a local instance to a registered server. Can anyone advise hi, Lee Rivers wrote: I've created a new database and restored the database from a backup. I'm wanting to import raw data from an excel spreadsheet into the tables of the new database. When I right click on the database, and hover over tasks the import/ export data menu options are not in the ...Show All
SQL Server using sql to deploy a database
I am trying to write an installation for my application. I am using an SQL Express database as well as an ODBC driver to connect and querry an existing interbase database. Therefore the install needs to do the following: Install .NET - done Install SQL Express - done Install application - done copy some XML files - done Install ODBC Driver - done Create database - not done I am using a setup and deployment project to do the above. I have also written a small application to install the ODBC Driver and attepmt to create the database which I intend to run as a custom action if possible. I have used the SQL management studio script wizard to write an sql script for creating the database with the intention of usin ...Show All
Visual Basic CType Question
Hi Is it possible to change the type of an object by passing a variable as the type name By this I mean: dim sType as string = "Integer" CType(myObject,sType) CType doesn't appear to allow this, is there an alternative command I can use Any help much appreciated Cheers, Jon good find So... Dim theType as Type = System.Type.GetType("Integer", true, true) Dim theObject as YourObjectType = System.Convert.ChangeType(myObject, theType) ...Show All
Windows Forms new to distribution....problems please help
I have just started sending the odd application around to various comps to get judged (under 15 comps) but have had trouble with getting the app to install on other computers... I finish my app and create a setup for it putting in all the rescources etc but when the setup is run on another computer (from a disk) it says the .net framework needs to be installed. I don't understand this because books ive read say only vb run-time files are needed which I thought were automatically put in the setup. And even after the .netframework is downloaded to the users computer it still fails to install the app. this is very annoying and embarrasing to deal with, can anyone give me some advice ...Show All
.NET Development Problems with a localization project
Hello all, Following Michele Leroux Bustamante's Globalized Windows Sample , I've worked on a project of mine, a window app, that uses a different project exclusively for storing Strings in different languages. The idea is adding a reference of the localisation project to the main project, and so enjoy the intellisense whenever chosing a String to show on the form- while the String will be chosen according to the Thread.CurrentCulture and the Thread.CurrentUICulture, which could be assigned before calling the Application.Run(form1()) method. This worked perfect when I managed everything from within the solution, the problems started when I've taken the main project as a .DLL and tried using it from a different solution and a different proj ...Show All
Visual Studio Help disabling Just-In-Debugging
I installed .net 2.0 yesterday and now Just-In-Time Debugging has taken over my apps I work on outside of VS.net. I have followed all steps I have found to disable JIT with no results. So then I uninstalled 2.0 and reverted back to 1.1. Still, the JIT dialogue pops up. The pages I am working on are classic asp pages and the last thing I need is these JIT popups. I have been unable to find any information beyond the checkboxes in VS.net. Could anyone shed some light on this If it matters, I am on XP Pro and run VS.Net 2003. Thanks. Please Habib, help me. I get the same error message, but when i open games: "An unhandled win32 exception occurred in Civlization4.exe [3980]. Just-In-Time debu ...Show All
Visual C++ Problems with CBitmap and CDC
Hello, I am trying to use a CBitmap that is quite a bit larger than the DC on the Windows Mobile device I am using. As a test, I am blitting this CBitmap black and then copying it to the buffer DC using an intermediary DC. However, it is not working. I cannot for the life of me figure out what is going on! Here is the code (all the calculations are correct going into the BitBlts): RECT screen; GetClientRect(&screen); int bufferWidth = screen.right*Minotour::Constants::BUFFER_SIZEFACTOR; int bufferHeight = screen.bottom*Minotour::Constants::BUFFER_SIZEFACTOR; CDC* tempDC = new CDC(); tempDC->CreateCompatibleDC(readyBuffer); CBitmap* test = new CBitmap(); test->CreateCompatibleBitma ...Show All
Windows Forms Scrolling a panel containing graphics
I actually call this form from another form. When it loads I see it flicker as it paints, but then it just shows up blank. If I click on the form, then it actually redraws the graphics. The main problem I am having is in the scrolling of the panel. When I scroll it ends up a big mess and doesn't work as needed. I know it has something to do with the AutoScrollPosition.X and .Y, but I've added it to the DrawLine methods in the x1, x2, y1, y2 points and still doesn't work the way I am expecting. I just need it to scroll smoothly. Maybe I don't understand the scroll, but I thought I am still technically drawing at zero even if the scrollbar is all the way down and I have to use the scrollbar position to draw the images so it appears as if it ...Show All
Visual C++ modal dialog box not closing quickly enough
Hi. I have a single threaded MDI application with several windows that are concurrently open and displayed during normal operation. I need to print the contents of a user-selected window. Per end-user request I display a CDialog based modal dialog box that allows the user to select the window he wants to print and then click on the OK button. I have code that then takes a bitmap snapshot of the requested window and prints it to the printer(from KB article q186736). So far so good, but if the dialog box overlaps the window that the user wants to print, the overlapping part of the dialog box is also printed. This doesn't make sense to me - the dialog should completely go away as I understand it. FWIW here's a code snippet: ...Show All
SQL Server Sql Server 2005 and Sql Server 2005 Express Edition
I have Sql Server 2005 and Reporting Services 2005 installed in my machine. Can I install besides this products Sql Server 2005 Express and Reporting Services 2005 Express. Can they be both in the same machine Will I get any problem doing this Thanks, Marco Yes, both the Engine, Reporting Services, and Analysis Services are instance aware components, thus you can install them more than once on the same machine without any problems, as long as you give them a distinct instance name. Integration Services, Notification Services, and client components (tools) are the opposite. They can only have one copy per machine. Thanks, Sam Lester (MSFT) ...Show All
Windows Forms DataGridView: Double-line header
Is it possible to have two lines in the header I want to group several columns under a bigger group column. And I need two header lines for the columns, one for the individual columns and the other for the group column. If I cannot do this, then I have to hide the header and use two data lines to emulate the header. Thanks! Hi! I would like to know how you solved this problem about Double-line header, if you, please let me know how. Regards. Joseph ...Show All
Visual Studio Express Editions syntax code
to those of you who are familiar with the coding, could you write a simple code example so we can understand,give us simple syntax examples please of; deleete command accept changes command that way those of us who are beginners can read the syntax and get a better view of how it works. indeed but it has been explained on what things are doing at the time and how to fix it. It's hard to just explain where the problem is if you have any errors and not explaining in depth on what code you have, where the errors are coming from etc... What exactly, in this case, do you need help with I understand for this thread you are wanting to know how to use a Delete command correct I have supplied cod ...Show All
Visual Studio Express Editions Starcraft As Resource?
Hello My Purpose: Make a login for starcraft to limit my brother's time playing starcraft What I already know I can put 'starcraft.exe' as a resource Call 'starcraft.exe' from resource to run it What I need to know Can I call starcraft.exe to run it as if the file was just there without being a resource What I want to do Make a login program and handtype (in cleartext) in the code such as If userID.text = "ID" Then 'call starcraft.exe from resource' End if and the starcraft.exe only launches if the user enters the right password and user combo The reason that I want to put 'starcraft.exe' into resource is because even my 11-year old brother knows how to get into the Programs File then just manually launch 'starc ...Show All
Visual C++ regarding win64 Dll reference issues
hi, I ported a win32 vc++ Dll into win64 Vc++ DLL(extended Stored Proc) aim of this DLL is it acts as Interfcae b/w MSMQ and Sqlserver my machine consists of win64 hardware and win64 OS. and win64 supported .Net Framework. .net 2005 and sqlserver2005 i used vs2005 as editor.i,e i opened it as vc++.net project with some small changes i compiled that into win64 DLL. in configuration Manager i specified it as Active win64. and DLL was Sucessfully build. when i tried to run the extended stored proc which uses that DLL i got the following error. Msg 17750, Level 16, State 0, Procedure xp_TestDataComm, Line 1 Could not load the DLL xpDataComm.dll, or one of the DLLs it references. Reason: 193(%1 is not a v ...Show All
