Vlad Shimov's Q&A profile
.NET Development dataset add query won't work
when i go to my dataset.xsd file and slect the add query menu item. i get this error : key is not valid for use in the given status. how can i solve this i need to make my custom queries Hi, Can you try with a new blank project to see if it does the same If so, please report the bug at connect.microsoft.com. Charles ...Show All
Visual C++ Need help with generating random numbers
Hello, I am making a game where the program generates a random number and the user has 5 guesses to guess what the number is. However, I am experiencing problems and would be greatly appreciative if someone could help me. 1. Every time the program runs the number is always the same, its always one, it never changes, making it not random at all. How do I make it so the number changes each time the program reopens 2.I want to make it so if the user fails or succeeds in guessing, they have the option to play it again, how would I go about making the number change during run time [CODE] #include <iostream> #include <cstdlib> using namespace std; int user;int number = rand()%10;int score = 5; int main() { cout<<"Guess a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing a 3d model with shader effects
It could just be that I am a complete and total idiot but I have been looking for an easy way to draw a 3d model with shader effects (.fx file). I had orignally guessed it would be easy becuase of the Tutorial 1: Displaying a 3D model on the screen, but that uses basic effects, not an effects file. Can someone please show me a simple way of doing this because I am evidently too dumb to figure it out. I am looking for something like the tutorial draw code... Instead of setting effect.World, View, and Projection the way you do with a BasicEffect, you will have to set the parameters in your fx file, something like this: effect.Parameters[ "Position" ].SetValue(positionMatrix); where "Position" would be whatever the ...Show All
SQL Server Problems with SQL 2005 Export Wizard
I am trying to transfer data from SQL Express to SQL Server 2005. The data is from Paypal Commerce Starter Kit from ASP.NET site. I have tried several options (Optimize for many tables, Run in Transaction). However the data is not exported. This is the error I am getting: TITLE: Operation stopped... ------------------------------ The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails. ------------------------------ ADDITIONAL INFORMATION: The package failed to load due to error 0xC0011008 " ...Show All
Visual Studio Team System Error creating new Team Projects
Hi, I've keep getting this error when I'm trying to create a new Team Project. It says "TF26173: Team Foundation could not connect to the application tier", but that's strange 'cause my TFS is a one-server installation. I've recently installed SP1. I can do check-in / check-out on existing projects, so the different tiers can talk to each other... /Casper 2007-02-22 14:23:02Z | Module: Internal | Team Foundation Server proxy retrieved | Completion time: 0,3906125 seconds 2007-02-22 14:23:02Z | Module: Wizard | Retrieved IAuthorizationService proxy | Completion time: 0,4843595 seconds 2007-02-22 14:23:03Z | Module: Wizard | TF30227: Project creation permissions retrieved | Completion time: 0,687478 seconds 2007- ...Show All
Visual Studio Express Editions LNK2019 and __absiob
I'm trying to compile C routines to use with my Fortran main program. Everything worked fine until the Fortran developer (Absoft) switched to VC. I get the following error message on linking: error LNK2019: unresolved external symbol __absiob referenced in function ... I don't know what this symbol is or how to get rid of this problem. Any ideas Thanks. Ron But which library has __absiob This must be some system function. I don't call it explicitly; I suspect it gets called by some system function. TIA. Ron ...Show All
Silverlight (formerly WPF/E) How to redirect on XAML file to anotherXAML file in same project
Hi, How can i call one xaml file from another xaml file in same project . Example : Suppose in my First.xaml file have one button .onclick of this button i want to show second.xaml file how i can achive this by using javascript as a code behind. Thanks Hi Thiago Henrique da Silva , I tried it and i got error like "Unspecified error " at line control.Source = 'first.xaml'; I am waiting for reply. if possible please send your email id so that we can chat . My gmail id is : dinchaudhari@gmail.com Thanks, ...Show All
Visual Studio Express Editions How to get all the computers in a network
Hi, I want to get list of all the computers names with IP address in a LAN. How can i get using .NET c# Thank you To get a list of network computer and share names similar to what you see in Network Neighborhood, look at the WNetOpenEnum() API function. ...Show All
SQL Server How to Get the Output Column in OLE DB Command Transformation
Hi, I am writing a Dataflow task which will take a Particular column from the source table and i am passing the column value in the SQL command property. My SQL Command will look like this, Select SerialNumber From SerialNumbers Where OrderID = @OrderID If i go and check the output column in the Input and output properties tab, I am not able to see this serial number column in the output column tree,So i cant able to access this column in the next transformation component. Please help me. Thanks in advance. Dear Jamie, That also i tried,the table contains multiple values(for same OrderID multiple serial numbers) and the lookup transform will take only the first valu ...Show All
Visual Studio Express Editions Find the Handle of a Foreground Window Even if it's Not Active
I am trying to get the handle of whatever window happens to be in the "foreground" regardless of whether it has the focus. Basically, I'm looking for whatever window that is on the top. I've tried the PInvoke GetForegroundWindow function, but that only seems to return the correct foreground window if it has the focus. Any help or ideas of how to pull this off in VB .Net 2005 would be greatly appreciated Hi, thanks for the quick response. I am actually looking to be able to find the (visually) top window without having to know anything about it (such as the window title, etc) ...Show All
Visual Studio Express Editions Looping through filenames
Hello, I developed an application that creates a webpage for the end user after they simply fill in some text fields (among other fields, too). This program is a piece of a much larger application. Once delivered to the customer, it will be their responsibility to maintain the webpages using this application. The webpages represent products that they will be selling. All that said, I need to be able to create a unique filename everytime a new prduct page is created. The format of the file name is such: AM_001_BEV_ProductFullName.htm AM = AMbient product 001 = unique Ambient product identifier. Say the files are saved in "c:\Product" directory. I currently have it so that I read all files in this directory tha ...Show All
Visual Studio Express Editions Native DLL
just for giggles I am trying to create an old fashioned native C++ dll. I am using VS Express edition (no native dll project is avalible). Every time I try to compile my project it says I need an entry point, but when I add the int main() it makes it an exe ... I dont want an executable... I am confused Hmya, those instructions are indeed in the PDSK installation notes . Not sure what's going on, there's been a lot of threads about things going wrong with following the instructions. Maybe the instructions got updated. I vaguely remember another Martin Richter thread where he expressed dismay with MSFT not publishing these editing instructions. The OP has marked the thread ...Show All
Visual Studio Express Editions HASH password
ok, i found this code to generate a password Public Shared Function HashPassword( ByVal password As String ) As String Dim sha As New SHA1Managed Dim passwordBytes As Byte () = Encoding .UTF8.GetBytes(password) 'compute the hash Dim hash As Byte () = sha.ComputeHash(passwordBytes) Return Convert.ToBase64String(hash) End Function the thing is i didnt do this function, and the program visual basic underlines the words i put in yellow.. it says SHA1Managed is not defined Encoding is not declared if anyone can help me...or has another hash funcion to generate password i woudl appresiate, i looked all over and couldnt find one for visual basic... You probably dont ...Show All
Windows Forms How to change color of caption bar of windows form
hi all I would like to change color of caption bar of windows form. i changed backcolor property but it wont work. all time i get system color any one can help me You cannot do this. You can change all of the window caption colors, but not yours specifically. You can do a win2000 look by going to Program.cs and removing EnableVisualStyles(). ...Show All
Visual Studio Team System KB Article on the fix for the "TFS Project comma issue"
I posted a MS Project to TFS problem back in June and was told then that "A KB article on this issue will be released in the next couple of weeks. Meanwhile, you can call CSS and ask them for the fix for the TFS Project comma issue." Can anyone tell me if the KB article has been released TIA Ron L Ron, Although this KB article is not yet public, you can get it from CSS. The KB number is 919232. Thanks, Erin ...Show All
