rb531's Q&A profile
Software Development for Windows Vista Test Case 2 and OpenFileDialog control
Last step of the Test Case 2 is : 10. Attempt to open the file created in step 3 above a. The file can not be opened and the logged on user must be prompted indicating so. My application uses the OpenFileDialog control of the .NET Framework. When browsing to c:\users\logouser1 using the logouser2 account, the UAC consent dialog box is displayed. If I give credentials of an admin user, I am able to open the file in my application. But when trying to modify the file and saving it, my application displays a messagebox saying "access to the path ... is denied". I think this behavior should be OK, but the test case states my application should not be able to open the file in read only mode. And in the "Verification" ...Show All
Visual Basic Need direction - Windows service interacting with web service?
I need a little direction here folks. If you know of any written material I can purcahse and refer to, I would be greatful. I want to write a program that allows me to do a couple of things... First, this program would be a service so that it can run in the background without a machine being logged in. Second, the service would need to be able to run EITHER on a server or workstation Windows OS. Third, the application is basically going to be a udp echo or chat application....example, say I send a packet x bytes in size to port 7779. The application receives multiple connections from multiple sources all to port 7779. When the service "sees' the data inbound to on 7779, it then relays the same data back out the source port ...Show All
Software Development for Windows Vista Missing wlanapi.dll
Hi all, I am developing an application in wireless LAN.But when I run the application it shows an error saying the application cannot start because Wlanapi.dll was not found.I tried searching it in the SDK installation folder.Also I tried searching it in the download link.Can anyone please tell me where can I find it IS there any redistributable package for Windows SDK where this dll might be present thanks Jyoti Hi Jyoti: In this forum we focus on discussing issues related to mobile PCs. It sounds like you have more of a general networking question. I recommend that you post your question in one of the Windows Networking forums. Thanks, - Mark Hopkins (MSFT) ...Show All
Visual Studio Team System Context menu - GetLatest (should have Server and workspace)
I think the context menu should have GetLatest (Workspace) and GetLatest(Server). This will make it easier for people coming from VSS to understand that get latest (Workspace) will only get files relative to their workspace and the server will be obvious that it will force download. If you are concerned people will too easily overwrite their workspace versions make it an option to whether the server menu item is displayed or not (or put lower on menu). People used to GetLatest from VSS don't expect that they need to do GetSpecific version, Latest version, Force get in order to get the latest files. Another case I hit is I have all the main tree and branches down on my box, to save space on my ...Show All
Windows Forms Forms inheritance CreateInstanceImpl
I have some chain of inheritance forms (one form inherited from other) and I have change their constructors to have parameters and I got the following error in the design view while the project compiled. I have found out that all forms should have a default (parameter less constructor) and that fixes the problem. Does any body know how to handle this problem without changing the constructor My ancestor form holds some objects that all other forms uses. For that inheritance was made isn’t it at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, B ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
SQL Server Difficult Query. Is it possible?
Hi, I am looking for a type of aggregate function for a string. Instead of finding a Max value or the average of a column, I would like to build one string value holding the aggregate. Example: Source data RecordID PersonID Name Course Score 1 1 Fred Maths 70 2 1 Fred Science 78 3 2 Mary Maths 65 4 2 Mary Science 60 5 2 Mary History 85 I would like my query to return the following resultset: Name Scores Fred 70; 78 Mary 65; ...Show All
SQL Server delete rows using except ?
Found out that except is very fast, but is it possible to delete rows using except Like: delete accountnumber, central from table1 except select accountnumber, central from table 2 Sorry about that, I was simultaneously dealing with an implementation problem. Really, I cannot go any farther with my mock-up without knowing specifics about your actual implementation because your implementation will have a big impact on the execution plan. Yeah, I tested out with the same amount of logical IOs with both queries but this really is more qualitative than anything and doesn't prove too much. I can say little more than the qualitative viability of the EXCEPT query; however, I don't consider this a simp ...Show All
Visual C++ Problem with ReadFile(), used to read from a Asynchronous Pipe
Hi All, I am getting this unusual problem. I will try to explain as clearly as I can. I am working on two processes in which one is parent and other one is child. Now the STDOUT of the Child process is connected to Parent process using a asynchronous pipe. Now, when I am trying to read the content of STDOUT of the child process using the pipe, the processes get stuck at some point where ReadFile() is used and it doesn't progress further. When I hit CTRL+C to abort the execution, following message appears on the CMD: "The pipe in which you are trying to write doesn't exist" But when I tried to debug it, the pipe handle was still present. Please help me regarding this. Please ask the questions if the problem is no ...Show All
Visual Basic Very slow transfer over internet
Hello, I am using Visual Basic in VS 2005 to create websites. I have a site that is not really that big, but not really small either. I use the copy feature upload the files to the website, and it is really slow. If I use CuteFTP it takes about 15 minutes. If I use the Visual Basic IDE it takes over an hour. I have a five megs a second down and 1.5 megs a second up, and both directions are really slow. I prefer to use VS so that I can see what files are changed and what files aren't, but I can't spend so much time if I make changes to a lot of files. Is this a bug Is anyone else having this problem Are there some settings I might need to change I have only been using VS 2005 for about a month, so any help would be great. One ...Show All
Visual C++ std::map<[any],[any]> linking error
Hi, I have built a static library under VC2005 that contains a std::map implementation. When I try to link my static library with any of my other compiled executable units (also built with VC2005) I get the following link error: error LNK2019: unresolved external symbol __imp___invalid_parameter_noinfo referenced in function "public: bool __thiscall std::_Tree<class std::_Tmap_traits<int,int,struct std::less<int>,class std::allocator<struct std::pair<int const ,int> >,0> >::const_iterator::operator==(class std::_Tree<class std::_Tmap_traits<int,int,struct std::less<int>,class std::allocator<struct std::pair<int const ,int> >,0> >::const_iterator const &)const &qu ...Show All
Visual Studio Building solution with multiple platforms
Hi, I'm currently implementing a project whereby I want to build a big VS solution through automation, containing C++ and C# projects. However C# and C++ uses different platforms, causing only some of the projects to build when using the VS automation interface. The solution builds fine from the IDE when "Mixed Platforms" is selected before building the main project. The automation application is currently set up to build this same project. How do I specify the "Mixed Platforms" option through the automation interface I have tried changing the dependency settings, to no avail. Thanks Thanks, that worked. However, the item name is the file name of the project (i.e. zzz.csproj), and I h ...Show All
Software Development for Windows Vista Large Fonts = Large Problem
Hi All, Hope someone can help here........ In all previous versions of Windows, window and control sizes designed in twips have been converted to pixels using 15 twips per pixel at small fonts and 12 twips per pixel at large fonts producing similar but slightly different displays. Minor adjustments could easily be made at startup to make things look right at either DPI. This doesn't happen in Vista. I don't know exactly whats happening, but basically, the window is sized at 15 twips per pixel and then enlarged as a graphic might be using anti aliasing techniques. Quite apart from not producing a window that looks as good as the old 12 twips per pixel formula, this is causing huge problems. 1. In large fonts, GetClientRect&am ...Show All
Gadgets Docking Gadgets?
Very exciting times indeed! I wonder if it is possible for two or more gadgets to be aware of each other. So say for instance I develop 5 gadgets, and one of them is a text search gadget. As soon as I drag my search gadget on top/dock or close to one of my other gadgets, I want to be able to search for text in that specific gadget. I don’t know where to start, so many questions. Can a gadget be aware of where it is on a screen Can a gadget dock to another gadget or can it somehow know it is hovering over another gadget Communication between gadgets, is a web service maybe the answer Any ideas would be much appreciated! Thanks It must be do-able, read this below (found at http://microsoftgadgets. ...Show All
Visual Studio Team System Location of Source files in TFS - and how to back them up?
Can somebody tell me where, on my TF Server the source code files for all my projects and solutions are Somebody hit home a point last week that we are not backing up our source code for our project which really had the alarm bells ringing. If something goes wrong, obviously we're knackered. Once I know where it is, I should be able to figure out how to back it up then - but in the mean time if somebody knows a good way then please share, Thanks Lee OK - I haven't got a Data Tier database - least I don't think I have ... On my database server I've got the following databases that are not my products.. master tempdb model msdb ReportServer ReportServerTempDB TfsWorkItemTracking TfsIntegration TfsVersionContr ...Show All
