WilsonY's Q&A profile
Visual Studio Express Editions Program produces different results on different computers
Hi all, I wrote a program about six months ago and uploaded it to a site. What the program does is read a text file and puts the results into a database. Obviously the program works ok on my system & I know it works ok on other users systems but I've had 2 reports of the program not working as it should on other systems that are using the same OS as me ( windows XP service pack 2 ) . I told one user to download the latest visual basic runtime files which he did and still there is no difference, I also got him to send me his text file which I tried on my system & it worked ok. The visual basic file he downloaded is ; Visual_Basic_6.0_-VB6-_runtime_SP5.exe I'm no expert on VB, far from it but this sounds really strange ...Show All
Visual Studio Team System Using Excel as a DataSource for coded web tests
I have a web test which is databound. The backing datastore is an Excel spreadsheet and this works. However, if I turn that test into a coded web test the tests fail to run (note the tests don't fail, they don't even execute). If I remove the DataSource attribute from the coded test then I can get the test to run. The DataSource attribute looks like this: [DataSource("DataSource1", @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\Starbuzz\Starbuzz\testdrivendata\CoffeeMakerTestData.xls;Extended Properties='Excel 8.0'", DataBindingAccessMethod.Sequential, "Sheet2$")] And I get the following failure Error WebTest1Coded WebAppTest Could not run web test 'WebTest1Coded' on agent 'MACHINENAME': Ob ...Show All
Visual Studio 2008 (Pre-release) How to convert Texture Coordinate to mesh positions Coordinate ?
I have a 3D sphere in viewport3d , I have Texture Coordinate , How to convert Texture Coordinate to mesh positions Coordinate(Point3D) Kindly help. Regards, Unfortunately, this still depends on the way you've built your sphere, and the texture coordinates that you've associated with each vertex. If, for example, your sphere is centered at 0,0,0 and has radius 1 and if the "prime meridian" - the left edge of the texture (and, ultimately, the right edge of the texture 360 degrees later) - runs from 0,1,0 to 0,-1,0 and includes 1,0,0, then the 3d coordinate from where the texture coordinate u,v, will appear is, I believe (in degrees): y = cos (v * 180) r = sin (v * 180) x = cos(u ...Show All
SQL Server Run a task multiple times
I have a situation where I run the same taks multiple times during the execution. I would like to have one task which runs every time, instead of duplicating the task over and over 14 times in my script. Basically, it is an audit log, which I set variables and then insert into a SQL table the variables. I would like to do this: Task1 ------Success-----> Set Vars -----Success--> Log | Task2 ------Success-----> Set Vars -----Success-| (do the Log task again) | Task3 -------Success-----> Set Vars -----Success-| (do the Log task again) | etc This works, however, I have to duplicate Log over and over and over. No OR does not work, because it still only executes the Log task once. Another option I thought of, but cannot find a w ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .X and multi uvs and texture layers.
I have been using the Microsoft .X exporter for 3d Max and notice that it still doesnt support multiple uvs or multiple texture layers. This is very irritating for me and countless others. There are .X exporters made by third parties which support multiple uv sets, but not multiple texture layers per mesh. I have read that this is all because of X file limitations. My question is when will the Direct X 3d format support these two basic features and when will they be implimented in the Microsoft Direct X exporters Thanks for any information. I think this limitation is because of the limitations in the default x file format - don't forget that x files are extensible.&nbs ...Show All
Visual Basic possible to automate ms word if Ms word is not installed?
Is it possible to automate a Ms word file using vb.net while there is no Ms Word installed on tat pc The interop assemblies are basically wrappers around the com methods from the actual product install. That is one of the issues with the PIA's in that you have to code against the same version that the end user has installed. If you write your application against the Word 2003 PIA, but the user only has Word 2000, it may not work. The client does need to have Word (and be licensed). Jim Wooley http://devauthority.com/blogs/jwooley/default.aspx ...Show All
Visual C# Generic Multi-Dimensional Arrays Comparison
Hi, I need to compare multi-dimensional arrays in a function which takes 2 multi-dim arrays which can be any type(int, double, bool...etc). Comparison is done by Object.Equals() of each value in each index of the arrays. As a result, Generic and Multi-Dimensional is what I need to combine. Any idea I compare 1 Dimensional-arrays with the below code of mine: public static bool AreArraysEqualByVal<T>( IList <T> src, IList <T> dest) { if (src == null || dest == null ) throw new ArgumentNullException ( "source or destination array is null." ); if (src.Count != dest.Count) { Debug .WriteLine( "Array lengths were not equal." ...Show All
SQL Server SQL 2005 Express local admin access denied
I am using a standard installation of SQL 2005 Express installed with Visual C# Express. I have tried several connection strings, have tried connecting different databases, all of which end up giving me access denied for user <machineName>\Greg (Greg is the local admin account for this PC. I found this guideline for connectivity questions (http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=362498&SiteID=1), and have gone through it all, posting the answers to questions here. One thing that may be different about this machine is that it is a tablet PC (WinXP Tablet edition) and I am running VMWare Server. I also tried loading it on a WinXP Pro workstation with no VMWare, and have gotten the same results. Any help will be greatl ...Show All
Commerce Server Profile adapter
Hi Unlike the Orders and Catalog adapters where there is a lot of help and examples (excellent webcasts by A Faulkner and B Blum) there is almost nothing on working with the BizTalk Profiles adapters. I need to use the Profiles adapter to update a single (custom) property in the UserObject table. Which schema do I use (Is it the ProfileDocument schema ) When I send this message to Commerce Server via the Profiles adapter: <ProfileDocument><UserObject> <GeneralInfo><user_id> fffc429f-5340-4902-ad99-7beee1a6bbcb </user_id> <store_credits_last_update_date>2006-10-22T11:59:59</store_credits_last_update_date> <store_credits>150.00</store_credits> < ...Show All
.NET Development Marshalling an array of strings from C# to unmanaged C++
Hi I am trying to call in a function in a unmanaged C++ DLL that takes in an array of 'char *'. I was wondering if there a way to declare the function on the C# side as [DllImport("CPlusPlusDll.dll", CallingConvention = CallingConvention.Cdecl)] public static extern void PassInStrings(short sArraySize, string[] values); and on the C++ side process the string array as void PassInStrings(short sArraySize, char** stringArray) { ... ... } I know I must be trivializing the solution :-}) I would appreciate any pointers on how this can be achieved. Thank you Too hasty of me I posed the question on the forum too quickly without trying it out. Thank you Mattias for that answer - otherwise I wouldn't even have tried it. He ...Show All
Visual Studio Express Editions Open file problem ...!!!
hello everyone... here's a new problem.... please help i have made a open dialog for a picture to insert in the picture box,,, but how can i restrict it to only show the picture files in computer ----------OR------------ how can i restirct to only select the picture files like jpeg, bmp, gif, etc etc thanks,,,, set the filter for the open dialog: http://msdn2.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.filter.aspx so something like perhaps: theOpenFileDialog.Filter = "Image Files (*.jpg;*.bmp;*.png)|*.jpg;*.bmp;*.png"; ...Show All
Windows Forms multiselection in a datagrid
Hi! I would like to know how can i select multiple rows in a datagrid I can select an entire row but i can't do a multiple select. I have another question, how can i add a checkbox on the header of my datagrid. I want my application do allow one or more rows selection. When the selections done, the user have to check the checkbox to allow another event to happen. Thanks a lot!!! Thanks... I did find some code lines for the the multiselection. I am not using a checkbox no more. i do use a button instead but i dont know how to connect the selection and the button together.. Thanks... ...Show All
Visual Studio Express Editions ArrayQuestions
How do i have an array that doesn't have a size How do i store an array in the my.settings can you give me more information about Arraylists and dictionary classes. thanks And how do i store and array inside an array to make a 2d array. ...Show All
Visual Studio 2008 (Pre-release) Which Expression Product to use?
I'd like to have one of our graphics people help me make a WPF application look better. The XAML won't render in Cider, but I figure I can give it to him in pieces and he can work on it that way. Which Expression product(s) do I need Some of the work is with gradient brushes, other involves creating graphics. Hi Brian, Essentially, from a developer's perspective, I view the Expression suite as follows (I need to investigate this a little more, but I believe it's on the correct path). Expression Blend is for WPF development. You can create vectored graphics here. ( http://www.microsoft.com/products/expression/en/Expression-Blend/default.mspx ) Expression Web is for ASP.NET application develop ...Show All
.NET Development Overriding App.config
I have a third party system that looks for settings in App.config via: System.Configuration.ConfigurationManager.AppSettings . I would like to be able to feed that code settings at run time that come from somewhere other than App.config. Is this possible Is there, perhaps, a way within the configuration system to say, "OK, from now on, get your settings from this piece of code or that file" Some other back alley Help is appreciated. Thanks. - Jim Carnicelli ...Show All
