b490007's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Free-moving camera?
How exactly would I go about implementing a free-moving camera I looked at the How To: Rotate and Move a Camera in the docs, but it doesn't seem to build for a 360 project. Any help or a point in the right direction Thanks, however this still doesn't change anything on the screen. I'm going to guess it's my drawing code. I'll work on that. ...Show All
Visual FoxPro Multiple Child table
What can i do in add button if i have a lot of multiple child table what is the best solution also how to append blank in child table please help me... There is not a best solution because generally child tables do not need an immediate addition of records. If you mean you want to insert a record in child tables whenever you insert a record into parent then you could do that like: insert into myChild1 (foreignKeyField) values (parentPK) insert into myChild2 (foreignKeyField) values (parentPK) Prefer insert into as it does both append blank-replace in a single shot. With Append blank there is a slim chance that someone else could modify the record before you do (unless buffered). ...Show All
Visual Basic OleDbDataAdapter Wizard - select command vs. stored Procedures
Typically I use select commands with the wizard and I don't ahve a problem. Today, I tried to use a stored procedure and I get an error. I see what its doing but I don't see a way around it. When I select the radio button, 'Use Existing Stored procedure' in the Configure Data Adapter Wizard, I chose the stored procedure from the list for the SELECT. After that, I chose FINISH. When I try to preview the dataset, I get an error that the stored procedure was not found. However, the name of the stored procedure it displayed is basically correct, except it has a semicolon and the number one (;1) at the end of the name. when I check the xxxxx.designer.vb file, here is what I found: Me .OleDbSelectCommand1.CommandText = "dbo.[proc_ ...Show All
Visual C# private fields, public properties...why??
Why is it preferred to have private fields and use public properties to access and/or set the variable values Some of the books i have read do explain why...but only vaguely. Does anyboday know the real 'life threatening' type reason why we should do things this way Thanks Basically because you have much more control over what's being assigned to the private member (and returned). I guess you could say it's a fancy way of implementing the error checking functionality of regular get/set methods but without having to use the method structure, just treat it as it would be your actual private member. Not only to prevent errors but to perform specific tasks relevant only to the member in question ( ...Show All
Visual Studio Tools for Office Document-level VSTO in Access 2007
Will there be the possibility to create document-level add-ins for Access, just like it is possible for Word and Excel documents I would like to do this to replace some VBA-based Access-applications that need an upgrade, so now it seems the right time to convert them to a .NET based solution. What is planned is listed here: http://www.microsoft.com/downloads/details.aspx familyid=68978824-CA55-4208-A55E-5C4858183B31&displaylang=en COM-Addins (application level) are planned, but not at the database level. However, you should be able to use application level events to make your special tools available only when a particular database is opened. Another possibility would be to write the entire f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Particles
Hi, Tried creating a basic 3d particle system without success. I don't want to use point sprites (never mind why), and I couldn't get the Matrix.Createbillboard() to work for me. The particles changed angle as I changed the camera angle. Never mind what I did... If anyone can drop a few lines of code of how they accomplish the particle update and rendering I'd be grateful. Thanks, Already seen it... it's 2D not 3D. I have another question on the subject. It would seem that the reason my code doesn't work using the (CreateBillboard() method), is that I supply the method with the wrong camera position. Now, how my camera currently works is so... This is my camera update method which updates the view matrix. private void Update() { m ...Show All
.NET Development WHERE Statement Fails. WHY!
Private Function Check() 'CheckX10Alerts(ByVal X10_RecvCMD As String, ByVal sndDeviceAddress As String, ByVal typEvent As String) 'Prepare to look for matching alert database Dim int As Int32 bolAlertsEnabled = True If bolAlertsEnabled = True Then Using connection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\Dot_Net_Projects\Visual_Basic\aiHome\Website\App_Data\aiHome.mdb;") Dim command As New OleDbCommand("SELECT strMedium, sndDeviceAddress, typEvent FROM x10_Triggers WHERE strMedium = AND sndDeviceAddress = AND typEvent = ", connection) command.Parameters.Add(strName, OleDbType.Char, 150).Value = "Movement - Front Porch" command.Paramet ...Show All
Windows Forms access in another form
I have a datagridview and a button in one form named f1 when user clicks on button, i want to open another form containing the list box with column names of datagridview in form f1 how can i do it you would pretty much need to pass the appropriate parameters to the other form. So in your other form, you may have something like: private DataSet theDataSet; .. public Form1(DataSet dataSet) { this.theDataSet = dataSet; //now populate the column names by going each column of the dataset and getting the names } .. Main form: Form1 theForm = new Form1(theDataSet); theForm.Show(); that is an example. if you don't have a dataset bound to your datagrid ...Show All
Microsoft ISV Community Center Forums Cell Equal To EXACT Value
Hi all, prob a very simple question for you guys. How do you check if a cell equals an exact value of "Product" I am currently using: Cells(i, 1).Text = "PRODUCT" though this is also picking up any cell which contains the word Product, such as cells which contain the word Production. So how do you check for an exact value During my experience with programming, i found that using the command to convert the value to Lower Cased characters would solve a lot of problems in a search function. Since it will be a user who's typing most of the values in a sheet or database, consistency is one of the things which will missing when it comes to the content. In short, i usually ...Show All
Visual Studio 2008 (Pre-release) Drawing Triangle Indices in a Concave shapes.
Hello All, I want to draw triangle indices for my shape which in 2D looks like this: <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Grid> <Path Data="M0,80 C0,0, 80,0, 100,0" Stroke="Black" StrokeThickness="1" Name="P1" Margin="0,0,0,0" VerticalAlignment="Top"/> <Path Data="M100,0 L120,0 120,30 145,30 145,0 165,0" Stroke="Black" StrokeThickness="1" Name="P2" Margin="0,0,0,0"/> <Path Data="M165,0 L185,0 185,30 193,30 193,8 202,8 202,30 ...Show All
SQL Server Microsoft Sql Server Embedded Edition Service
Hello All, Can someone tell me the actual significance of SQL Server Embedded Edition How is it different from SQL Express edition I understood that WSUS 3.0 version uses (installs) the latter when it could not find any SQL 2k or SQL 2k5 other than SP1 release (please see Issue 33 in: http://technet2.microsoft.com/WindowsServer/en/library/94d1385f-4872-4c29-8822-3a4ec5e45ae41033.mspx mfr=true ) on the host machine. Besides, when i installed WSS v30 release version, i saw this instance being installed (during the configuration of the Sharepoint products and technologies wizard just after the installation is done). Now with this instance installed, i tried opening this instance (instance name being Microsoft#SSEE) through SQL Serv ...Show All
Visual Studio Express Editions Global EventHandlers
I am trying to create eventhandlers NOT SPECIFIC to any form or panel or frame. For example, an eventhandler for mousedown would be activated everytime the mousedown is performed anywhere on the screen, not just only to the build application. I could nt find anything on this anywhere. Please comment. Is it even possible Yes there is, not only can you intercept mesages from the system, but you can intercept messages bound for any other window or application, the methods for doing this are known as subclassing and hooking, read these articles for some more information: http://www.oreilly.com/catalog/subhookvb/chapter/ch01.html http://msdn.microsoft.com/library/default.asp url=/library/en-us/winui/winui/wi ...Show All
Visual C++ Import Native C++ dll in Managed Project
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can't be added to references. The syntax for loading it manually, [DllImport("ArmWrp.dll")], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting: // ArmWrp.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #ifdef _MANAGED #pragma managed(push, off) #endif BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, &nb ...Show All
Visual C# Copy class
i want to copy values form one class to another (dont want to create another instance) and there are many fileds ~1000 in my class so i cant copy each field and it must be as fast as posible:) class A{ int z; void CopyFrom( A v ){ //c++ code here, and how to do it in C# so it work this same way as in c++ (swalow copy) memcopy( this, &v, sizeof(A)); } } or maybe something like this void CopyFrom( A v ){ for each field in "class A"{ this.field = v.field; } } is it posible to do that in c# somehow ...Show All
Visual C# Explicit Interface Methods Implementation
In MC++, I can do the following: - MC++ Sample: __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } Student(Student* source) :Person(source) { this->_id = source->_id; } Student* ...Show All
