oulisee's Q&A profile
Visual C++ OnNcHitTest' : redefinition;
Hello, I am attempting to convert a Visual Studio 2003 MFC C++ application using the UCanCode XD++ Library to Visual Studio 2005. It works great in VS 2003. Right now it is not compiling in VS 2005. What I am struggling with are the following errors, even after I have made the recommended LRESULT return value adjustments to OnNcHitTest. The cpp file is named FOSliderEdit.cpp. The .h file is named FOSliderEdit.h. Here are the errors (I don't know why UINT is even noticed by the compiler, I have redefined to LRESULT ) Error 1 error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CFOSliderEdit::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)' c:\cov10027291\dan\intellisys\ucancode.net_vs2005\ucancode.net software\xd+ ...Show All
Visual Studio 2008 (Pre-release) Bind Background to ColorAnimation
Hi, I have this ColorAnimation that I want to bind to the Window's background color (it's a SolidColorBrush), I've tried the binding exaclty as shown below, but it doesn't work and no error shows in the output window. <Storyboard x:Key="ShadowFadeClose" CurrentStateInvalidated="HideShadowPanel"> <ColorAnimation To="{Binding ElementName=wndMainParent, Path=Background.(SolidColorBrush.Color)}" Duration="0:0:3" Storyboard.TargetName="brdShadow" Storyboard.TargetProperty="(Canvas.Background).(SolidColorBrush.Color)" /> </Storyboard> Thank you Bruno Silva ...Show All
Visual C# Creating a Datatable from a ArrayList
I have a datatable and when i add the rows to it....I click my OK button when i click my OK button I add all the rows to an arraylist...then i loop thorough my arraylist and insert the values into my database.....How would one go about getting those values out of my database back into the arraylist and back into the datatable....I know how to put it in the database but i am kinda cloudy on how I would get it back out and into my datatable....any help with this i see thats better explanation. well the sqldataAdapter is used with connecting to and updating/filling results to/from the database, sql server. dataset/datatable is an in memory storage type object. it holds everything in memory until you close the app of course. you ...Show All
Windows Forms Removing Componets (exp Checkboxes )
If I wanted to lets say... have a few checkboxes right... and I wanted to remove the ones that are checked... how do I do that Like.. remove the checkbox right along with its value. Hi Dont forget that foreach isn't only loop what we have: int i = 0; while (i < panel1. Controls.Count) { CheckBox cb = panel1. Controls as CheckBox ; if (cb != null && cb.Checked) panel1. Controls.Remove(cb); else i++; } ...Show All
Visual Studio 2008 (Pre-release) Readonly dependendy property
Hello, I have defined custom readonly dependency property (below). I need to bind to it inside XAML (in my example it is bound to Label.Content), but it does not work... It looks like it never goes thru Get accesor, because in my custom dep. property is still default value... What is wrong Any suggestions Thank you RostaB My XAML: <Window x:Class= "Test.WindowTest" xmlns= "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x= "http://schemas.microsoft.com/winfx/2006/xaml" xmlns:own= "clr-namespace:Test" Title= "Test" Height= "300" Width= "300" > <Window.Resources> <Style TargetType= "Button" > <Setter ...Show All
SQL Server Inconsistent performance from queues
Hi everyone! I have a very brief question... I have 10 queues in my database and each of them are sent equal number of messages... There are instances where they execute/activate the stored procedures very fast but there are times where they don't, does anyone have an idea why this happens Thank you very much for taking the time to read my post. :) This is the SQL code for sending the message: BEGIN TRANSACTION ; DECLARE @message XML ; SET @message = '<root><ctr counter="' + CAST ( @Ctr AS nvarchar ( 20 )) + '"></ctr></root>' ; DECLARE @conversationHandle UNIQUEIDENTIFIER ; BEGIN DIALOG CONV ...Show All
Visual Studio <list> bug in Sept CTP vs2005 template
The main_sandcastle.xsl in (C:\Program Files\Sandcastle\Presentation\Prototype\Transforms) selects as follows <xsl:template match="list[@class='bullet']"> <xsl:template match="list[@class='number']"> <xsl:template match="list[@class='table']"> While Msdn ( http://msdn2.microsoft.com/en-us/library/y3ww3c7e.aspx ) tells that the attribute name is "type" and not "class" Thanks Simon. We will be providing a technical refresh for September CTP by the end of this week to address this issue. Anand.. ...Show All
Visual Studio Team System WebTest showing no errors, but results missing DB changes
I've just been introduced to the WebTest features of VS2005 to crack a problem we've been having with its use on our company's ecommerce store. It seems that recording a complete purchase life-cycle, from entry page to check-out summary, everything appears all green when I re-play the recording. But when I check the database, only the recording session actually gets recorded in the database. None of the play-backs actually result in an insert of data into our database. Reading through the technotes I have found so far, I see a lot of suggestions for when you get errors on the play-back, referring to client-side JavaScript redirects, dynamic data and various things like that. But in this case, the pages coming back are different than ...Show All
SharePoint Products and Technologies LOL: No Knowledge about Knowledge Network
Just thought it was funny that the "Knowledge Network" had no posts and thus no Knowledge about it :-) Steve, Agree completely with you... very nice product and a nice add in to your search capabilites. Sizzle, Im not sure on the exact date of RTM so to speak but with regards to the Technical Preview statement. Yes its true they have backed away from a full blown support model for this release but..... and this is a good but.... I have been working with this product for some time now and I have never encountered any issue on the server side. It sits very nice and quietly and does what its supposed to do. Very little is needed in the way of support for this from what I have experienced. So the question is... do you t ...Show All
Windows Live Developer Forums Akonix bot online but no answer
Hi, I developed my bot with Akonix L7 Builder and submitted to improvecenter.com some days ago. My bot is now online but doesn't reply to my messages. When I try to open a conversation with it from my work computer (with linux & gaim) my bot appears online but gaim says: "...@hotmail.com: The user is not online" I've tried to contact them by mail and their forums but have had no answer yet. Has anyone found a similar problem Are there any bots hosted at improvecenter.com Thanks, L The bot is provisioned for the contest, but this problem started last week and not when it was submitted to the contest. I know some bot platforms make the bot online and their platform is like a proxy you use to c ...Show All
Visual Studio Team System Branching advice
Hello All, I have a question about branching and TFS. Suppose I have the follow folder structure under source control: FolderA / \ FolderB FolderC / / \ FolderD FolderE FolderF Suppose FolderD contains some libraries I want to work on, but not on the mainline (trunk). This work will take a couple weeks and so I'd like to work on them in small increments, say checking in every day, and thus have a record of my work (and versions in source control I can go back too and diff etc...). I decide I want to branch FolderD for this reason. I create the branch and call it FolderD-branch and so that folder gets created as a siblin ...Show All
Visual Studio Team System FxCop run "Out of Memory"
Hi all, when running FxCop on a Assembly sized over 8 MB, FxCop run "Out of Memory". Any ideas out there Thanks! Hubertus Hello David, FxCop crashes in different ways: When I expand the assembly tree (Target window)), following messsage go to the output window: Eine Ausnahme vom Typ System.OutOfMemoryException wurde ausgelost. When I run "analyze", FxCop exit sometimes without any messages, sometimes just-in-time-debugger started with message: Unbehandelte Ausnahme ("System.OutOfMemoryException") in FxCp.exe [3708] Best regards Hubertus Wurm ...Show All
Windows Forms How to find computers domain
Hello, I'm trying to find the full domain name of the current computer to use in the constructor of the System.DirectoryServices.DirectoryEntry object. It seems as if you can use: System.Security.Principal.WindowsIdentity.GetCurrent.Name and parse it Or System.Environment.UserDomainName however that only gives you the 15 character short domain name. Is there any other way to get it without using an API call Thanks. Hi, Ryanhav Try this piece of code: System.Net.NetworkInformation. IPGlobalProperties prop = System.Net.NetworkInformation. IPGlobalProperties .GetIPGlobalProperties(); this .label1.Text += prop.DomainName ; Hope this helps.Regards. Ye ...Show All
SQL Server Support for NVARCHAR(MAX) and VARBINARY(MAX)
It would be nice if SQL Server Everywhere could support NVARCHAR(MAX) and VARBINARY(MAX), even if they would just be alias' for NTEXT and IMAGE. This would somewhat simplify the interoperability with SQL Server 2005 (i.e. no need to have different scripts for each database type). Gerrit Thanks for the suggestion and I will take it forward and let me say what they say. However, here are my points on the problem which you have mentioned: This is NOT the ONLY difference for T-SQL between SQL Server and SQL Server CE. So, just fixing this does not really make your T-SQL script portable. If it has to be portable then you are expected to use what is supported by SQL Server CE and SQL Server both. So I rec ...Show All
Audio and Video Development namespace support
Hello Everybody Can some one (from microsoft i suppose) guide about the extent of namespace support they have provided or will provide Thanks I'm not sure exactly what you are asking, but here is some general info. HD DVD requires that XML documents are well-formed and valid, but players must IGNORE any custom schemas location information, so they won't download and validate against a schema. The only schemas it "knows" about are the ones in the spec (core, state, style, etc.) that are hard-coded into iHD. This allows you to define your own attributes etc. in your own namespace (assuming you add the right prefix in the root node) without clashing with any pre-defined attributes. The XML APIs are all namespace-aware ...Show All
