Syed Faraz Mahmood's Q&A profile
Visual Studio Debugging VS2005 Dialog Box
I want's to debug what happen when VS2005 "Add new item" dialog box is click and what function were called when we create any file VIA this dialog box. What Can I do. When you click the Add New Item menu, VS 2005 shows a dialog with the item templates installed, scanning ItemTemplates folders like: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates C:\Program FIles\Microsoft Visual Studio 8\SmartDevices\Projects\ItemTemplates etc. which are also cached, AFAIK. When you select an item template, a wizard is invoked which adds the file to your project, or at least this was so in VS.NET 2003. The wizard typically receives a ProjectItems collection as parameter and it calls the AddFromTemplate / ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I broke the world!
Hello! I was just working on a map for my mapping program (3000x3000 pixel PNG). And it puked! It said that the width was too big. I'm curious what the max is. Thanks! Jason You will probably be ok with 2048x2048. If not do 1024x1024. Alot of cards currently can do 4096x4096, but apparently not yours. Anyways, stick to powers of 2 for your textures, 1,2,4,8,16,32 etc. ps- at least you didn't accidentally delete the internet. ...Show All
Commerce Server How can I do score propert of discount zero from programing
Hi , I have one query regarding the discount, while it calculates the discount in component Can we do the score of the discount to be zero before the "OrderDiscount" component to be run because in our custom requirnment some discount should not be eligible to apply. while an Order place, we first checks the eligibility of the discount from our custom database and if it is not applicable then this discount should not be applied. Is there any way that we could restrict the discount before run the "OrderComponent" discount.(Expression does not fit in Our requirenment) Thanks in advance Sachin Saxena Hi Max, Thanks for the reply but this solution does not work. Let's suppose a example: Ord ...Show All
Visual Studio Express Editions Why are some toolbox items disabled in VisualC#2005Express?
I have added some needed items in the toolbox, but they are not enabled. Why is that Ah - then I'd guess that System.Web is blocked because VCE does not do ASP.NET ( I realise you can use the controls outside ASP.NET ). Either way, it's obviously a VCE limitation. ...Show All
Visual Studio 2008 (Pre-release) Application.LoadComponent() for unreferenced assemblies
Application.LoadComponent() works well for xaml files that are inside referenced assemblies (ie. added as a project reference). I have a specific scenario where my assemblies will be stored in a subfolder but are not referenced. I still need to be able to call LoadComponent() to load the xaml files inside those assemblies. Is this possible or an unsupported scenario Note that my assemblies would be in a subfolder, relative to the application. I haven't been able to find a solution in the SDK docs. This scenario is a core requirement for the plugin architecture that I am building. Anyone dealt with something like this before Documented this discussion in a blog post, for my own quick reference: http://pavanpodila.spaces.live.com/blo ...Show All
Visual C# input data to website
Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. First let me say I really appreciate all your help ...Show All
Visual C# Calling C/C++ DLL function Entry Point Error
I have a dll that was made for C/C++ in Borland. The problem is that I keep getting an "entry point not found" error when I run the program. When I compile, I get no errors. I use DllImport like this: [DllImport("C:\\Program Files\\SPF\\SpfIIDll.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi, EntryPoint = "InitSpfII", ExactSpelling = true)] static extern unsafe int InitSpfII(char* cSpfCfg, char* cHardwareCfg); When I call the function, I do it to allow a char* by doing this: fixed (char* spfcfgpath = spfpath.ToCharArray()) { fixed (char* hardwarecfgpath = hardwarepath.ToCharArray()) { initValue = InitSpfII(spfcfgpath, hardwarecfgpath); } } I know that the function exists and I have the heade ...Show All
Software Development for Windows Vista Single ownership transaction problem
Hi, I have a state machine workflow project, and have recently changed the persistence service to specify single ownership by setting the instanceOwnershipDuration property to Timespan.MaxValue. Since then I've had to change the machine that I'm running the workflow runtime on. When I run on the original machine everything seems OK, but when I try to run the application on the new machine I get the famous "the transaction has alreay been implicitly or explicitly committed ot aborted" error, even if it's a brand-new workflow instance. Surely a new instance should run OK from the new machine And if this is intended behaviour, how can I reset the system (database.. runtime.. ) to allow the new machine to execute its own ins ...Show All
Visual Studio Changing databases in studio
I have two databases (SS1 and SS2). SS1 contains .Net 1.1 project and SS2 contains .Net 2.0 projects. When I open an instance of either studio, is there a quick way to change the database without having to open VSS05, open the correct database, then reopen studio and access it Thanks, Sam In VS you can just open the project from disk and it will be controlled using correct database automatically . No VSS needed here. In VSS File->Open Database will allow you to open another database without VSS restart. ...Show All
Visual Studio 2008 (Pre-release) How to show WorkflowDesigner in WPF Control
Hi aIl I want to know how to show WorkflowDesigner in WPF I think you are going to have to use the WindowsFormHost, which can be found in the WindowsFormIntegration assembly. (System.Windows.Forms.Integration) Best of luck. Brian ...Show All
Software Development for Windows Vista SequentialWorkflowRootDesigner in inherited workflow
Dear all, I've created a base sequential workflow and added a new designer like this: [Designer(typeof(NewDesigner), typeof(IDesigner))] [Designer(typeof(NewDesigner), typeof(IRootDesigner))] public class BaseWorkflow: SequentialWorkflowActivity { public BaseWorkflow() { } } public class NewDesigner : SequentialWorkflowRootDesigner { protected override SequentialWorkflowHeaderFooter Header { get { base.Header.Text = "Custom header"; return base.Header; } } protected override bool ShowSmartTag { get { return false; } } } In this base workflow i'll add some properties and if i'm not using any activities (white box model) i think it's possible to inherit from. That's exactly what i' ...Show All
.NET Development Tab Delimited Text File to DataTable DataType problem
Hi All, I have a problem that I need help with and it has to do with Tab Delimited Text Files and a DataTable so I hope I have the right forum. I have a program written in C#2003 that receives data via the serial port from a Pic microcontroller. The data is added to a text file in a comma seperated format. Extra fields are added to allow for manual anotations. I have a third party grid control for grouping the information in cool ways that needs the information stored in a DataTable. Because of changes in what I am doing, the files are not stuctured the same and sometimes store 5000+ fields. Currently I have code that will read the text file and seperate the records and individual fields and drop it into a two dimensional string ...Show All
Game Technologies: DirectX, XNA, XACT, etc. No Support For Initing A Window Handle As Display?
OK, I've just downloaded and went through the framework a bit already. I must say, this is REALLY GOOD!!! No more mashing around acquiring devices and such, everything just works smoothly. I'm delighted!! But then I found a problem. There are people who were using DirectX managed to create UserControls to display graphics and present data based on a user interface. As far as I can tell right now, the framework only supports creating a device as windowed, or fullscreen. Is there an option to specify a window handle that we can create the device with I know that doesn't port well to the 360 scenario but it's something that some of us do use, and after just a taste of what coding with XNA can do, I don't want to go back to the non X ...Show All
Visual Studio 2008 (Pre-release) typical proxy against channelfactory
Hello everyone, We are developing an application using indigo. We were using normal proxy as we should do with normal ws. But i have discovered ChannelFactory and i like it because you do not need to create a new proxy when things changes andis very easy when you have the same type in the client and the server. Well, what i would like to know is how channelfactory works - i haven't found it on internet. It generate a proxy asking for wsdl or it generates it from the interface It performs better or worse than proxys Thanks. Hi I talked about this here and here . Lemme know if you have further questions, please. Cheers, ...Show All
SQL Server Import works but no data? Part 2
Now I got a little bit further on my own. But, I have run into this issue with, "Not being able to import the data to the database". I can import the column headings, then that is were it ends. I was reading up on this and it made it seem as if you are to go back after you get the column headings. Then do the same to get all the rest of the data. But, for some reason the "Query or Copy" menu doesn't display to do the query action to import this data. Is there anyone who knows what I am talking about, please help.. I'm not able to catch if this is a continuous problem you have had previously, that helps if you can refer your old thread that was posted here. On the other hand confirm what is the edition of S ...Show All
