adroit_91's Q&A profile
.NET Development Dictionary Dilemma
On the following site: http://www.devx.com/codemag/Article/32647/0/page/3 ...I'm told about the Dictionary template, and then the article gives this caveat: "If you need to sort the dictionary entries by key, you'll be better off using the new SortedDictionary class, which maintains a sort order on key." Well MAJOR DUH!!!! My whole point in reading that article was to determine why I would ever want to use the Dictionary template instead of SortedDictionary. And so I'm still wondering, when would anyone EVER have a need for a non-sorted dictionary Regarding this plain "Dictionary," there must be some esoteric piece of knowledge I'm missing. Help! You'd want to use Dictionary because it's faster than Sor ...Show All
Visual C++ Visual C++ Bitmaps and Graphics
I would first like to appologise if this thread /question is in the wrong section I am working on an application that has a large bitmap / graphic imported onto it. This graphic is going to be the user interface. The graphic contains a small number of buttons which obviosly I cannot do anything with at the moment because they are part of the bitmap. Each button has a circle that is supposed to be an LED. So when the button is pushed the LED lights, and when it is pushed again the LED switches off. What I have decided to do is create a Panel for each of the areas where a button is meant to be; and have 2 graphics for each of the buttons: one with a dark green circle, the other with a light green circle. I will (hopefully) chang ...Show All
Software Development for Windows Vista Appverifier and VB6
Hello, we are currenty in the certification process for the "Certified for Windows Vista" Logo Program. One Test Case is: "Verify application does not break into debugger with the specified AppVerifier checks". We discovered that the Debugger (WinDbg 6.6.0007.5) stopps when a VB6 application uses the "On Error Resume Next" Exceptionhandling (I know that this is not good coding, but it is valid). At runtime, the exception is handled by the VB6 Runtime and everything is OK. When using the debugger, it reports an error at the exception handling of the application. Sample: Private Sub ExceptionTest() Dim myRecordset As ADODB.Recordset On Error Resume Next myRecordset.Close ' Debugger breaks here! ...Show All
Visual Studio Express Editions dividing by zero
i keep being warned that i might be dividing by zero. the way my program is set up this cannot happen but i can't get rid of the warnings. i can't work out how tho use DividingByZeroException. Oh, and regarding how to *use* DivideByZeroException... you would not usually do so. Your program hopefully is structured in such a way that you can catch any unhandled exception, log error information, and exit slightly more gracefully than via MS' dialog box saying the process has crashed. The DivideByZeroException would basically alert you that you'd forgotten to check if something was zero where you're doing a division, or that some data that should never be zero is in fact zero. You'd modify the program a ...Show All
SharePoint Products and Technologies Sudden GPFs when accessing SP
We have been running SP for 6 months now with no troubles. The users have the appropriate security and intranet settings. One user as of this morning, gets GPFs when trying to access the SP site. It is any login from his browser. We have reviewed the basic settings and he has done the most current security updates (XPSP2 w IE7). It is only SP he is having trouble with. Any ideas, short of removing and reinstalling IE Thanks. ...Show All
Visual Studio Vista Compatability problem with VSIP package
I implemented VSIP package which works under VS2003/2005 with WinXP/W2K. Inside our package, there is a functionality which writes different messages to the log file. After migrating to Vista, that functionality did not work because of "Access to the path 'XXXX' is denied.". After reviewing some Vista Compatability articles, I found that we need requestedExecutionLevel = highestAvailable which should be in app manifest. But our app is "devenv" and we cannot change its manifest. Is there a solution to run VSIP package with highestAvailable execution level Yes, you are right, when the devenv.exe run with Administrator credentials everything works well. But we cannot suggest users t ...Show All
.NET Development errors adding a web service with sockets to a C++ project
Hi everyone, I have a web service which communicates via TCP to a C# program. When I invoke it's methods through a browser, they work fine and can communicate perfectly with the C# program. However, when I attempt to add the web service to a C++ MFC DLL I've created, I get multiple warnings, but with only 2 unique: 1) Warning 3 warning SDL4008 : skipping unrecognized extensibility element, with c:\Documents and Settings\*******\My Documents\Visual Studio 2005\Projects\Extend\Extend\CalcSvc\CalcWS.wsdl 84 2) Warning 9 warning SDL4001 : only one SOAP port will be processed. c:\Documents and Settings\cpappas\My Documents\Visual Studio 2005\Projects\Extend\Extend\CalcSvc\CalcWS.wsdl 104 I am assuming it is because the web service opens a s ...Show All
Visual C# Beginner question about method overloading!
Can someone please explain to me what a method overload actually is and maybe possibly give me a code example in C# for me to see I am looking to land an entry level dev job and need to know this question! Thank you! Method overloading is when you have two or more methods with the same name, but different parameter signatures (excluding the return type), for example: using System; namespace ConsoleApplication1 { class Program { static void Main( string [] args) { &n ...Show All
Visual C# Evaluating a string to call a method
I'm new to C# and for better or worse i'm trying to do things the same as in the language i'm used to (OMNIS). In the past i could do this: String s1 = "printName('John Doe')"; Test.[s1]; And the square brackets would be evaluated and John Doe would be passed to the printName method in the Test class. I have a list of methods and parameters formated as strings from an external data source. Since my data source is defining the flow of the application the calls can change. So a nice for loop with a simple string evaluation would be wonderful to have instead of a huge switch statement that evaluates the string. That's one (*) of the really nice things about intrepreters that you lose ...Show All
Windows Forms how to set the font of the richtextbox's text?
as I did set the richtextbox's font during i designing it, and when run the application and open a file, and read the file's content into the richtextbox. and then when i input content directly into the richtextbox by keyboard, the file-in text's font is different from the keyboard-in text's I just want them the same font defaultly, how can i do it (Moderator: Thread moved to this forum for better responses) Create a Context Menu where you can have a Paste Special option. Handle the input from the clipboard to copy the text, setup the proper formatting font/color and insert it into the richtextbox. ...Show All
.NET Development Dropped/duplicated elements in a Collections::Queue
I would need to provide a large amount of detail to properly describe this problem so before I do that, I'd like to just briefly outline the nature of my problem with the hope that the problem is well known. I should begin with the fact that although I have many years of experience programming native code, I am new to .Net programming and I still do not have good understanding of its basic concepts, for example, how the garbage collected memory management model works. First, I should start by saying that I use Visual C++ 2005. In my project I use mixed code because ultimately the program will interact with a native process via shared memory, using OS synchronization mechanisms. That other process stores data in a filemap and sets an eve ...Show All
Windows Forms Graphics are being erased by other windows or off screen movement...
I have am working on a program that monitors the download speed of ones internet connection and draws the speed to a graph. The graph is a simple line graph that is drawn using GDI+. The graph is updated in the WebClients DownloadProgressChangedEventHandler. The problem is that when I move a window or move the program off screen, the graph, or the portion that was covered or went off screen gets erased. I have tried doing gc->Save(); (gc=my graphics) but that has not done anything for me. Here is my entire code: (Note that the timer tick event, "UpdateGraph" doesn't do anything, that is fine) #pragma once namespace iDT { using namespace System; using namespace System::ComponentModel; using namespace System::Collections; using names ...Show All
SQL Server SQL Server 2005 - How to create multiple password policies for SQL authenticated IDs?
We have a need to have separate password policies for different groups of logins. For example: Those IDs that have greater privileges should be rquired to have more complex passwords that expire more frequently than IDs with lesser privileges. It appears to me that SQL Server pulls the password policy from the default Active Directory domain group. Is there a way to create/utilize multiple policies for SQL Server authenticated IDs Thanks for your assistance. Currently, Windows only supports one domain policy. You may want to ask on a Windows forum to see if there are any planned changes in this area. For your reference, the password policy in SQL Server enforces the Windows password policy, leve ...Show All
Visual Studio 2008 (Pre-release) WPF Wizard
Hi all, Im wondering why its so hard to emulate a vista LAF wizard in WPF... i mean i cant have a window without an icon in the top left in WPF. I need to emulate the vista wizards i.e. no icon in window, but one in the task bar button. The reason i have to do this is because our software is used under XP as well. I also need to to optionally have the min/max buttons in the top right of the window. Regards, S> Ive had a look at the actipro wizard stuff - but thats wizard '97 look and feel. I believe most of our clients will want vista native look and feel wizards..... i realize you can style the actipro one but the vista wizards have the back and forward buttons on two separate panel ...Show All
Software Development for Windows Vista TransactionScope and Enterprise Library
I want to aggregate calls to my data access layer (dal) into the same transaction. I wrapped calls to my dal with TransactionScope so my code looks something like this. using scope as new TransactionScope() { PubsDal.WriteAuthor(); PubsDal.AssociatePersonWithTitle(); } The problem is that I need to have the DTC installed/enabled on a machine running this; even though the calls are to the same database. I am assuming that this is because of the way EntLib handles connections and it does not "realize" that these actions do not require a distributed trx. Has anyone else had this experience Have a way to work around this I am thinking about adding my own thread static class that manages the connections/transactio ...Show All
