Developr's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DrawSprite speed up
we have our great set of Gui controls based on CustomUI smaple from DX SDK but one update: we can load our texture for some controls: Panels can have own Textures. all CustomUI sample + framework from DirectSDK use Sprite.Draw method , but I was thinking what if use vertextbuffer + texture object to draw our images/controls, will we get gain on this or no, does Sprite.Draw method - faster. ALso, what are benefits here if we'll use Shaders(effects) to render our GUI here, thanks. waiting for reply I havent used sprites lately but if they havent improved since then you are better off drawing your own quads, spr ...Show All
Visual C++ Wizard Migration to VS .NET
Is it possible to use a VC++ wizard, (*.awx) in VS .NET I got the wizard from an author of a book. If so, how Thanks, VF If you are talking about a Visual C++ 6.0 wizard, then the answer is no. The entire add in model changed between the 6.0 and 2002 versions. Ronald Laeremans VIsual C++ team ...Show All
Visual FoxPro MSGraph.Chart.8 control
I need to make charts. I started with MSChart Control and so far I've accomplished almost all I wanted except for one thing which totally eludes me. I need a simple line chart, not columns or a pie. I need to display a row of data like DJIA or similar indices with no additional vertical bars or other embelishments. The curve comes out nice but a lot of space on the chart is wasted because the curve is being plotted too high on the chart in vertical direction. I have tried to manipulate MSChart.Object . Plot . Axis ( VtChAxisIDY , 1 ). ValueScale . Minimum value but it is not responsive at all. I do not know why: perhaps other paramete ...Show All
Visual Studio Team System TFS RC1 Install - Account Related Errors
Hi There, I've been trying to install TFS RC1 for several days and must confess to be running out of strength having encountered (and to some extent) solved a number of different errors. Environment is: Fresh Install of Windows Server 2003 SP1 Followed by a fresh Install of SQLServer 2005 (2 attempts) Windows Share Point Services SP2 (3 attempts) TFS RC1 (many attempts) We are running a Samba Domain server with LDAP. Within this, the tfsservice and tfsreports accounts were created. The install itself was running using a local tfssetup admin account. However this encountered "Error 28004. Er ...Show All
Software Development for Windows Vista Error debugging a workflow
Hi, I have the RTM version of VS 2005 installed with the 2.0 framework and the November CTP of WinFX and specifically the WWF VS integration. Everything seems to work fine except I get an error when trying to debug a workflow: "Error occurred while Loading Workflow An error occurred while loading the workflow. Please correct the following error and try reloading the document to view the Workflow. Attribute 'Class' not found on the root activity." This happens for even the most basic of workflows if I simply create a sequential workflow project and then add a "Hello World" code activity, set a breakpoint on the activity and debug. Thanks ...Show All
.NET Development .NET Framework 2.0 dependencies
When I install .NET Framework 2.0 on Win2000 SP1 machine, a popup dialog appears saying that it require MS Installer 3.0. When I install MS Installer 3.0 on that machine, it then require Win2000 SP3 which is big group of components. I am surprised when I try to deploy my .NET 2.0 application to customer's Win2000 or lower computer, there are big group of prerequisites needed. Honestly, I am not dare to do Win2000 SP3 upgrade to customers' computers. Any suggestion I don't think we can draw any conclusions about what the shipping Framework 2.0's final requirements will be. It is possible that the curren ...Show All
Visual C++ VS2005 debug CRT does not report file/line info for heap corruption
Hi hyslopc! I just ran a test of the VS 2005 beta 2 debug CRT library _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_DELAY_FREE_MEM_DF | _CRTDBG_CHECK_EVERY_1024_DF | _CRTDBG_CHECK_CRT_DF); char * Test = new char [3]; Test[3] = '\0' ; // Cause memory corruption delete Test; This results in a dialog box being shown which says that a heap overwrite occured with allocation X at location Y. No really useful information such as the filename/line number where the allocation occurred, or the number of bytes allocated. If I jump into the debugger at that point, ...Show All
Visual Studio Express Editions Textbox confussion
Private Sub NumericKeyPress( ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox10.KeyPress, TextBox11.KeyPress, TextBox12.KeyPress, TextBox13.KeyPress, TextBox14.KeyPress, TextBox15.KeyPress, TextBox16.KeyPress, TextBox16.KeyPress, TextBox17.KeyPress, TextBox18.KeyPress, TextBox19.KeyPress, TextBox20.KeyPress, TextBox21.KeyPress, TextBox22.KeyPress, TextBox23.KeyPress, TextBox24.KeyPress, TextBox25.KeyPress, TextBox26.KeyPress, TextBox27.KeyPress, TextBox4.KeyPress, TextBox7.KeyPress, TextBox32.KeyPress, TextBox31.KeyPress, TextBox30.KeyPress, TextBox29.KeyPress, TextBox28.KeyPre ...Show All
Visual C++ C2275 with CTypedPtrArray
Hi, I received the following error message while using a CTypedPtrArray as typedef. Using the VC++6. I include here the complete code. The program is called CMini: in MiniDoc.h: #include <afxtempl.h> #include <afxwin.h> #include <afxext.h> class Cline: public CObject { protected: int m_x1,m_y1,m_x2,m_y2; public: Cline(int x1,int y1,int x2,int y2) { m_x1 = x1; m_y1 = y1; m_x2 = x2; m_y2 = y2; } void Draw(CDC *pDC); }; typedef CTypedPtrArray<CObArray, Cline*> m_LineA ...Show All
SQL Server SQL Server 2005 CTP 64-bit editions: ODBC driver and OLE DB provider?
Does the x64 version of SQL Server 2005 June CTP contain 64-bit versions of the SQL Server ODBC Driver and the OLE DB Provider I am not interested in the .NET Managed Provider here, just the legacy ODBC and OLE DB drivers, and only 64-bit versions of those. Thanks, Chuck Where can I download sql server 2005 ctp 64 bit edition or the the latest odbc drivers for sql server 2005 x64 (and what is the latest version #) ...Show All
Visual Studio 2008 (Pre-release) WFP error on Vista CTP Feb
Hello, I installed Vista CTP Feb & WinFxSetup & VS 2005.& Orcas" CTP Now i have the following error each time i want to open the Visual Studio Property Editor on a control (for a WinFx or Win32 app) Faulting application devenv.exe, version 8.0.50727.42, time stamp 0x4333e699, faulting module System.Windows.Forms.ni.dll, version 2.0.50727.62, time stamp 0x43f7a86e, exception code 0xc0000005, fault offset 0x000d62a2, process id 0xc4c, application start time 0x01c643ac8cdef842. thank for your help Brice Can you please uninstall Orcas CTP and see if this still happens Than ...Show All
Visual Basic How long a computer is on, and writing after some text
Well this is a two Q topic. First i want to know if there is any code for getting the time for how long the computer has been on Comptime.. Second how can i input text after some text in textbox For instance button1.click inputs the text "you" into textbox1.text But if the textbox1.text already has some text like "how are" then when button1 is clicked text should be input after "how are" and the text should be "how are you" If you want to do anything to or with a particular class the first thing you should be doing is reading help topic for that particular class and its member listing. That would have brought y ...Show All
Visual J# Express Debugging of J# Browser Controls
I'm trying to debug a J# browser control using Visual J# Express Edition. My control is embedded in an html page. Since the output of my project is a class library I cannot start it directly. If I try, I get the following message: A project with an Output Type of Class Library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project. I've tried creating a new Console Application project and adding it to my solution. I set it as the startup project and make it reference my class library. But what now I'v ...Show All
.NET Development How do you call methods inside an executable from another executable?
Is it possible in .net to reference .exe and call functions in the executable If so, how It seems you can only make references to .dll (class libs). I know it is possible in COM and preious versions of VS. It is so powerful, I can't believe it if it isn't possible yet under .NET. Visual Studio .NET 2002/2003 does not allow executables to be used as references, whereas Visual Studio 2005 does. However, you can work around this in 2002/2003 by temporary renaming the executable to end in .dll, add the reference and then at runtime the Framework will look for an exe or dll. ...Show All
Visual Basic Class Structuring
I have a set of routines and functions I wish to group together under a class. I have spent some time looking around the Internet and have figured out how to set and use a basic class. However, I need to do more than what I have seen and without training or access to books to tell me, I'm stuffed. If somebody could give me the basic structure for the following, I'll hopefuly be able to take a look and expand upon it to cover my needs. The class accesses a sql database and returns useful information to any applications which will inherit the class. As the database may move to a different server in the medium term, I want t ...Show All
