catweazle's Q&A profile
.NET Development How to check the existence of object in an arraylist?? - in Visual C#.net
Hi all, I have created one arraylist which contains no. of objects of a particular class. At the runtime i want to check whether a particular object is exists in the arraylist or not. I tried Contains method of arraylist. But it returns false. Can i check only the particular field existing in an object from an arraylist I m struggling for a solution for the past 2 days.. bt i didnt get the solution. e.g. // this property returns a arraylist which contains objects of 'Servicedetails' ulist = service.ServiceDetails; I am using a gridview which contains a set of service details. based on the selected item in the grid create a temporary object and assinging the values to the object and i am checking whether it is existing in the ar ...Show All
Visual Studio 2008 (Pre-release) Trouble getting a WCF return a collection to a .NET 2.0 client
hi all, Can we return a strongly typed collection from a WCF method to a .NET 2.0(ASMX) client. Thanks Kiran. hi Michele Just wanted to know if you wer able to look into the source that you received. I am also facing the similar issue. My issue is 1) I am have a base entity class marked with Serializable and DataContract attributes. 2) EmployeeEntity is derived from this entity class. This class is also marked with Serializable and DataContract attributes. 3) EntityCollection is a base class implemnting Ilist and ICollection. This collection base class is also marked as Serializable and DataContract attributes. 4) Employees is a collection derived from this Ent ...Show All
Visual Studio Visual Studio 2005 and Source Code Control
Hi all, I'm starting a new set of projects mainly done in Visual Studio 2005 (VB and C#). I want to use a source code control but I don't know which one to chose (open source). In VS6 I used to use CVS but I don't know if it's a good choice for VS2005. Lastly I've heard many things about SVN but I don't know its behavior within VS2005. I'd like to know your recommendations/choice between CVS and SVN. Also, if you definetily preferer SourceSafe, I'd like to know why and if you have compared them. Thanks in advance, Marc Soleda There are not very many CVS and SVN users here. (I would definitely prefer SVN over CVS myself.) You might want to ask on the forums dedicated to those products. ...Show All
Windows Forms Child components in design time
Hello, I created a custom component. this component exposes two "ImageList" properties. I would like to make this two ImageList accessible in designer. For example, I create one MyCustomComponent on my form, then I create one ListView on my form. I would like to assign listView's SmallImageList property to MyCutomComponent.FirstImageList. I can do this at runtime, but I think it is possible at design time. I try to implement IContainer and INestedContainer but it is not solution. Thanks for your help ...Show All
Visual Studio Express Editions VB.NET-Deployment (UNC)
Hello! I know to go through the 'Publish' Wizard to "setup & deploy" my VB.NET VBE application. However, where it prompts for the path that the app will be loaded from, what is/does the 'UNC' need to be set to Thanks in advance... Thanks for the info!! Another question on this... So, I go with the CD or DVD installation type... When I come to the "Where will the application check for updates " screen, do I need to use the "no update" option or (i.e. as in playing with the app locally) can I use a path to check, here Thanks in advance... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX 10-Vista
I owe a computer with W. XP.I'm going to upgrade it to Vista.My question is if directX 10 needs only Vista to run.My system is fueled by ATI radeon x1600 pro.Do I have to change it or just have Vista hmm, i'm not sure. Graphics cards have nothing to do with your processor. If the card fits in your pc it should work. If intell graphic cards would only work on intell based systems they would loose a lot of customers cause most gamers use AMD. Its just a brand. If the intell DX10 compactible card will be low budget i hope they work on AMD cause i have amd myself and a low budget for these kinda things :) ...Show All
Visual C++ Decorations on C++ DLL function declarations really needed?
I used the _stdcall decorators on the Visual C++ function definitions and declarations, but I couldn't get communication between the DLL and the Visual Basic application that was trying to call the functions of the DLL.. When I removed the declarations from the VC code almost completely (all but for the DLL_Main function definition), it worked fine. Is there any disadvantage to using this approach Everyone I communicated with about it , including my boss and people that answered the MIcrosoft help posting that I put up, stated that you have to use those decorations. Why is that It works fine without it so far. My boss will be back from travel tommorrow. I was hoping to find out today so I can make ...Show All
Software Development for Windows Vista Single-instance DCOM server problems with high/low integrity levels
I am working on an application that employs a single-instance DCOM server. The application works fine on all other versions of Windows except Vista. There is a strange behavior that I observe on Vista in regards of the instantiation of the singleton COM interface if there is a difference between integrity levels of the server and client applications. The single instance is accomplished by having the singleton interfaces declared with DECLARE_CLASSFACTORY_SINGLETON ATL macro. Additionally, there is a code in the application that ensures only one instance of application is running by utilizing a named mutex. The application checks if the mutex exists, exits if it does and stays running otherwise. The scenario of the problem I pbserve is the ...Show All
.NET Development Convert to TIFF image.
How to convert a PDF file content to tiff image using C# code Thank you Joris Arits . is it possible to convert 1) PDF file byte arry 2) byte array to image 3) image to PDF file i am using PDF4NET. if you give any sample code snippet means very much helpful to me. Thanks & Regards Seetaram.C ...Show All
SQL Server Deploy packages to an MSDB subfolder
In SSIS you can create subfolders in the MSDB folder. However, when deploying a SSIS solution to the server, it seems you cannot specify a subfolder. When selecting MSDB as the target, all packages in the solution end up directly underneath the MSDB folder. Is this a simple fact of life, or am I missing something here Is there a way to deploy a SSIS solution to a certain MSDB subfolder I really would like that to keep my packages organized. Thanks, Hans Geurtsen. When you create the subfolder in msdb, you can rightclick on the folder and choose import package. thats the only way i find to get the files in that folder (you can rely on serverstorage as well here) ...Show All
Visual Studio Automation Events in a Package
I'm trying to capture debugger events through the Automation model from a VS2005 Package like below, and its not working, any suggestions why _dte2 = (EnvDTE80.DTE2)Package.GetGlobalService(typeof(SDTE)); EnvDTE80.Events events = _dte2.Events; DebuggerEvents debuggerEvents = (EnvDTE.DebuggerEvents)events.DebuggerEvents; debuggerEvents.OnEnterRunMode += new _dispDebuggerEvents_OnEnterRunModeEventHandler(this.OnEnterRunMode); Thanks, Grem Hi Grem, This is an oft asked question in this forum, though I haven't seen it recently. The problem is that your debuggerEvents variable is going out of scope, when this code exits the function it is in. You need to declare that debuggerEvents variable as a member of your addin (or ...Show All
Visual Studio 2008 (Pre-release) Wcf error when return huge data
I have a operation contract return byte[] as result. It works correct on array don't have too much byte in it. But when I return a array which have 547872 bytes, the client can't receive the data and timeout.The same byte[] works well on ASMX. Is this a bug or design consideration Can any one give me some advice There are the attributes ' maxReceivedMessageSize ' and ' maxBufferSize ' that can be set for a binding. Try giving them a value greater then your array which causes the error... ...Show All
SQL Server Why the plan guide with OPTIMIZE FOR query hint for the parameterized SQL statement doesn't be applied?
1.create a plan guide sp_create_plan_guide @name = N'AppendixPlanGuide', @stmt = N'SELECT p.Name AS ProductName, v.Name AS VendorName, p.ProductLine FROM Production.Product p, Purchasing.ProductVendor pv, Purchasing.Vendor v WHERE p.ProductID = pv.ProductID AND pv.VendorID = v.VendorID AND p.ProductLine = @P1 ORDER BY p.Name, v.Name', @type = N'SQL', @module_or_batch = NULL, @params= N'@P1 nchar(2)', @hint = N'OPTION (OPTIMIZE FOR(@P1 = N''M''))' 2. execute the following sql with value 'S' in the query editor SELECT p.Name AS ProductName, v.Name AS VendorName, p.ProductLine FROM Production.Product p, Purchasing.ProductVendor pv, Purchasing.Vendor v WHERE p.ProductID = pv.ProductID AND pv.Ven ...Show All
SQL Server What is the separator of sql statements
hello. A question please. What is the separator for sql statements in SqlServer I'd want to write many statements and then depending on the cursor position, to execute it. Thanks... You can Join the tables togteher if you have a unique ID. like follows:- select * from (customer left join master on unique ID) ...Show All
Visual Studio 2008 (Pre-release) reproduce DWM technology
Hi, As I understand, the DWM run as a full screen WPF application that “captures” the rendered output of each application and it redraw each of them. It sounds simple but probably I miss something. Is it possible to capture the output of running applications, convert it and manipulate it with vector transformations thank you. - the DWM is unmanaged code. It therefore does not use WPF. It uses the lower-level MIL APIs, which incidentally are not public (at this stage). What happens, is that when applications ask for a handle to the screen to draw on (as they would do directly in XP), they are now given a handle to a surface to draw on instead. That surface resides in memory. DWM has algorithms built in, so it knows when ...Show All
