Dmytro Kryvko's Q&A profile
Visual Studio Team System Merging Visual Studio solution/project files
As much of the power of VSTS's new version control is the ability to merge all or parts of files across branches, I am suprised to be running into what seems to be a bit of a showstopper to my whole source control strategy. I have various 'project' branches that were created from a mainline (lets say at the same time), so that work on the same system can be carried out in parallel but in isolation. Both 'projects' make changes to the same solution file. At the point at which both projects want to formally release their work, they both need to merge their respective changes back into the mainline. The problem is that the sln file actually numbers each visual studio project that it contains and even has a count of the number pf vs proj ...Show All
Visual C++ Bug: VC++ fails to instantiate static data member in template class
This code fails to compile on VC++ 2005, failing with error LNK2001: unresolved external symbol "protected: static unsigned int Foo<unsigned int>::a_static" #include <vector> #include <algorithm> template<typename T> class Foo { protected: static T a_static; }; template<typename T> T Foo<T>::a_static; template<typename T> class Bar : public Foo<T> { public: T f() { return this->a_static; } }; template<typename T> struct Functor { Functor(T const& t) : t_(t) {} int operator()() { return t_.f(); } private: T t_; }; template<typename T> Functor<T> functor(const T &t) { return Functor<T>(t); } int main() { std::vector<int> v(100 ...Show All
Visual Basic search string and return the following six characters.
How would I best click a button and display the six characters that follow a specific part in a string. i would like to display in a label. for example search the above state ment for "button and " then return "display" to a label in the form. Thanks in advance!! you can either use Regex (regular expressions) as they are powerful and do good pattern searching but can be expensive (resources etc...) and may not be ideal for your situation. you can use some of the string functions like someString.SubString(0) etc... now to obtain all text/string after a specific position: dim myString as String = "button and display to an from and blah blah" ...Show All
Visual C# linux application
Hi to all, is it possible with visula studio to develop a compatible linux application and if i have to use DirectX sdk library wich is the best solution thanks Teo Hi, adding some words to Mark's post to say that the .Net 1.1 is fully supported under Mono and some of the 2.0 version is also supported. Version 3.0 is also being developed. There's also a project for cross platform managed graphics, but it's for the XNA framework. I don't know many details about this project but you can check it here: http://www.taoframework.com/Mono.Xna ...Show All
Visual C++ Increasing the counter??
How to increase the counter Example; when a button is been clicked first time it have to show "Subscriber Station 1" and the second time "Subscriber Stationn 2" and so on.. Am i to declare a variable for the counter and how do i need to assign them into the codings Sample coding is below. Pls indicate where am i to add in the cods thanks... private : System::Void add_subNode() { array <TreeNode^>^ subNodeArr = gcnew array <TreeNode^> { gcnew TreeNode ( "Subscriber Station" ) }; TreeNode^ rtnSub = gcnew TreeNode( "Base Station" , subNodeArr); baseNode ->Nodes->Add(subNodeArr[0]); } I do ...Show All
Visual C++ Can't get cout << "Hello World"; to work
I just installed VC++ 2005 and when I "Build Solution" for the test program below I get the error messages listed below. What's wrong Thanks. #include <iostream> using namespace std; int main() { cout<< "Hello World" ; return 0; } I get a host of errors: 1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------ 1>Compiling... 1>hello.cpp 1>c:\program files\microsoft visual studio 8\vc\include\iostream(16) : error C2653: '_Ptr_std' : is not a class or namespace name 1>c:\program files\microsoft visual studio 8\vc\include\iostream(17) : error C2653: '_Ptr_std' : is not a class or namespace name 1>c:\program files\micr ...Show All
Visual Studio Team System How does this compare to other 3rd party applications that compare data and schema?
What are the differences between this and other 3rd party applicatons that compare data and schema (eg. red-gate SQL Compare and SQL Data Compare) Thanks, Peter The main difference is that we integrate the schema comparison with our project and build/deploy model. Since there are not many different ways you can compare schema objects you will find not much differences. But there are some that I know of, for example the ability to deal with collation sequences in schema and data compare is one. I do not have a detailed list with differences. The main usage model for us is the comparison between your project and a target database. -GertD "DataDude" Developement Manager ...Show All
Visual Studio 2008 (Pre-release) reliable messaging to the WCF service
If I have a WCF service, (running as a windows service), that hosts the WF runtime etc to do its work, what is the best method of dealing with many calls to the service given that the WF runtime will have only 25 threads or thereabouts when using the default scheduler I understand that the WF runtime will just queue the instances up and will persist them if the runtime is stopped cleanly but that this could lead to large memory usage and long stop times. So, how should I manage this situation in a reliable manner We are likely to want reliable messaging to the WCF service but should I be using some queuing mechanisms of my own etc within my service I think you are talking about how to manage concurrent r ...Show All
Software Development for Windows Vista In July CTP, using StateMachineWorkflowInstance to obtain CurrentState freezes workflows in that State
Dear all, I have a working StateMachineWorkflow hosted under asp.net 2.0. I have written a simple routine (shown below) to interrogate the current state of a workflowinstance: public string WfCurrentStateDescription(string WorkflowInstanceId) { // Get the workflowRuntime which was started in global.asax WorkflowRuntime wfRuntime = (WorkflowRuntime)Application[WorkflowRuntimeKey]; StateMachineWorkflowInstance wfInst = new StateMachineWorkflowInstance(wfRuntime, new Guid(WorkflowInstanceId)); return wfInst.CurrentState.Description; } I find that, once I have called this on a workflowinstance, that instance gets "stuck" in the current state and never transitions to the next state, even though code appears to get c ...Show All
SQL Server sql beginner - saving views to a file
is there anyway to automatically save a view to a file at a scheduled time Thank you for any help or pointing me in the right direction. Additionally, in 2005, you can even use a query like: select object_definition(object_id) + char(13) + char(10) + 'GO' from sys.views to get all of the view definitions. ...Show All
Visual Studio Error installing Mobile Client Software Factory on Vista - Cannot Connect to IIS
Hi there, I'm getting an error installing the MCSF on Vista Ultimate. The installer throws an error when trying to access IIS : Cannot Connect to Internet Information Service (-2147221164). Following that, there are several errors when the solutions are compiled and another when trying to run the batch script for SQL Server. I'm installing the application through command promt run as administrator. I've successfully installed other factories in the same manner. Not really sure where to go from here Any idea's Thanks. Steve Hi stephenl, Have you tried posting this in the MCSF forums This looks like a particular error with the MCSF installer (as GAX/GAT installers don't use IIS) that the MCSF t ...Show All
Visual C# Passing values into EventArgs when a button is clicked
I am currently building a shopping cart application using C # in VS2005 where there are 10 items to select from. There are 10 "Add to Cart" buttons, when clicked, will trigger a single method. That single method will either add a row (new item), or update the quantity (old item). In my existing code, i loop through each row in the DataSet to determine whether i should add a row or update a row. Is there a way to store the item information (name, description and price) in EventArgs so that when the "Add to Cart" button is clicked, the item information is passed to the single method using EventArgs I am aware that i can create my own EventArgs class that inherits the EventArgs class but is there any way to store my it ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite.Draw2D() in C# Managed DX Simple2D Sample
I'm New to C# and Managed DirectX and I'm trying to use the Simple2D as a basic example to my game. But I get a problem. This is my code. batchSprite.Draw2D(mosquitoTexture, new Rectangle(0, 0, 160, 100), new SizeF(160f, 100f), new PointF(80f, 50f), 0f, new PointF(100, 100), Color.White); batchSprite.Draw2D(mosquitoTexture, new Rectangle(0, 0, 160, 100), new SizeF(320f, 200f), new PointF(80f, 50f), 0f, new PointF(200, 100), Color.White); batchSprite.Draw2D(mosquitoTexture, new Rectangle(0, 0, 160, 100), new SizeF(160f * 80f / 100f , 100f * 80f / 100f), new PointF(80f, 50f), 0f, new PointF(100, 250), Color.White); batchSprite.Draw2D(mosquitoTexture, new Rectangle(0, 0, 160, 100), new SizeF(160f * 70f / 100f , 100f * 70f / 1 ...Show All
.NET Development Get the IntPtr (pointer) of byte[]
Hi All, Is there any possibilities to get the pointer (IntPtr) of an array of bytes (byte[]) The array of bytes contents are constructed by reading from a stream. Please advise, Thanks & regards, Lok Thanks Matt, But, can you please show me some code example Especially on how I can create an instance of IntPtr that points to the byte[]. Regards, Lok ...Show All
Software Development for Windows Vista SharePoint 2007 Beta 2 TR setup incorrectly
After installing the Beta 2 TR, I get the following error on the Central Administration page where the server services are supposed to be listed: "Error Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe." When I try to create a new application, the following error shows up on the "Create Application" page: "The Windows SharePoint Services Web Application service is not started in the farm. Use the Services on Server page to initialize that service." When I click the "Services on Server" link I get the following error: "The file '/_admin/_admin/server.aspx' does ...Show All
