joynerCN's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Custom vertex format
I am writing a pixelshader for terrain coloring and I am selecting my coor based on a number of different parameters, such a normal vector, 3d position and up to four noise functions, which define things as humidity, terrain type etc. The terrain is one huge mesh, optimized as a ROAM, and each vertex has the properties mentioned above. There are formsts for storing normal, position, color or some other combination, but there are not enough for my need. I remember reading somewhere about defining your own format, but I can not find it again and the last time i tried, it didnt work. Can someone suggest where I should read about this An extra question is... the position is never interpolated (before being passed to the pixelshader ...Show All
Visual Basic Backgroundworker component cross-thread operation error
Cross-thread operation not valid: Control 'PanelContainer' accessed from a thread other than the thread it was created on. Here is what led up to this. My Mainform Load event is instantiating a dozen user controls and adding them to a panel collection for use later in the application. There are so many controls on the Main Form now that there is a paint problem...It takes 2-3 seconds now to get through all the initializations...and various controls are shown in different states of being painted..some are even transparent and show the desktop. Thinks look pretty ugly for a couple of seconds. I thought I would have controls be loaded asynchronously, after the initial controls are loaded. PanelContainer is declared/instantiate ...Show All
Visual C++ Calculating the angle of an arc in a cartesien grid
I have a problem where I need to calculate the angle of an arc where I know the start Point, end Point, center point and direction. The arc is on a cartesien grid, so the points are defined as X, Y. The are can start/ stop in any of the four quadrants. The angle needs to be expressed in degrees. Can anyone help Thanks; Hi, Following code'll help u out. #include <Math.h> #include <iostream> using namespace std; int _tmain( int argc, _TCHAR* argv[]) { double sx,sy,cx,cy,ex,ey; double Slope1,Slope2,Deg1,Deg2,ArcAngle; //Initialize the values here //sx,sy - starting point x,y //cx,cy - center point x,y //ex,ey - end point x,y //I a ...Show All
Visual C# Migration of windows application from .NET framework1.1 to 2.0
Hi I have a windows application developed in VS2003 dotNET framework1.1, i need to migrate to dotNET2.0, After success conversion my application working fine as before. But I would like to know , Which version of the controls are being used (1.1 or 2.0) and which version of ADO.NET (1.1 or 2.0) it is using internally How can i do this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do you implement Fog into a scene?
Hi All, I have finally got some 3D up and running so things are whizzing about (which is always fun to watch... for a while, yeah I know, small things...) and I was wondering if anyone had any examples of putting fog into a scene. I tried last night and succeeded in turning all my meshes to white, not matter how far away they were from the camera. No matter what I did to the values, nothing changed. As always, any help is greatly appreciated. Cheers Okay, so I now have fog in the distance but have something strange with it. I set my FogColor to 128,128,128 and my background color to 128,128,128 but when the meshes appear in the distance, they are bright white. The only way I can get things to fade in, is to have the ba ...Show All
Visual Studio Tools for Office Convert word doc to pdf
Hi, I need to convert word document to pdf file using C#.2 Iam having MS visual studio 2005 professional (and also MS VS.2003 enterprise ed) MS Office 2007 I have downloaded SaveAsPDFandXPS (used to convert doc to pdf) Microsoft Visual Studio 2005 Tools for Office Second Edition Runtime (VSTO 2005 SE) My question is Do i need "MS visual studio 2005 for office tools" version to work with ms word, so that i can convert word to pdf. The PDF file converter is not installed as part of Office, due to licensing issues raised by Adobe. It must be downloaded and installed separately. Are you sure the file converter is correctly installed on the machine where this error is being raise ...Show All
Visual Studio 2008 (Pre-release) Using IXmlSerializable objects for data transfer in Service Contract
Hello, I am trying to implement a WCF Service that uses System.Windows.Annotations.Annotation objects as parameters of some operations. The system.Windows.Annotation type implements IXmlSerializable, but its IXm lSerializable.GetSchema() implementation always returns null. When i try to generate the metadata files for my service using svcutil.exe i get this error: The 'http://www.w3.og/2001/XMLSchema:schema' element is not declared. Despite this message all the files are generated, but system.Windows.Annotations.xsd looks odd and so is the client code that svcutil.exe generates for my service. My question is: Is it possible to use IXmlSerializable object that does not implement IXmlSerializable.GetSchema() for data transfer and is ...Show All
Software Development for Windows Vista No show on samples
Ok, IE file version of 7.0.5450.4, .Net 3 CTP (as sandbox instructions), card selector no show on samples, fully able to login to Kim's site, can select and send card to sandbox, but site is "Unable to service my request". Why Luke Are you browsing with HTTPS You should not be getting the 'blocked content bar'. HTTPS is REQUIRED for CardSpace to function. g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn.com/garretts ...Show All
Visual Studio Accessing properties of the current/executing project from task
Hello, I would like to access the properties set in for a build / an execution from within a task. My idea is to create a task that can take a template text and fill in any $(..) with the appropriate property value. The goal is to allow simple creation of templates that may access version properties, solutionname, productname / target assembly name, etc. The end goal is a BOM statement for a build of a solution. Answer to the issue of accessing properties or other ideas appreciated! Best regards! I would like to access the properties set in for a build / an execution from within a task. My idea is to create a task that can take a template text and fill in any $(..) with the appropriate property va ...Show All
Visual Basic Label for a Context Menu TextBox
Hi, I have a context menu that has a textbox on it to accept a string from the user to name an item they right-click. Nice so far. My problem is that the box sits there with no indication as to what it is, I can not find a way to put a label in front of it to indicate its content. Added an item with a fly-out and put the box there but do not feel this is satisfactory. Is there a method to put a label in front of the textbox You could create a custom user control which is just a label next to a textbox and use that. Or, just put the descriptive text in the text box and make it disappear when the textbox is clicked on. Matt ...Show All
Visual Studio Tools for Office Infopath Automation
Hello, Please accept my apologies if this post is in the wrong forum. I checked around and believe this is the correct place to post. If not please advise and i will promptly move. I am currently using an infopath solution for data collection. The forums contain a number of dropdown lists that need to be populated at run time. Unfortunately, a requirement exists that specifies that the infopath forms must function in a disconnected manner (not my idea!!). So that pretty much excludes all the sharepoint lists / webservice / dataset examples i have seen. I would like to know if it is possible to populate the infopath form controls using automation. IE: //Create an infopath application object //Open an infopath form / template //Obtain ...Show All
Visual C# R
Hi all, we are facing a problem of performance issue in our project. we are using C#,asp.net 2.0 and sql server 2005 here is the list of major implementation which we have done in our project. 1. Language implementation using Hashtable for whole project. We have implemented singleton class for this process. 2. A page contains 13 user controls. 3. A page contains approx 40 select queries to be performed 4. In few places we have implemented ICALLBACK. We have checked in Memory profiler also It show after loading it shows morethan 1 ...Show All
Visual C++ Error on delete [] v
Hi, I have a problem with a class. The declator is class Configuration { public : struct conf_table { char name[40]; char value[10]; }; struct conf_table *conftable; int size; //rows on conftable int max_size; //maximum rows on conftable public : Configuration( void ); //Constructor ~Configuration( void ); //Destructor }; And the code is Configuration::Configuration( void ) //Constructor { size=0; max_size=256; conftable = new conf_table[max_size]; //initialize conftable } Configuration::~Configuration( void ) //Destructor { delete [] conftable; } The problem is that i get an error message (Heap Corruption) after ...Show All
SQL Server Trying to return whole records with distinct fields
Hi I am trying to write a query that will return a full record with a particular distinct field (the rest of the record being the first such record that includes the distinct field). For example, for the following: Fruit Like Colour Apple Y Green Orange N Orange Banana Y Yellow Grape Y Green Grapefruit N Yellow I would want to return (assuming Colour was the distinct field): Fruit Like Colour Apple Y Green Orange N Orange Banana Y Yellow How do I do this I've tried using a join (of all different kinds) with a subquery that uses SELECT DISTINCT but this doesn't seem to work. I've tried GROUP BY but none of the aggregate functions seem to just take th ...Show All
Visual Studio Team System tests as a work item
We're struggling between whether to choose tests as a work product (built into visual studio) or as a work item (customized work item). We're doing purely 'manual' tests, so we don't need to consider unit / load / web tests. my thought is to make them a work PRODUCT, this would give us some flexibility in the future, but here are my problems: how do i find out what tests to run, how they relate to requirements, bugs, etc -- i know i can attach a test to a bug (and therefore any work item through the test field) but how could i attach multiple tests to a bug / requirement similarly, how can i report on that requirement to find out if all tests have been run for it This seems easier to do with a test work item. also, is that really what th ...Show All
