OJacob's Q&A profile
Visual C# How to check 2 reference objects for equality?
For examples sakes i got 2 Table instances, that are created by the same routine thus i know for a fact they are exactly the same. However when using equality checks they always return false indicating the table instances are not the same. I am using the following static methods 'object.equals' and 'object.referenceequals', i also tried the table instance's 'equals' method. How can i implement a conditional check to see if 2 instances of the same type are the same well you shouldnt need to check if the type is the same if you created the same object. you could use the GetType() of the object and see if it is the same type of the object in question. Example: if (objectInstance.GetType().Equals(theOtherO ...Show All
.NET Development VbCode Why doesn't it work.2
This is the Exception that I recieved. An unhandled exception of type 'System.Xml.XmlException' occurred in system.xml.dll Additional information: System error. is the err that I am getting ...Show All
SQL Server how do I get the value of a DEFAULT
Hi We have a default defined in our database CREATE DEFAULT [ schema_name . ] default _name AS constant_expression [ ; ] How can I ge the value of the constant using SQL Also - anyone know why this is going to be removed from a future version of SQL - we use it for partitioning with replicated clients (long story) - but every table has one column which is bound to this default. We find it *very* handy. Ta Bruce That shows the default constraints, but not our DEFAULT (terminology so similar but different - I'm confused!) thanks bruce ...Show All
SQL Server Microsoft Sql Server Embedded Edition Service
Hello All, Can someone tell me the actual significance of SQL Server Embedded Edition How is it different from SQL Express edition I understood that WSUS 3.0 version uses (installs) the latter when it could not find any SQL 2k or SQL 2k5 other than SP1 release (please see Issue 33 in: http://technet2.microsoft.com/WindowsServer/en/library/94d1385f-4872-4c29-8822-3a4ec5e45ae41033.mspx mfr=true ) on the host machine. Besides, when i installed WSS v30 release version, i saw this instance being installed (during the configuration of the Sharepoint products and technologies wizard just after the installation is done). Now with this instance installed, i tried opening this instance (instance name being Microsoft#SSEE) through SQL Serv ...Show All
Visual Studio Team System Add application-tier to an exisinting Database-tier
Hi I have an existing TFS using two servers. one with SQL used and database tier and another one for application tier. My question is: How can I install the application tier on the server with the existing database tier (I want to later configure it as a warm standby). Installation won't go because it recognises the installed database tier. I do not want to uninstall the database and reinstall them both (db and app). thanks In the installation guide you have instructions for it, under the Dual server installation optios you have another section for continuos server avaliability, chec out this two sections: Checklist: Standby Application-Tier Configuration How to: Configure an Application ...Show All
Visual C# Before we proceed I really need some protection!
If I were to make a C# program that contained a sensitive algorithm, how could I protect it I know that C# generates MSIL (this is what has me the most concerned), is there any way to get the compiler to scramble it or some thing The last thing I want is my code decompiled. I probally should have made a native C++ project, but it is so hard to motivate your self to do so when C# is sitting right in front of you. When the compiler declares variables in MSIL does it name them what you call them in C#, or does it assign them more machine like names Any suggestions would be helpful. Not exactly, but the logic will be there, only the names as i write will be crypted. So the name of class-s will be a, b, c, d ...Show All
Visual Studio Controlling and detecting what elements are droppable on the diagram and other elements
Hi, I've created my first DSL which can accept DSRef items from the server explorer. To implement I followed some samples which are already described on the forum. In an overriden OnAssociated I bind the DragOver and DragDrop events and check for a CF_DSREF type. This is all working OK and I'm creating business objects, attributes and relations fromt the database metadata. My issue is that I managed to change something in the DSL which prevents business objects being dropped from the toolbox onto the diagram. So I'm looking for leads on which properties control this behaviour and where in the underlying DSL tools framework sources I can debug to get more knowledge of how this is implemented. Grtz, Harry ...Show All
SQL Server Connecting to a Server to exec DTS Pkg
Hi; Does anyone know the correct syntax for the DTS method LoadFromSQlServer() I tried objPkg.LoadFromSQlServer("Myserver",,,DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_trustedConnection, , , , "MyPackage") . Here is the message that I receive : [DBNETLIB]{ConnectionOpen(Invalid Instance)).]Invalid Connection. Do I include the path along with the server name Or have I failed to spell out the filename/path in my package Sorry for this trivial question but I can't find that much info for accessing/running a DTS pkg . Thanks for your insights. Is your server a named instance What is the instance name then Could you also share out your connection strin ...Show All
.NET Development Converting string to XML
Hello all, Can anyone tell me how I convert a string to XML I have a web service that returns this value as a string: <StockData xmlns:dt="urn:schemas-microsoft-com:datatypes"> <Quotes> <Quote Symbol="Swft"> <Last dt:dt="float">25.02</Last> <LastTime dt:dt="string">12:36 PM</LastTime> <LastSize dt:dt="float">300.00</LastSize> <Ask dt:dt="float">0.00</Ask> <Bid dt:dt="float">0.00</Bid> <Open dt:dt="float">24.98</Open> <Close dt:dt="float">25.01</Close> <High dt:dt="float">25.55</High> ...Show All
Windows Forms change Image in pictureBox after event
Hi guys... How does it work do change the image during runtime e.g. I instantiated a pictureBox with a local resource like the assistent creates. this .pictureBox.Image = ((System.Drawing. Image )(resources.GetObject( "pictureBox.Image" ))); How is it possible to change the image if the user e.g. press a button this.pictureBox.Image = Thank you for help. Regards.. To which resource will the filename relate In another words in which folder must the picture saved to use the relative link "filename.jpg" Thx.. ...Show All
Visual C++ Error In MfC App
Help needed i am stuck with this error while developing MFC based application in vc++ 8. pls help me get out of this mess code: void CmfcaView::OnEnKillfocusname() { char name[15]; GetDlgItemText(IDC_name,name,15); if (strlen(name)==0) { MessageBox("The Employee Code can not be blank. Please enter an Employee Code."); CEdit *code; code=(CEdit*)GetDlgItem(IDC_name); code->SetFocus(); // TODO: Add your control notification handler code here } } Error: Error 1 error C2664: 'int CWnd::GetDlgItemTextW(int,LPTSTR,int) const' : cannot convert parameter 2 from 'char [15]' to 'LPTSTR' Error 2 error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [67]' to 'LPCTSTR' thanks sGurpreet wrote: Hel ...Show All
Audio and Video Development Audio-software Development with DirectX 10
I wish to develop an audio software (like winamp, jet-audio etc) using Direct X 10. Dear experts, what do you suggest about this Should or should not I go with this Please tell in detail regarding your suggestion. Thanks Well, which API you'll want to use probably depends on what exactly your application is going to do. For instance, if you're looking to write an application that does playback of audio files, you could consider using Media Foundation for this. I'll say that this forum is primarily about Media Foundation, which is the new multimedia platform for Windows Vista. So if your application is going to need to run on earlier OSes, you'll probably need to use a legacy platform (like DirectShow), in which case your b ...Show All
SQL Server could not process the cube
hi, after i deploy the cube ,i will run it i am getting the following error i have used the database egss Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Egss', Name of 'Egss'. how could i solve this regards lalitha If you want to change the SSAS service account you would do the following: Logon to the server with a user that has administrator privileges Open up the SQL Server Configuration Manager application which is found under Start > All Programs> Microsoft SQL Server 2005> Configuration Tools. Under SQL Server 2005 Services, double click on "SQL Server Analysis Services&quo ...Show All
Visual Studio Team System Process Template change
I want to remove a few workitems I do not use in my process template. For example. I have no reason to create a "risk" workitem. I know that if you alter this xml. And remove the entries for the workitemtype that you don't want created it will work fine for any new project created using this template. (see xml below). However I don't want to create a new project, we only use one project. Is there a way I can remove the ability to create certain workitem, ie "risk" in an existing project It should no longer appear when you right click on workitems and choose "Add work item" from ProcessTemplate.xml <task id="WITs" name="WorkItemType definitions" plugin="Microsoft.Pro ...Show All
Visual C++ Why I can't complie below code in VS2005
Because of std::swap function, I can't compile below function. but if I don't specify template parameter, it is compiled very well. I wonder why I can't specify template parameter when I use swap function, but if include <utility> instead of <vector>, I can use std::swap specifing template paramter. I think it's Microsoft STL library bug..., it is needed to fix it. #include <vector> // if I include <utility> I can compile below code. template <class T> class CTest { typedef CTest<T> ThisType; T* m_Array; public: void Swap(ThisType& other) { std::swap<T*>(m_Array, other.m_Array); } }; int _tmain(int argc, _TCHAR* argv[]) { CTest<double> test, test2; test.Swap(test2); ...Show All
