millertime408's Q&A profile
Visual C++ help needed to create flicker -free animation
hello !!... i need your help to create a flicker free animation with visual c windows application...i am a newbie..no MFC please....APIs would help...thanks in advance use this funtion... BOOL InvalidateRect( HWND hWnd , // handle to window CONST RECT* lpRect , // rectangle coordinates BOOL bErase // erase state ); it pushes, WM_PAINT msg in the msg queue of the window... if bErase is set to true then erases the prev content. ...Show All
Visual Studio Team System Cannot run Team Edition for Database Professionals if not local admin?
Hi there, It's very annoying at our work, but we are not local admins on our machine while logged into the domain. We do have Administrator rights only when we log in as local Administrator to the machine. So when I install the CTP, I execute the setup under the local Admin account, and it installs fine, and runs fine when logged in locally. But, when logged into the domain, it does not show up as an installed product under Help -> About. I do not have this problem with any other product ie I have the BI studio, team edition developer, team edition tester, etc running fine. Any thoughts on how to get the ctp to install and run properly for me Will this work in the future Because if it doesn't we have to go buy a few licenses of ...Show All
Visual Studio Team System What are the steps for Load testing using NUNIT testcases?
Hello, I have installed Team Suite and i am trying for Load Testing using NUNIT Test Cases that we have prepared. What are the steps for Load testing using NUNIT testcases Do we have Cool Down Time in Team Suite If 'YES' How to set it Thanks, Riti You could just convert your NUNIT cases to VSTS unit tests using the NUnit converter here: http://blogs.msdn.com/jamesnewkirk/archive/2005/06/24/432485.aspx and use those in your load test No - there is no explicit "cooling time" in load tests really, but I assume what you want to do in the cool time is reduce number of users accessing the system gradually, right ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What is the meaning of loadAllContent?
I'm not sure I understand the meaning of the parameter loadAllContent to the function Game.LoadGraphicsContent. According to the documentation it is: "true if all graphics resources need to be loaded; false if only manual resources need to be loaded." But what are manual resources Thanks in advance, Per Rasmussen. Two code examples provided in the XNA Documentation have seriously obfuscated my understanding of manual vs. automatic resources. In the "Graphics" section of the XNA Docs, under "3D Graphics", the two examples are "How to: Create and Apply Custom Effects" and "How to: Draw Points, Lines, and Other 3D Primitives." Here is the LoadGraphicsContent method from the former example ...Show All
Smart Device Development Cdate cast error
Hi all I'm trying to do a Cdate(datestring) where datestring is the value 25/6/2006 but it's giving me a cast error here are some code examples from the command window Now #11/28/2006 6:12:49 PM# CDate("25/6/2006") Run-time exception thrown : System.InvalidCastException - Cast from string "25/6/2006" to type 'Date' is not valid. CDate("6/25/2006") #6/25/2006# system.Globalization.CultureInfo.CurrentCulture {System.Globalization.CultureInfo} Calendar: {System.Globalization.GregorianCalendar} CompareInfo: {System.Globalization.CompareInfo} CurrentCulture: {System.Globalization.CultureInfo} CurrentUICulture: {System.Globalization.CultureInfo} DateTimeFormat: {System.Globalization.DateTimeFormatInfo} ...Show All
Windows Forms System.Windows.Forms.Message in C#
I created a message with: "Message msg = Message .Create(( IntPtr )iAsyncResult.AsyncState, WM_CUSTOMMSG, ( IntPtr ) null , ( IntPtr ) null );" How do I send it Thanks The Message structure is used for the encapsulation of received messages. There's nothing to actually "send" it. You'd have to PInvoke [Send|Post]Message, possibly like: void SendMessage(ref Message msg) { UnsafeNativeMethods.SendMessage(msg.HWnd, msg.Msg, msg.WParam, msg.LParam); } ...Show All
.NET Development app_code folder
Hi, I have placed a class under app_code folder like this Imports Microsoft.VisualBasic Public Class Class1 Public Enum CWS MyCID = 2297 enquiry = 1 CALENDER = 2 proposal = 3 confirmation = 4 staff = 5 User = 6 library = 7 Account = 8 bills = 9 transport = 10 driver = 5 trainer = 10 consultant = 14 attendance = 11 reports = 12 leave = 15 invoice = 16 worklog = 17 vendorS = 3 cwsclient = 2 End Enum End Class Now in vb code file I want to access this something like this if id=cws.vendors then do this else do this endif how will this be possible S, if you are going to use this enum as a common type in your project I r ...Show All
Visual Studio Express Editions uninstall .net frameworks ?
hi , i've installed vwd and with it ofcours it installed .net frameworks , now everything works fine but now i want to install the express c# and it says on top of the page i have to uninstall the .net frameworks before doing so if this is the case will i have to do the same if i choose to install express vb do i have to controlpanel->add/remove-> remove .net frame works 2.0 and then install the visual express c# and then install the .net frameworks and then everything will work (i don't need to uninstall the vwd) thanks in advance . not at all. you can install it perfectly. That was only if you had installed the beta's and CTP's then you needed to uninstall those and perhaps use the removal tool, b ...Show All
.NET Development "Cannot view XML input using XSL style sheet" error
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. To Dear Sir, I came across a distinct error. The details are below: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ...Show All
SQL Server Image storing
How do i store an image in the db I guess i have to chose image as the type of the column. Do i really need to build an application that will fetch the image and put it in a query or can i use directly use sql server management studio thanks, If you are on SQLServer2005 you should better choose VARBINARY(MAX), IMAGE and Text will be deprecated in the future. YOu have to use an application which will convert the physical file to the actual byte array. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Windows Forms Readonly dgv
hi, how can i have a readonly grid with addnew available. all records should be readonly but i should be able to add records. thanks i tried it with another table and defaultvalues works my table is like this Public MustInherit Class implements_iInvoices Inherits CostingDataSet.sp_DetailedBill_byPonoDataTable Implements iInvoices Implements iStP_Suppliers_on_PODataTable_interation Private _p_b As Integer = 0 Private _pono As String Protected myDa_Bill As New CostingDataSetTableAdapters.Bill_TableAdapter Protected myDa_DetailedBill_byPono As New CostingDataSetTableAdapters.sp_DetailedBill_byPonoTableAdapter Protected myDa_Amounttypes As New CostingDataSetTableAdapte ...Show All
Visual Studio Team System Intergrating static code analysis with TFS build
Hi, I am looking to integrate the static code analysis as a part of our scheduled builds. I read around & found that I can make it always run by setting < RunCodeAnalysis > Always </ RunCodeAnalysis > But can I have a separate report that will contain only the code analysis warning. Currently it just gets added to the warning of the build process Please do let me know Thanks in advance for all the help ~Ramya Hi Ramya, after running Code Analysis on your project, there should be a file along your binaries named <assembly>.CodeAnalysisLog.xml this file contains the warnings found during the last code analysis run. Regards, Jeffrey ...Show All
SQL Server SQL 2005 SP1 and domain account
I recenly installed SP1 on 2 servers. For some strange reason I am unable to run the SQL service or the SQL Agent service using the normal SQL service domain account. It has always worked and is currently running on the other server without a problem. Has anyone had a similar problem Strange but it looks like I have sloved my problem without any real explanation. One of our techies rebooted one of our AD servers and now everything seems to be working. What I still do not undestand is that our other server never displayed this problem. ...Show All
Windows Forms Window shrinking on restore.
I'm using Visual C# 2005 Express to make a windows forms application. The application works fine but when I added some user settings to keep track of the window size and position, the window shrinks to no size when the window is restored. If I start the application, resize the window, and close it, it will remember its size and position on restart. When I minimize the window and then restore it, however, it briefly returns to it's original size (a fraction of a second) and then resizes itself to have no client area at all. I can then manually resize it to it's original size. What is going on Thanks for any help. Bob The only code I wrote is this: private void MainForm_FormClosed( object sender, FormClosedE ...Show All
Visual C++ Managed C++ - Problem reading registry
I'm trying to read/write from the registry in a managed C++ dll thats part of my program. I followed the MS example found here: http://msdn2.microsoft.com/en-us/library/bwt6b955(VS.80).aspx Anyways, I'm trying to initially check if the HKLM\Software\RTO key exists. The problem I'm running into is the if statement doesn't catch that rk isn't valid. Why " Lastly, I wonder why MS would have a broken example up, since that RegistryKey^ nk = rk->CreateSubKey( "Settings" ); does a deference on something that doesn't exist." Except that your code is not the same as the MS sample code, in the MS sample you have something like: if (!rk) { ... return; // because of return the ...Show All
