mcrisf's Q&A profile
Visual C++ Double buffering assistance/information required.
I'm experiencing problems with flickering in my Windows User Interface. I've tried to eliminate as many overlapping controls as possible but I'm finding it highly taxing to manage the drawing areas for each little detail of the user interface. So I heard that double buffering will eliminate the flickering with some memory usage. However, due to the way I constructed the User Interface (using the standard windows functions - CreateWindow/CreateWindowEx) along with the standard message map-method, I do not know how exactly to implement double buffering. After scrummaging through the net I found many GDI+, MFC methods as well as a few other methods involve drawing bitmaps. However I do not use MFC or GDI+, and the methods that involve ...Show All
SQL Server Database 'model' corrupted
Hi, my 'model' database corrupted and my SQL Server 2005 Express can't be started. I believe I have the SAME problem as his: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=455524&SiteID=1 but when I try the command start sqlservr.exe -c -T3608, an error message appeared: "Your SQL Server installation is either corrupt of has been tampered with (Error getting instance ID from name). Please uninstal then re-run setup to correct this problem" Well, the problem is that I have an ActiveBPEL database inside, and I really need a way without reinstalling it. Any solution Thanks, Edwin Hi Edwin, Although I can't really comment on your issue (as it would ...Show All
Visual Studio Team System Adding files to source control
I created an empty project for a Project Manager (who has Project Administrator permissions) to add files to Source Control himself. He added source to the first sub-project from Visual Studio successful. However, he can no longer add another sub-project at the same level as the first. When the TFS Administrator added this second sub-project for the Project Manager, the Project Manager still was not able to add file to this second sub-project (even after he was given the Team Foundation Administrator rights temporarily). Then the TFS Administrator added a file to the second sub-project and ask the Project Manager if he was able to check the file out. The answer was "No". Can you tell me what would cause this problem and ...Show All
Visual Studio Express Editions Setting TextBox.Visible = true not taking effect.
Visual Basic 2005 Express: When the user presses the "Send" button to send an email, there is a long delay until the MsgBox("Email Sent Successfully!") message appears. So, I added a text box to the form with text = "Sending . . . .". and I set it's visible propery to 'false'. The first instruction in the 'SendButton' subroutine is SendingTextBox.Visible = true. But, the TextBox does not become visible until the MsgBox("Email Sent Successfully!") message appears! Try putting a Application.doevents immediately after the textbox.visible = true. This should force this Command to occur prior to it continuing on with the code. ...Show All
Microsoft ISV Community Center Forums [ACCESS] How to create menu silimar the attached photo
How to use vba to create menu when click the button from form in MS Access Sorry I forgot to metion that if you want any items disabled, you just need to add: Set myitem = mybar.Controls.Add(Type:=msoControlButton) With myitem .Caption = "&Remove" .OnAction = "RemoveSomeThing" .Enabled = False End With This can be turned on or off with a variable in your code. ChasAA ...Show All
SQL Server Using VB file picker
What would be the syntax to use the VB file picker in the code section I want to do something like =code.Filename in a parameter. Where this would cause the file picker to open and allow the user to use the standard interface to track down the file. If the files are in a known location then you could create a dataset that lists the available files in a dropdown rather than a free entry textbox. Check out http://msdn2.microsoft.com/en-us/library/ms160918.aspx ...Show All
Visual C++ Multi-dimension arrays in VC++ 2005 for n00bs
Okay, a little background: I'm an aerospace engineer, not a programmer, but I'm experienced in C, and I'm using VS2005 to make some simple-ish tools for our group. I'm trying to declare a multi-dimensional array in VC++ through the 'standard' method... double test[5][5]; ...and then access it in the 'standard' way... test[0] = something I'm putting in there.; ...but it's not working. When I debug, the Watch says that test is a double[][] of length 5. So far, so good, but when I expand it, instead of the 'standard' syntax, it comes up like this.... test[0,1] Length 0 double[] test[0,2] Length 0 double[] ...and so on. I've dug through our copy of MSDN, and online and there ...Show All
Software Development for Windows Vista Adding and then Removing Directory On Vista Start Menu
Hey Guys, I have another vista related issue. What is the proper or offical way to add/remove items to the start menu. I have tried to no avail to make this work correctly. Adding the files is all good, I see them and they show up and work as expected(they are just shortcuts to applications), But when I go to remove the folder that contains the lnk's it removes it but there seems to be a second folder in its place right afterwards. Basically I am doing this to add them: string startPath = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu) + "\\Programs" + "\\Application_Shortcuts"; if (!Directory.Exists(startPath)) { Directory.CreateDirectory(startPath); }//if And this is what I am doing on the removal of ...Show All
Game Technologies: DirectX, XNA, XACT, etc. C# - Managed DirectX - Secondary Monitor
Hi, I posted this question in the C# forms forum area a couple of days ago, and I thought perhaps this was a more relevant forum for the question. I am creating a program which uses the secondary attached monitor. The program successfully creates a Direct3D enabled window which runs fullscreen on the secondary adapter (using an adapter id of 1). This does in fact work smoothly and how I would have expected. However, there is a serous flaw which I cannot resolve. If something is clicked on the primary monitor (anything at all), the Direct3D enabled window on the secondary devices is minimized immediately (and naturally the DeviceLostException occurs due to the window being minimized). Somehow I need to stop the program from auto ...Show All
Visual Studio ReportViewer scrolling problem
Hi, I'm having a problem with the windows forms reportviewer. With some customers, running Windows XP and framework 2.0, the reportviewer hangs when you scroll a report. These are all local reports, compiled into the application. Some reports have subreports and others dont. When it hangs you cant do anything in the application and some of the controls turn white. Has anybody else ever encountered this problem Does anyone know how to solve this I have encounted the same issue when I have many pages in the report. One thing we can do is to force page breaks so the view shows just one page at a time. But that was not an option for me. So I'm pretty much stuck with the prob too... UC ...Show All
Visual Basic viewing currency data in text box
Hi, i have a textbox that need to show a currency data how do i make the numbers looks like a currency text Thanks You might want to create a custom textbox for this... Here's an example. p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} @page Section1 {size:8.5in 11.0in;margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} Public Class CurrencyTextBox Inherits System.Windows.Forms.TextBox Private myBaseText As String <System.ComponentModel.Browsable( True )> _ ...Show All
Windows Live Developer Forums Polyline Craziness
I am working on a mapping project that allows the user to draw polylines. It all seems to work when the user clicks points of the polyline. From there I save the gps coords to a database. When I then retrieve the coordinates and display the polyline it does crazy things. It initially displays correctly but when zooming in, the line sometimes disappears, or draws in incorrect locations. If it does draw in incorrect locations and you pan, the polyline constantly moves. Can anyone please help, this problem is starting to drive me crazy. I have included "some" of my code. function loadMap() { mapDiv = document.getElementById( "myMap" ); new VEMap( 'myMap' ); map.LoadMap(); map.HideDashboard(); ...Show All
Visual Studio Express Editions Encryption
Hi, I am making a simple (not very secure) chat program. This is basically how it works: The user signs in with a username and password. (Database already done) The username is used as the senders name. When the user sends a message the recipients name is carried with that message and stored in a remote sql database. (database already done) When the message is in the database the recipient who has also signed in is able to see it. In other words a query to see if the name of the person the message is for matches the name of someone signed in. I would like help with these portions of it and i would like to include encryption if possible. I know this is a lot to ask but it would be helpfull to get information on this. ...Show All
SQL Server SSIS Packages with different destination databases... removing original DB reference
Hi All, OK, so I have an SSIS package that I build using the "test" database as the destination. Now I want to execute it using another database as the destination. This is basically for an installation script where the source is always the same, an access database. So here I have: "C:\Program Files (x86)\Microsoft SQL Server\90\DTS\Binn\DTExec.exe" /file e:\data_import.dtsx /CONNECTION DestinationConnectionOLEDB;"\"Data Source=(local);Initial Catalog=Test2DB;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;\"" Which works (sort of). It does try to import the data into "Test2DB", but what happens is all of the destination tables in the dtsx package have names lik ...Show All
Visual Studio Team System How to run tests without test metadata files and test lists (.vsmdi files)
Since the beginning, running tests in Team Build (or MSBuild in general) has meant having to use .vsmdi files to specify the tests to run. Tons of people have complained about it, as it's a burden to create and edit the files, as either VSTS for Testers or the full suite is required in the 2005 release, and merging changes to the file is painful when multiple developers are updating the file. While mstest.exe has a /testcontainer option for simply specifying a DLL or load/web test file, the test tools task used with MSBuild does not expose an equivalent property. There's now a way to run tests without test lists as part of your build. See the following post for the details. http://blogs.msdn.com/buckh/archive/2006/11/04/how-to-run-te ...Show All
