OhDuck's Q&A profile
.NET Development Dictionary versus SortedDictionary (Generics)
Is it true that the Generic SortedDictionary does not use hashing (like Generic Dictionary does), but instead uses vanilla comparisons of keys (i.e. binary search, logn time complexity) I ask, because a compatriot insists that both generic containers (Dictionary, SortedDictionary) use hashing. I think he is mistaken. hi, Both are implemented in the System.Collections.Generic . Details follows : Dictionary Generic Class and SortedDictionary Generic Class . ...Show All
Visual Studio Express Editions Creat Thumbnail, and View Image on Click
I would like to create a button or other object that would create a thumbnail of the image it represents. When someone clicks on it, I would like the larger image to display in a PictureBox on my form. I would appreciate any help anyone can give me, as I have not been able to get any of this to work... Thanks, i believe picturebox4_Click signature should be.... instead of PaintEventArgs, try EventArgs in regards for placing the other line of code I posted earlier, place that when the user clicks on the control when you wish to enlarge that picture and show it into the picturebox control :-) Either on a button click such as "enlarge image" or some other picturebox control where you are display ...Show All
SQL Server sql server 2005 dev edition error - unexpected error while Updating Installed Files
I am attempting to install SQL Server 2005 Developer Edition onto a Windows XP Pro SP2 machine, but unfortunately each time that I attempt to install I receive an error message in the summary log as follows: Product : Microsoft SQL Server 2005 Product Version: 9.00.1399.06 Install : Failed Log File : C:\Program Files\Microsoft SQL Server\90\Setup Last Action : InstallFinalize Error String : The setup has encountered an unexpected error while Updating Installed Files. The error is : Fatal error during installation. Error Number : 29528 There is probably a simple solution for the issue but unfortunately I am unaware of what it is I can’t tell if the issu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Object cache vs. GameComponentCollection
Can anyone tell if the GameComponentCollection is designed to simplify game object cache requirements I noticed that the space wars example seems to override this with screen.Render(). If it is supposed to, are there any forseeable performance impications I don't believe so. GameComponentCollection is just a collection of GameComponent classes - it has no special functionality of game object or resource caching. The reason you saw the screen.Render() override is because space wars uses a component to swap in different game "screens" - the main menu, the play space, etc. It doesn't really do any caching in itself - the screen component seems to act as a container for the rendering code, making it easier to swap in and ou ...Show All
Visual Studio Team System Hide projects from users who can't do anything in them?
We have dozens of team projects in our TFS server for a lot of developers. Is there a way to hide the ones from the users who can't do anything in these projects Is this the permission that controls this < permission name =" GENERIC_READ " class =" PROJECT " allow =" true " /> The [SERVER]\Team Foundation Valid Users group has this permission and every user belongs to this group directly or indirectly by default. Right now we do not hide projects that the user does not have permission to. We are tracking this as a product idea for the next version of the product. Thanks, Jeff McKune ...Show All
Smart Device Development "\\Storage Card\\" path name in China?
Hi Is the "\\Storage Card\\" path name the same all over the world or does it differ depending on language If so how does one get the current Storage Card path in runtime without using .net Many thanks, Martin Malek Hi Ilya I now use FindFirstFlashCard and it returns more than one flash card. I noticed that the first one is always the Storage Card but is there any other way to discriminate that it infact is a storage card and not something else Should I use FindFirstStore instead What other stores could it return Many thanks, Martin Malek ...Show All
SQL Server Lost Messages ?
Hi There What happens to messages that go to error I know that they are returned to the queue of the service that sent them, but the message it the queue is the error message and description. Transmission queue is empty. Where is the actual message that was sent In my case if the message went to error i must resend it. But there is no error when you send the message, transmission queue is clear, the error just comes back to the queue but i need the original message so that i can resend it after the error is fixed but i cannot find it anywhere Thanx Hi Remus Sorry for wasting your time, ever write sql with an obvious problem and you just never saw it no matter how many times you looked o ...Show All
SQL Server sql snake or similiar WORM
is there any worms specific to 1433 that are taking out servers right now That sounds like something well beyond just SQL Server and port 1433. If services are being stopped and restarted and then you are getting blue screens, something is all the way through at an admin level. Have you tried a basic scan using whichever AV product they are running Is there any way to get back into the machines after they blue screen such as last known good configuration or safe mode Is there anything strange in the event logs (system, security, or application) ...Show All
SQL Server Automating SQL Profiler
The powers at be have decided that they would like to automatically run a trace on one of our analysis servers when it processes a cube in the early hours of the morning. Now I have no problem creating a SQL Profile to run and store the results in a database table for them, but I have no idea how to automate it so that it runs everyday, any help would be greatly appreciated. My apologises for posting this in forums let's search in the internet with your subject. you will find a lot of articles. this is one of them. http://www.lazydba.com/sql/1__18318.html ...Show All
Windows Forms to get the row index of a gridview
hi, i want to get the row index of a grid view and i used the following code, Dim rec_pos As Integer rec_pos = Me .DataGridView1.Rows( "ORDERS" ).Index where orders is my table name But it produces an error [Conversion from string "ORDERS" to type 'Integer' is not valid.] any help is appreciable.thanx in advane. rgrds, rohit hi, what i'm trying to do is Private Sub Button5_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click Dim rec_pos As Integer Me .OleDbDataAdapter1.Fill(DataSet91) rec_pos = Me .DataGridView1.CurrentRow.Index DataSet91.ORDERS.Rows(rec_pos).Item( "S ...Show All
Visual Studio in VS2003 documentation we have 3 big modules
1/ - Developing with Visual Studio .NET - Visual Basic and Visual C# - .NET Framework -And Finally the MSDN part When should I ise each of them to learn .Net. And what scenarios pls. I get confused between all those pieces of documentation. 2/ Also when is a good time to go to the Articles or periodicals and quickstarts Thank you Should Microsoft put this section in VB and C sharp languages then: Visual Studio Language References For now, It s included in language references, in references in Developing with Visual Studio Thanks ...Show All
Windows Forms How to: Webbrowser NewWindow and Navigating equivalent to axWebbrowser
At first, I enjoyed the new webbrowser control but then I noticed that the args provided by the events NewWindow3 and BeforeNavigate of the axWebBrowser had not been implemented in the new control. Arg. Good news, the guys from Microsoft gave us the a workaround recently in C# and said they will publish a sample soon on MSDN. In the mean time, here is some VB.net code inspired from Microsoft's C# that will give you 2 new events and the args people like me were crying for. NavigatingExtended gives you the following args: - Url as string - Frame as string - Headers as string - Postdata as string - PostdataByte () as byte - Cancel as boolean (to cancel navigation) NewWindowExtended gives you the following args: - Url as s ...Show All
Visual C++ problem in retrieving "Time" from database using _RecordsetPtr
Here i am developing a application which require to fetch Time from database . But i am getting 00:00:00 AM as a time everytime. We are using MySql database. Code fragment is.... ======================================================== _variant_t vtValue; vtValue = RsSession->Fields->GetItem("StartTime")->GetValue(); COleDateTime d( vtValue ); sprintf( name, "%02d:%02d:%02d",d.GetHour(),d.GetMinute(),d.GetSecond() ); ======================================================== in "name" i am getting "00:00:00" ..everytime.. All the other values i am retrieving from ResultSetPtr are OK. Can any one tell me what is to be done ther .... Thanks in advance Using the debugg ...Show All
.NET Development How do you trigger another program or software from an existing C# program?
Hi, i'm very new to C# programming and i was hoping if someone could help me with this problem. I need to trigger a program/software from my existing C# program using a button but i don't really have an idea of how to go out abt doing this. I think that i'll have to look through the directory of the software in order to trigger it from my program. I hope i'm making sense here. Would really appreciate it if someone could provide some feedback. vannielou wrote: Hey guys, thanks alot! i'll try it out and see if it works. So sorry i have another silly qn to ask. I'm really new to this so plz forgive me! What do i put in the brackets Is it the directory/path of application i want to trigger Yes Com ...Show All
SQL Server Best practices of managing meta data
hi all, What are the best practices of managing meta data for the presentation layer of AS 2005 Because now we have to take care of all the hierarchy types, measure grouping and the folders containing those hierarchies and measures... regards, Mahmood Not sure I follow your question. The suggestions above are all regarding OLAP Database and OLAP metadata. You desing your cube and OLAP Database in BI Dev Studio and then you deploy OLAP database to Analysis Server.You can use source control in BI Dev Studio or generate XMLA scrip of the OLAP database off live server. Edward Melomed. -- This posting is provided "AS IS&q ...Show All
