barkingdog's Q&A profile
.NET Development ANNOUNCING: Xml Notepad 2006
Download, including source code, from: XML Notepad 2006 Design doc at: http://msdn.microsoft.com/library/en-us/dnxmlnet/html/xmlnotepad.asp Handy features include: Tree View synchronized with Node Text View for quick editing of node names and values. Incremental search (Ctrl+I) in both tree and text views, so as you type it navigates to matching nodes. Cut/copy/paste with full namespace support. Drag/drop support for easy manipulation of the tree, even across different instances of XML Notepad and from the file system. Infinite undo/redo for all edit operations. In place popup multi-line editing of large text node values. Configurable fonts and colors via the options dialog. Full find/replace d ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "Trail" effect with sprites.
Hi all - I'm currently developing a GUI system, but I've come to testing the first stage of it and I'm finding a strange problem. When in the game Update() method I tell all my Controls (my custom class) to update their coordinates and I draw them in turn in the Draw() method. Now when I have one Control overlayed on another, I see that the overlayed Control looks like its "trailing" after its parent control, trying to "catch up", even if you drag it fairly slowly. (The effect *does* disappear but only when you drag it about a few pixels per second). Now I believe this has something to do with the fact that I'm using SpriteSortMode.Immediate. Problem is, I need to use this SpriteSortMode because I'm setting SampleStates. I tried ...Show All
.NET Development Bad Data Error with Decryption
I'm using TripleDESCryptoServiceProvider to encrypt and decrypt Xml files that are generated on the fly in two different places. In one part I'm allowing a user to download file, an XmlWriter writes to my CryptoStream which writes straight to the Response.OutputStream. Before any writing I call the following Response.Clear(); Response.AddHeader("content-disposition","attachment; filename=myXml.xml"); Response.ContentType = "text/xml"; Response.BufferOutput = true; The browser prompts for download, and everything is fine. I can then upload the file and have an XmlReader read from my CryptoStream which reads from FileUploader.PostedFile.InputStream and everything works fine. Now in the other place, I have an XmlWriter write to my Cry ...Show All
Visual Basic Version control
Hi, when I build and publish a VB.net 2005 program, the version number is incremented automatically - is this held in a variable anywhere that I can use to display within my application Perhaps you are looking for Application .ProductVersion Hope this helps. ...Show All
SQL Server COLUMN GRAND TOTALS ARE INCORRECT FOR CALCULATED FIELDS IN VIRTUAL CUBE
Hello, We have migrated some cubes from sqlserver 2000 to 2005 with success. The applicaticon contains one virtual cube made up from 6 other cubes. On the virtual cube level we specified calculated fields. The calculation contains elements from different cubes which shares dimensions. while browsing the cube from within sql server management studio or from excel using OLEDb 9.0 Provider we discovered that the column grand totals for these calculated fields are incorrect. The row grand totals are fine. Searching the internet (google) i have found a hotfix describing the problem SQL MSAS 2005 ( http://support.microsoft.com/kb/918251 ). We have installed this hotfix on top of SP1 but without results. Is somebody familiar with this ...Show All
Visual C++ Using .rc files in multiple dll
Hello, I have the following scenario: I have a dll which is responsible for all of my resources and it exports them. However, I want another dll which will have it's own set of resources (i.e. dialog) that it can create and instanciate. I can't have .rc files in each dll with resources in them - the app doesn't find any of the resources but the ones in my exporting dll. Any ideas Hello, To find resources from another dll you have to change the resource handle (see AfxSetResourceHandle function). When you need to use resources from the dll responsible for the resources, you can set the resource handle to this dll, when you're finished you can set it back to your current dll. Hope this help, Richard ...Show All
Visual Basic ERROR:'icontainer' is ambiguous in the namespace 'System.ComponentModel'
My VB .Net project was running with Visual Studio 2005 when all of a sudden, one day - when I opened the project files I get the following 2 errors for all the designer.vb files for the forms in the project 'ISupportInitialize' is ambiguous in the samespace 'System.ComponentModel' 'IContainer' is ambiguous in the samesapce 'System.ComponentModel' I would deeply appreciate any help with this. thanks. .NET Pro, In MSDN, the explanation for this problem is: You have provided a name that is ambiguous and therefore conflicts with another name. The Visual Basic compiler does not have any conflict resolution rules; you must disambiguate names yourself. I suppose you overload the two inte ...Show All
Software Development for Windows Vista COM Component Development with ATL
In recent work, I found some COM components written in ATL cannot run correctly on Windows Vista. Some members of ATL classes which can be successfully called on Window XP return error code on Windows Vista platform. For example, the failure of calling CAtlServiceModuleT.ParseCommandLine() result in unable to register Windows system service. My platform is Windows Vista RC1 build 5483, Visual Studio 2005 Team Edition and Windows SDK Beta 2 build 5483.1.1 (achieved from http://blogs.msdn.com/tomarcher ). I wonder whether ATL is supported in the new platform. If so, what is needed library and how to configure the IDE. If not, is there any other technology to replace ATL I tried to implement an out of process server using ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Impossible to deploy Managed DirectX Application
I've developed a DirectX 9 app. using dec 2006 update and so far, I've been unable to deploy it to a second machine. This is a windowed app. created with managed DirectX and C# in VS.NET 2003. These are the steps I've followed trying to deploy it: * Make sure that the framework (v1.1 is installed). * Install the redist Directx that came with my installation of the SDK on the target PC (WinXP Pro SP2). * Make sure that DirectX3D is supported and enabled using dxdiag. * Create a deployment project in VS.NET, that automatically includes the following dependencies: Microsoft.DirectX.dll, Microsoft.DirectX,Direct3D.dll, Microsoft.DirectX.Direct3DX.dll. * Install the setup project on the target PC. Results: I just get th ...Show All
SQL Server Data flow task multiple destinations
Hi, The further i get with doing my current SSIS package the more i am starting to wonder about best practices and performance. My current package loops through CSV files in a specified location and extracts events from these files. Each file contains multiple events which are a mixture of different types. Depending on the event there are a different number of comma seperated values. In the package i firstly set each event to one column seperated by a comma delimeter. I then create an array for the event which is split by the delimeter. In a script i weed out all elements of the array that are common to all events and set the remaining events to another array. After some processing i come to my conditional split transformation which splits ...Show All
.NET Development Error : in response content type
Error : in response content type i am having the following error when i am calling webservices using the Wlan only , the webservices are working when the 4.2( i am using VS.Net 2005 with compact framework 2.0) ce device is connected with active sync (usb cable) Error : client found response content type of 'text/html' but expected 'text/xml' i found the solution myself there was an error in connecting to the w-lan and the error was in html/txt type ...Show All
Internet Explorer Development Three problems with IE 7 - rollovers, cut-off text and cut-off images
Hello all, I thought I'd finished designing a new site which works fine in IE6, Firefox 2, Opera and Netscape - until I tried it in IE 7! Problem 1 (most important) - Tabbed CSS menu moves on rollover URL = http://www.toucanmusic.co.uk/test/index.php CSS = http://www.toucanmusic.co.uk/test/toucan.css The tabbed menu at the top works fine in all other browsers I've tried, however in IE 7 the menu initially loads up correctly then, when you rollover the tabs, a white gap appears between the tabs and the blue bar underneath. Refresh the page once and the gap remains, but refresh it a second time and it disappears! Not being an expert at CSS, I'm using a variation of the "fitted doors" menu found at http://www.cssplay.co.uk/menus/do ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reloading the same content
I am having an issue reloading the same content. I load a Texture2D for the first time, and everything is ok. I dispose that Texture2D and load different data into the same variable, and everything is ok. I dispose the 2nd Texture2D data and reload the 1st data into the same variable, and the Texture2D.IsDisposed value is true. This happens whenever I attempt to reload a Texture2D after having disposed it earlier. I am not sure if this is expected, but it seems to me that it isn't. Any help would be appreciated. That's true, I don't know why I didn't think about using a seperate content manager for each of my streamed chunks. As far as 'de-serializing' the content myself. Can you explain a bit more what ...Show All
Visual Studio Team System Test Manager dropping and duplicating tests from the list
After having some serious problems with Test Manager spontaneously dropping and adding test (for example, tests will suddently show a "Test [TestName] does not exist in the test list" I tried to find anyone else that had a similar problem. After some searching, I came across http://kjellsj.blogspot.com/2006/04/vsmdi-file-weak-spot-of-vsts-test.html which describes the problem we're having to a tee: In particular, Kjell-Sverre's describes the problem that they [...] from time to time get "The test 'TestName' does not exist in the test list. It may have been moved, renamed or deleted". Yesterday, the 'Test Manager' showed all tests duplicated in the test lists. Today, another developer saw just some chinese characters when openin ...Show All
Windows Forms Refilling a datagridview with fewer Col
I have two queries fired by buttons query1 has 5 col, Query 2 has 3 if query 1 is ran first dgv1 has col 1, 2,3,4,5 then when I run query 2 I stll see col 4,5 it works fine i see a col count of 5 I have tried to use the dgv.col.clear but the col count keeps coming back as 0 after the myadapter.Fill(table) dgv1.DataSource = table when there should be 3 col's (on the second query) (i am using the dgv1.AutoGenerateColumns = True already doing that Dim sqlstr As String = SelSQL Dim myadapter As New SqlDataAdapter(sqlstr, connstring) table.Clear() myadapter.Fill(table) lblRec.Text = "Records Found: " & ...Show All
