Wes Payne's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Mapping a texture on a sphere, all usable by XNA - which format
Hello all, I'd like to map a JPG file to a very simple sphere to create a planet that can be seen in XNA. I've tried using Blender to make this very simple sphere and I was successful when I exported it to a .x file format (btw, must I use the saving option that says Left-handed system I know that it won't change anything for a sphere, but I'd like to know for more complex model that might not have that symmetry). I've tried mapping an image of the Earth's surface to the sphere and was successful in Blender (it renders correctly, using a spherical mapping). When I export it to .x, it seems that the linking information between model and texture is lost and I can't reproduce it in a XNA program. I could have access to MilkShape or Wings3D al ...Show All
SQL Server Read CSV file - Save Columns into Rows
I want to import CSV file and convert columns into rows depending on Customer count(2nd record in each row of CSV file) and save to SQL table --CSV file format State, Customer_Count, Name_1, Total_1,Name_2, Total_2,Name_3, Total_3..can go upto 600 GA,2,'John Doe',14.00,'Roger Smith',15.00 FL,3,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00 SC,5,'John Doe',14.00,'Roger Smith',15.00,'Sally Cox',16.00,'James Brown',17.00,'Rick Davis',18.00 Data in SQL table from csv file should look like this State,Name,Total GA,John Doe,14.00 GA,Roger Smith,15.00 FL,John Doe,14.00, FL,Roger Smith,15.00 FL,Sally Cox,16.00 I have multiple CSV files with millions of records. How can i achieve this using Integration Services or Bulk Data I ...Show All
SQL Server Custom security extension permission problem
I've created a Reporting Service security extension based on the sample. It works great on my development 2003 servers but when moved into integration environment I am getting the following error in Report Manager when clicking a report: Could not load file or assembly 'Microsoft.ReportingServices.ProcessingObjectModel, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. Access is denied. Navigating folders and creating folders all seems to work in Report Manager. We only get this error when selecting a report. If I uninstall the custom security extension then everything works. This seems like a difference in security settings between the two server but I'm not sure how to troubleshoot ...Show All
Visual Studio Team System HOW: Authoring a Web Test project on a site with a masked URL
Newbie question. How do I write/record a Web Test on a site that has an implementation of a masked URL I am recording on a QUAT environment in which I will also need to implement a Load Test project on so removing the mask is not an option at this environment. Masked URL = The full path of the pages are not exposed only a default page at all times. Example: http:\\somewhere.com\default.aspx Is this even possible If it is how Your help will be greatly appreciated...thanks. I made a simple recording of our site. This recording registers a user to our site. The user needs to fill a series of pages to complete his/her registration then provides him/her with a confirmation page after submitting the ...Show All
Visual Studio Tools for Office Retrieve cell value
Hello, I would think this would be a rather easy task but it has thoroughly confused me. I am trying to take the value in cell[1,10], which is the result of a formula, and assign it to a variable in my code. So far, I have been unable to do this. I am using Excel 2003, C#. This is my code: If (dbConnection.Open != null) { Cells[1,10] = "Success"; } //Below is what does not work. string aString = (string)cells[1,10]; I have also tried, string aString = Cells.get_Value(Cells[1,10]); Any help would be very much appreciated. Thanks, ds Hi Quite easy when you know how. Excel.Range objRange = (Excel.Range)objYourSheet.Cells[1,10]; strData = objRange.get_Value(Missing.Value).ToSt ...Show All
Windows Live Developer Forums Can not AddAds
Hi Everyone, I am trying to add an ad over nusoap throught MSN adcenter API. I am using the following method : CampaignManagement.AddAds The example is visible here : https://adcenterapi.microsoft.com/v3/CampaignManagement/CampaignManagement.asmx op=AddAds I am sending the following envelope : < xml version="1.0" encoding="ISO-8859-1" > <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Header> ...Show All
Visual Studio Crystal report Viewer Not Showing Control Bar Button Icons in Windows XP
Dear Friends, I am using Crystal report along with VB.net 2003 in windows application. While executing, the project in windows 2003, its not showing any errors, but when we run it on Windows XP, in some forms, the control bar buttons(print, export, next page last page, previous page, first page, etc ) are showing without there icons. These invisible buttons can be found by placing the mouse over the specified area, then it shows the tool tip like print etc. Hope you good people will reply soon Regards Simjith Thank You mewdied for your reply, But the icons are shown in some forms, but shown in some other forms, this is shown only when we run the project ...Show All
SQL Server DTS Package Excel Connection - Please Advise
Hi, I'm using MS SQL 2000 and I want to export data from MS SQL database to MS Excel file. So, I choose the DTS package tool to do this job. I try to create the connection to the Excel file, which located in the shared location by using the UNC path, e.g. \\servername\foldername\filename.xls However, I cannot provide the username/password to connect to the file's location. So, the connection does not work. Do you have any idea how to create the Excel connection along with shared username/password Anyway, if it is not possible :-( any advices about exporting MS SQL data to MS Excel sheet via DTS packages are still welcome.... (The reason that I prefer DTS package bec. I can schedule the job to run it automatically) Thank ...Show All
Commerce Server BizTalk 2006 Hosts best Practiuce
Hi I am deploying several solutions in Biztalk 2006 / CS 2007 and want to know the best practices for Hosts. In BizTalk 2004 it advises that you manage multiple Hosts such that you have a ReceiveHost (RxHost) Transmit Host (TxHost) , Logging (LxHost) and Process Host(PxHost) etc. With the concept of Applications in 2006 should i be creating Application specific Hosts on my Biztalk Server such that i have AppNameRxHost, AppNameTxHost etc or should i keep the 2004 model and only have 4 (or more) Hosts per Biztalk Server Thanks in advance Simon Hey Simon, I would refer to the BizTalk documentation on the recommended host scale out. http://msdn2.microsoft.com/en-us/library/aa561042.aspx (Managing Host and Host inst ...Show All
Visual C# Creating CAB Files programmatically
Hi, I want to create cab files programmatically and that also multiple files at same time using muliple threads. I am creating my program using C# so I need some .net api or com api to create cab files. Is there anything available like that Thanks. Visual Studio 2005 has the CabArc.exe utility in the Common7\Tools\Bin folder. It is also available in the Platform SDK's Bin folder. Run it with System.Diagnostics.Process.Start(), the command line is briefly described here . ...Show All
SQL Server Snippet: SQL to get the data back out, part 2
We're having a hard time with SQL 05's xml. In a nutshell, I have a schema. I have used .Net 2.0's xsd tool to create classes from this schema. This schema is also tied to a XML column in my database server. So far so good. However, when I go to deserialize the xml data stored in the database server I'm getting inconsistent results. Namely the differences in the following queries: SELECT LoanXML.query('declare namespace MISMO="http://mrgdev.local/mismo/";//MISMO:LOAN') FROM Loans WHERE Loans.InternalID = @LoanID returns something completely different from: SELECT LoanXML from Loans where InternalID = @LoanID The difference is that the first query throws xsi:nil=true into EVERY SINGLE NODE. Whereas the second one doesn't ...Show All
.NET Development Obtaining IP Address of Client
Under ASP, you can obtain the client's IP from Request.ServerVariables("REMOTE_ADDR"). What is the equivalent in a Web Service I am also having the problem where Request.ServerVariables("REMOTE_ADDR") and System.Web.HttpContext.Current.Request.UserHostAddress is returning the IP of the server not the client. Does anyone know of any other way I can get the address of the client ...Show All
Microsoft ISV Community Center Forums How can I store a merge field value as document metadata?
Hi, I'm looking for some ideas on how I can achieve this: I have a Word Template that is used in a mail merge. When the merge happens, I want to store one of the the merge field values into the document in such a way that I can use this value later from a VBA macro. Can anyone give me ideas on how I could do this Thanks. Thom In case this is any help to anyone else... I managed to achieve what I wanted by adding code to the Document_New and Document_Open event handlers that took the value I wanted directly from the merge Datasource and stored it as a Document.Variable. This Document Variable is copied into the new document instances that is created during the merge. Thom ...Show All
Visual C# Save File in WinFX(XAML)
I want to make a control in XAML that save a file in given location.If anyone knows about that ...Show All
Visual C++ Help with c++ program as CLR....!...
Hello. I'm just messing around with c++ making my own program just on my own just to learn...It's a Visual C++ CLR ..Windows Form App .......It seems to work just fine but at one part it's not..here's the code... #pragma once namespace question { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using namespace System::Windows::Forms; using namespace System::Data; using namespace System::Drawing; /// <summary> /// Summary for Form1 /// /// WARNING: If you change the name of this class, you will need to change the /// 'Resource File Name' property for the managed resource compiler tool /// associated with all .resx files this class depends on. Otherwise, /// t ...Show All
