Ivan Martinez's Q&A profile
.NET Development Clone Vs. Equal
I have the following class:- class CloneTest : ICloneable { private string name; private string job; private float salary; public CloneTest( string uname, string ujob, float usalary) { name = uname; job = ujob; salary = usalary; } public CloneTest( string uname, string ujob): this (uname,ujob,0) { name = uname; job = ujob; } public CloneTest(): this ("","",0) { name = ""; job = ""; salary = 0; } #region ICloneable Members public object Clone() { return new CloneTest(name,job,salary); } #endregion } I main program ...Show All
.NET Development Using version independent references
Is there a way to reference an assembly and not be bound to a specific version of that assembly If the version of our product is 1.0.300.1 and I build applications that reference this assembly, it appears that I am locked into a version of 1.0.300.x. I understand I can increment the last digit without affecting references, but what if I want to upgrade my application to version 2 (IE 2.0.0.0). It appears I break compatibility even though my interface may not have changed. Thanks for any help on this, Rich You can use a publisher policy to allow a later version of an assembly to load. ...Show All
SQL Server Help Please...request to send data to the computer running IIS has failed
Hello, I am trying to complete the BOL sample " Creating a Mobile Application with SQL Server Mobile". Using SQL 2k5 and VS Team Suite. I have the emulator about to get on to the internet and can even get to the http:// sqlce.domain.com/sqlmobile/sqlcesa30.dll url but when runing the vb.net code I get the error 28037 "A request to send data to the computer running IIS has failed. For more information, see HRESULT.". Any help would be greatly appreciated. No software firewalls are running. I have a dns entry that points to my laptop for testing. The sync function code is below. Sub sync() Dim repl As New SqlCeRep ...Show All
SQL Server xQuery requires QUOTED_IDENTIFIER
I am working for a client that would has XML data being passed into a Service Broker queue. The queue is configured to activate a stored procedure once a message is recieved. Inside that stored procedure I would like to you xQuery methods to find data in the xml that got passed in, however, I continue to get an error stating that... 'CONDITIONAL failed because the following SET options have incorrect settings: 'QUOTED_IDENTIFIER'. ... I have tried several different ways of turning on quoted identifiers (turning them on for the entire database, turning them on inside the stored procedure) however I cannot seem to get any xquery methods to ...Show All
Visual C# Accessing a classes public object through an interface
Hi, I have a class that has a public array list, this class is used through an interface and im wondering how i can access my public object through the interface Thanks for any help, -Dave You can only access members declared in the interface through that interface. So, if you want to access the ArrayList through it, you will need to declare it as a property of the interface. You will then have to implement it as a property on your class (not a field), which you should be doing already. ...Show All
Visual C# Declaring Arrays
Hello, I have a question about declaring arrays. Here is my array I’ve declared which contains 3 string. string [] strName = new string [3]; I am trying to pass this string array to a DLL that is created in Delphi and the declaration is looks like this. strName : Array [0..3] of String[128]; As you can see in Delphi, they can declare a string array that has 3 items in it and then can define the string length to 128 at declaration. When I passed my array to Delphi DLL, I got SEHException. I assume it’s because of string structure which I cannot limit to ...Show All
Visual J# Free game - Engineer your own World
This is Windward's Christmas present to the development community. Download the Game – for Free! Happy Holidays from Windward Studios. Windward Studios, the creators of Windward Reports, is making Enemy Nations available for free. Sim City meets Civilization meets Age of Empires Enemy Nations combines the world building of Sim City, the large scale and detail of Civilization, and the combat of Age of Empires. Award Winning And you don't have to take our word for it - read the reviews. Enemy Nations is one of the highest rated games ever published. See why T. Liam McDonald of Computer Gaming World called it “The Best Game you Never Played. ...Show All
SQL Server how can I add a unique key column to a table and generate its values automatically?
Hi, all, I have a question about adding a unique key column to an existing table. what i trying to do is that: I have already created a table, now i wanna add a ID column to this table, and generate the values for ID column from 1 to the existing row number. How can I get this done Thanks a lot in advance for any guidance. Here is an example of how to add an identity column create table TestID (SomeField varchar(49)) insert into TestID values ('1.1.9') insert into TestID values ('2.2.2.10') insert into TestID values ('2.2.2.8') insert into TestID values ('2.2.2.9') insert into TestID values ('1.1.7') insert into TestID val ...Show All
Windows Forms TextBox with wordwrap=false still wraps at a certain point
Hello, I have a TextBox that I need to display some data in. I need each bit of data to be on its on line. My lines are somewhat long, so much so that even with wordwrap set to false, the TextBox wraps even though a scroll bar is showing. Is there a way to override this width so that it doesn't wordwrap Thank you for your help, Are you sure you are not accidently reading in a RETURN or LINFEED Character Zep-- ...Show All
Visual Studio Tools for Office Unable to create Excel Workbook Project
I just installed Visual Studio 2005 June CTP on a machine with no previous version of VS 2005. However, I get the following error when I attempt to create an Excel Workbook Project: The project cannot be created. I tried uninstalling and reinstalling both VSTO and VSNET. Then, I tried formatting and reinstalling Windows 2003. Next, I tried it on a Windows XP machine. However, all gave the same result. Note: I can create a Word Document Project without errors. Hi Installation order is quite important so would be useful if you can recall the exact order and if there was any reinstall of othe ...Show All
SQL Server Extracting month, day, year from dates
I need help in building a Select statement for an ODBC connection to an AS400 DB2 system. I am using this Select statement for SQL Reporting Services. Unfortunately 15 years ago one of the main datatables on the AS400 was set up splitting the transaction date into THREE FIELDS! One for Month, one for Day and then one for Year. I need to take yesterday's date and somehow use this in my WHERE statement to connect the transaction records that are in this AS400 table. This is what I have now that is not working: WHERE QS36F.BRDMST."BREED#" = QS36F.DOGOWNR.BRDCOD AND (QS36F.DOGOWNR.TMONTH = "MONTH"(GETDATE() ) AND ( ...Show All
Software Development for Windows Vista Communication between 2 different workflows
I have a host application (a windows service) and 2 different types of state machine workflows. The workflow1 executes a certain amount of workflow2 and waits for the workflows to return. To do this they need to communicate between each other. I thought workflow2 could send an event to workflow1, in order to tell him when he's finished. Everytime a workflow2 returns it send this event to workflow1, so workflow1 can check if the started workflows are all finished. But how can I send events from one workflow to another Any ideas, which dont use wcf Thanks Do I have to set a WaitHandler on the state m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Control Hardware Acceleration in DirectX
hi there, I am using Managed DirectX. Can i control level of hardware acceleration through DirectX while creating or initializing device If i can control it through my software, what things i can do with it there is still option to change hardware acceleration through manually by changing it through properties of VGA but my requirment is to change it through my own software. please reply soon .... Thanx You can control just about everything to my knowledge, but you'd have to ask about specific things if you want a specific answer. ...Show All
.NET Development Threading problem
Hi, I have a Windows Form and I need to create another thread to wait for an input somewhere else in the program. When this happens, I will have to access the form and modify it. Right now, this creates an error because I can't access/modify the form from a thread that didn't create it. I've searched through the reference and found that the ThreadPool class allows me to "wait on behalf of other threads" but I haven't found a solution with that yet. Does anyone know of a way to solve the problem Thanks in advance, Wing yes in your thread code: yourForm.theUpdateMessage = "My Message"; yourForm.Invoke( n ...Show All
Software Development for Windows Vista BizTalk 2004 Migration to WFF
If I start with BizTalk 2004 today, is there a migration strategy for converting the workflows to WWF Paul, This answers my questions. Thanks for your reply and WWF looks great... ...Show All
