da Vinci's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rants on XNA 1.0
This is my first reaction when I installed and tried the 1.0 of XNA. To summarize my feeling: it's still 95% for XBox and no nearer to replace the old MDX 1.0. So I decided not to migrate from MDX to XNA though I want to do that very much. I feel like MDX 2 more; amen to MDX 2. The hardest issue for me is the content pipeline, which is very necessary, but the workflow is fixed and it assumes the contents are only built before the program runs. The helper functions wrapping D3DX can only be used with types in the content pipeline. I have to utilize the full content pipeline just for generating something dynamically, of course with significant performance cost. Or I have to write those D3DX utilities my self. Currently I don't have a good id ...Show All
Visual Studio Express Editions I Am getting the following error in Visual Studio 2005, can anyone help me
While i am building my code, i got the following error c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h(781) : error C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(553) : see declaration of 'CObject::CObject' c:\program files\microsoft visual studio 8\vc\atlmfc\include\afx.h(524) : see declaration of 'CObject' This diagnostic occurred in the compiler generated function 'CList<TYPE,ARG_TYPE>::CList(const CList<TYPE,ARG_TYPE> &)' with [ TYPE=CRuntimeClass *, ARG_TYPE=CRuntimeClass *& ] Hello Re: I Am getting the ...Show All
Software Development for Windows Vista What is LVN_FIRST - 88?
Hi, using Spy++ I can see the listview of Vista's Explorer sending multiple (LVN_FIRST - 88) notifications to its parent. The parent always returns 0x0. Does anyone know what this notification is for It isn't defined in the Vista RTM Windows SDK. The folder which I spied for my tests is the Welcome Center in the Control Panel. TiKu Oh, for that matter, what's LVN_FIRST - 86 It is sent too and the parent responds with 0x1. /edit: Forget this one, according to Wine HQ, it's LVN_ASYNCDRAWN. ...Show All
Windows Forms How to create window controls using database values
Hello everyone, my name is Brandon M. Hunter and I'm a programmer...(AAA introduction humor). Anyways I need to find a way to create controls at run-time (checkbox,radio buttons,etc) that is based off the number of records I have in my database. So for example, I have a 5 records that are defined as subjects that a school teaches, I need to create 5 checkboxes for each of those records Does anyone know I tried using this piece of code for example: Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 Dim stringTest As String For i = 1 To 4 Select Case i Case 1 stringTest = "checkboxvalue1" Case ...Show All
Visual Studio Emulate QueryStatus call
Hi I'm trying to create VQ top-level sensitive menu.I have a ToolWindow which contains tree and depend on selected node in the tree I need to have VS spetical menu. There for I need to call QueryStatus function myself when occurs tree node selection. Is there the way to call this function The other way is intended for VS 2005 add-ins: you cast the DTE.Commands property to EnvDTE.Commands2 and call the method. You can get the DTE object also from a VS package using GetService(typeof EnvDTE.DTE)). ...Show All
SQL Server How can I create a DTS package to update a table with data from an Excel spreadsheet?
Every month a client sends a spreadsheet with data which we use to update matching rows in a table in the database. I want to automate this using a DTS package but am having quite a bit of trouble accomplishing what I think should be trivial task. I've been attempting to use a Transform Data Task with a modification lookup but I just keep inserting the rows from the source excel spreadsheet in to the existing destination table without ever modifying the existing data. Any guidance would be greatly appreciated as to a best practice approach. How do you tell the DTS package how to find the records to update How do you tell it the connection between the spreadsheet columns and the table columns Basicall ...Show All
Visual Studio Express Editions Linking Forms - Please Help! Im New to VB
How do you make a command button link to another form in the same project as suggested that would be the correct way of doing so. Adapting to your solution, double click the button then type this: Dim theForm as new Form2() theForm.Show() 'Or ShowDialog() depending on how you wish to show your form ...Show All
Visual Studio Tools for Office VSTO deployment close to solution
Hi all, I'm backing down to make sure I find a way to deliver to my customer the next few days: I have developed an Excel template with some .NET code behind using VSTO 2005. Not the SE, the first version. My solution uses another .NET assembly (helper.dll) besides the code assembly data.dll "behind" the document (data.xlt). I added a setup project to the solution. Which isn't enough of course. I created to separate install classes, one to install a policy code group thats gives Full trust to data.dll and one to bind the data.dll path to the data.xlt document (via ServerDocument). I added the custom Action to Install the CustomSetup.dll with these installer classes. Now to my questions: Are there any walkthroughs to t ...Show All
Visual C++ Any interest in building an FAQ?
I'd like to propose that we put together an FAQ to address some of the issues that pop up regularly here. It seems like we have an awful lot of questions like: - "How can I call my C#/VB/FORTRAN routines from C++ " - "How do I compile and run my project " - "I've included the correct header files, so why am I getting LNK2019 errors " - "How on earth am I supposed to use destructors/finalizers/IDisposable " And of course these are all valid questions! But since they are common questions which tend to be answered in the same way from one thread to the next, I think it would be very helpful to have all (or at least most) of the common answers in one single place. This would be helpful both to aske ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Second series (13 parts) of 3D XNA tutorials finished +flightsim
Hi all -- I have finished porting my second series of tutorials to XNA final code! You can find it here: http://www.riemers.net/eng/Tutorials/XNA/Csharp/series2.php Some of the XNA concepts covered in this second series include: textured triangles, importing a Model and using a custom effect to render it, first-person camera positioning, basic 3D position updating mechanism, basic boundingsphere collision detection, point sprites, alpha blending, textured model loading with storage of its textures More basic stuff is shown in the first series. Readers are combining all concepts to build a basic, but working flight simulator. The code of my 3rd chapter (a detailed introduction to HLSL) has already been converted to XNA final code ...Show All
Windows Forms Sending email in vb.net 2005(using vb) not with smtp but the users outlook (mapi)??
I have an application that I need to send mulitiple emails from. There are about 10 users who will have permission. However my IT Group has locked down the smtp server and will not allow "Applications" use the smtp method. I remember in vb6 I used mapi to send emails using outlook that was on the users computer thus giving my IT folks traceability of who is sending what and not having to set up 10 people on the smtp permissions. Can this still be done using outlook(mapi) Try using SmtpClient.Credentials so you'll logon to the SMTP server with a username and password... ...Show All
SQL Server How to dynamically assign database name in query or store procedure?
Hello, I am not sure if this possible, but I have store procedures that access to multiple databases, therefore I currently have to hardcode my database name in the queries. The problem start when I move my store procedures into the production, and the database name in production is different. I have to go through all my store procedures and rename the DBname. I am just wonder if there is way that I could define my database name as a global variable and then use that variable as my DB name instead of hardcode them something like Declare @MyDatabaseName varchar(30) set @MyDatabaseName = "MyDB" SELECT * from MyDatabaseName.dbo.MyTable Any suggestion Please. Thanks in advance It is much easier and clea ...Show All
SQL Server Backup Jobs Locking ??
When you run a Backup Job (Database or TRN), is the database locked during the database If yes, to what extent Thanks There are no locks that are not compatible with any user locks, but only those which could prevent database from deletion, for example. ...Show All
Microsoft ISV Community Center Forums Creating MROUND function
Hello, MROUND is a built-in function in Excel that round a number to a specific multiple. eg. =MROUND(21,5) rounds 21 to the nearest multiple of 5, which gives 20. For some reason this function is not available in my Excel (2003) and so i thought it may be useful to write the function myself using VBA. However i'm not very familiar with VBA so can someone please help me to kick start my first VBA function. Thanks! ps. i've found out after that to add the function all i have to do is go Tools --> Add-ins and tick Analysis ToolPak in the dialog box. Normally i would use the program's built-in help whenever i have queries. The thing is there are some missing pieces of my PC's VBA help file. I tried to look for solution ...Show All
Architecture 2-Tier Problems Accessing Remote Data
I have a 2-tier architecture question. What are the problems associated with accessing data remotely in a situation where a client application is directly accessing a SQL Server database over the internet There are obviously security issues related to preventing unwanted access to the database, but what about performance issues Are there connection reliability issues, network limitations, etc., related to the effectiveness of a direct remote connection to SQL Server An alternative architecture we are considering is a 3-tier model with a middle-tier application server (web service). Thanks. This can get a long answer when you want al the tradeoffs, pros and cons between the two types of archite ...Show All
