suryany's Q&A profile
Visual Studio 2008 (Pre-release) Condense XAML
Hello, I have a fairly large xaml file containing some vector icons and would like to reduce the size of the file. I was thinking if I could centralize the common brush resources used in each icon it would reduce the file size, and was wondering if such a tool existed to parse the xaml in this way. The reason behind this is because I have a clickonce deployed xbap, and would like to reduce the size of the assemblies needed on the client as much as possible. Any other suggestions would be welcome. -David Yes, the baml of the xaml is compressed quite a bit, but this particular xaml file contains many vector icons. The xaml file is 7.5 megs, and the baml is 5 megs, which is why I would like a tool to ...Show All
Gadgets Sidebar and gadgets in XP
Hi Is it possible to create a sidebar and gadgets for previous versions of Windows ie XP and 2000 thanks bigbadbubba wrote: It would be nice if they would support gadgets on XP. If not, I'll end up having to use either Google or Yahoo. If you've got a copy of Vista, you can already run Sidebar on XP with VAIO . ...Show All
SQL Server Collapsing Three Rows Into One with T-SQL Challange?
Hello, I am wondering if someone has any good ideas how I could concatenate values in column 7:30- 9:50 so that I would have one row and a value: MTTHFW. Or even if it is possible having this in logical days of a week order : MTWTHF. Thanks a lot for any help! Building Time Room # 7:30- 9:50 Engeneering 7:30:00 AM - 9:50:00 AM 201 MTTH Engeneering 7:30:00 AM - 9:50:00 AM 201 &n ...Show All
Software Development for Windows Vista Error while running application on VISTA
we are developing some multimedia application, everything is working fine on XP and 2000, but on Vista I'm getting the following error when I'm calling a COM server method with a BSTR parameter: "Duplicate Memory Free operation. Get a stack trace and report bug against the calling app (not against OLE Automation). File: d:\rtm_edw\com\oleaut32\typelib\oautil.cpp, line 602" Anyone could help me Robert Bacs wrote: I tried various combination, without ::SysFreeString in the COM server also in the main application, but I'm getting the same result. Below is the the code that works on XP and 2000. STDMETHODIMP CComClass::SetUrl(BSTR newVal) { AFX_MANAGE_ ...Show All
Visual Studio 2008 (Pre-release) Best approach to overlay 3D effects on controls
Hi, I am looking to componentize some of the 3D effects like water ripples ( http://pavanpodila.spaces.live.com/blog/cns!9C9E888164859398!141.entry ) so that I can overlay them on any control. The texture for the 3D effect would be picked up from the VisualBrush of the control. A simple approach is to overlay the Viewport3D on top of the control, play the effect and then remove the Viewport3D. Using Attached properties I could associate the effect with the control. If anyone has tried something similar, I would love to be educated. Thanks. Pavan The adorner layer might indeed work, though an alternative would be to simply ensure that the final child in the list is a panel (Canvas, perhaps ) of your choosing, and to then place the V ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Auditioning not working on Windows
Using the XACT GUI, I have been unable to get anything to play through auditioning. I start and connect to the XACT Audio Console, get no errors, but the sounds just don't play. The in-game sound works fine. Anyone else experience this My audio works fine for all other applications. I am also getting an error that says "Could not connect to Windows Auditioning Server". I am using the August 06 SDK. I get the error when I try to play my sound in the sound bank. I used your default "Basic" tutorial to generate my first Xact file. I am new to your software, so I do not know what "The Auditioning Console" is. Please advise. ...Show All
Visual C++ How to read the Link Error message?
Hello all: I find it is quite hard to understand the Link Error(I use VS. Net 2005 Professional). If I include the following operator member function in the file "Triangle.cpp" rather than in the file "Triangle.h". inline bool Triangle::operator==(const Triangle &rhs) const { return (_length == rhs._length) && (_begin_pos == rhs._begin_pos); } Then call it by using the following statements: Triangle t4(1, 2); // initialize _length as 1 and _begin_pos as 2 Triangle t5(1, 2); if (t4 == t5) cout << "equal " << endl; else cout << "not equal " << endl; I will get the following build errors: ------ Build started: Project: TestOne, Configuration: Debug W ...Show All
Smart Device Development Multi-XIP regions to minimize ROM
I'm trying to use Multi-XIP regions to minimize the size of the nk.bin and leave more RAM for application program. To optimize the size, is it necessary to use multi-regions, instead of only using one region From my observation, I cant see any significant improvement of the Free RAM if I use only one region. You’ve mentioned you have NAND flash, is that correct AFAIK XIP is only possible with NOR flash. With NAND you have to load flash content into RAM so it can be executed. It probably can be paged but no XIP. ...Show All
.NET Development .NET Exception handling - a step backwards from VB6?
I don't know if I just don't understand .NET's error handling or what, but it's pretty clear that there's no such thing as resume, or resume next. Finally is worthless for this because unless you know the exact line that the error occurred in in the Try, how are you going to know where to resume in the Finally. It seems that no matter what exception occurs in .NET, there really is no such thing as "Handling" it. If Sub A() calls Sub B() and an error occurs in Sub B(), then your code will leave Sub B() with the remaining lines unexecuted and return to Sub A(). What is Sub A() supposed to do, other than continue on as though Sub B() was never called. If Sub B() rethrows the exeception to Sub A(), well, then Sub A() is in the same dilemm ...Show All
Visual C# Data structures in C#
Hi, I need some advice on the data structures to use in C#. My need is to construct a something like a code syntax tree. what would the embedded data structures in C# to use so as to ensure memory optimisation and run time efficiency currently, stacks/lists/ dictionaries are my choice of options. If any experienced C# developer would give me some sound advice, I would like to hear from you. Thanks I am already using Lists. should I build my tree using breadth first or depth first approach the choice of a stack enables depth first but the pop and push portion is rather taxing on the efficiency performance. do you have any advice or recommendations ...Show All
SharePoint Products and Technologies Auto Permission Granting
Is there a way of automatically granting users existing a list permission to access the site Example: Lets say that we have a list of employees information. The list contains general information of all company employees. If a new employee is created in this list, he/she should automatically be granted permission to the Employees site. Thanks in advanced. Hi, The solution you describe really depends on what version of sharepoint you are using and how authentication is being used. You will have to deal things like which authentication provider is used, if you can use eventhandlers, etc. Can you give some more information about these things Grtz, Mart ...Show All
Visual Studio Little trick: Run solution in Exp hive via 'Send To' menu
Hi, Maybe this trick will help you to save time... Create a shortcut in C:\Documents and Settings\<your_account>\SendTo\ directory and set "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /rootsuffix Exp as a location of item. That's all - now you can Send any .sln file To be opened with devenv in Exp hive! Thank you, Carl! But your reply is not an answer because there is no question posted... So I 've unmarked it. ...Show All
Windows Forms Need help getting data from a cell
I have been forced to dive head first into .NET recently, and I'm a bit overwhelmed. I have created a datagridview on a form, and I have bound it to a table in my SQL database. The data all populates fine. What I want to do is retrieve the value of the first column of the row I have selected. I've been looking all over MSDN, and the amount of methods on just the datagridview class alone makes my head spin. Can anyone help me out here I think I'm making this harder than it really is. I tried doing something like: string id = dataGridView1.CurrentRow.Cells[e.ColumnIndex].ToStrong(); That doesn't work. I tried a couple other things. Do I need to construct a for loop I love what I'm seeing with C# and .NET, as this is my first experien ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Games within a IE brower
Not real sure if this is a new thread or not, but is it possible to create a game (actually more of a simulation) using the XNA game studio that would run in a browser window Does not necessarily have to actually run from a online web server, just be browser based. Thanks Ok, maybe a better way to ask the question, is there a way to compile a game and have it sitting on one of the new U3 flash drives and execute from within the framework of the U3 operating system. My questions come about due to trying to determine a venue to create training simulations where nothing can be installed on the (gov) PC. So my development environment has to allow for one or the other, browser or the new U3; and at this time I'm not eve ...Show All
SQL Server SQL 2005 Cannot Drop User
Hello, I am new to SQL 2005 and I am trying to drop a user from a database called prod. When I try to delete the user I get the following error message: "The database principal has granted or denied permissions to objects in the database and cannot be dropped." Any help would be greatly appreciated. Thank you. I pretty much have the same problem but I get this error Msg 102, Level 15, State 1, Line 0 Incorrect syntax near 'SEND...'. when I put in this command ... REVOKE SEND ON USER :: SQLDependency_Subscriber FROM SQLDependency In my case I can't delete SQLDependency because it's granting the send permission to Sqldependency_subscriber. Any suggestions ...Show All
