Jamie Thomson's Q&A profile
Software Development for Windows Vista Bug: Autoplay cancellation fails in Vista
Our application needs to cancel the Autoplay for USB flash devices in order to update the device firmware and format the media. In XP, the cancellation works fine, but in Vista you have to be logged in as Administrator to be able to reject the Autoplay for MSC devices. Even being a user in the Administrator group doesn't do it; the Autoplay handler is never called. It only works if logged in to the Administrator account. The same issue is present in x64 Vista as well. Our customers do not want their users to have to close the Explorer window or anything else, and are complaining about this. If they don't close it, the app will fail by not being able to lock the drive. Logging in as Administrator is not a good solution to this p ...Show All
Visual Basic How to get a Combo Box to feed from another Combo Box
Hope someone can help me!! I have a form with two combo boxes. One displays different Areas(e.g. Area1, Area2, Area3) and the other one displays different Regions(e.g. Region1, Region2, Region3). What I want to do is to populate the Region Combo Box depending on the Area selected in the Area Combo Box. For Example if the user selects Area1 have the Region Combo Box filter/display on those Regions that belong to Area1. I relly appreciate any feedback. Thanks alot!!! I have a similar situation. I'm user a combo box for car make and a combo box for car model. I want the models to show up that are appropriate with the car make. This thread is helpful but what does the "Select case country ...Show All
.NET Development App.Config - Enterprise Library - Security Issues
Hi guys, I am just trying educate myself on the usage of the Cryptography Application Block from the Enterprise Library. When you select a symmetric algorithm and then define a key file using the Enterprise Library EXE, it modifies the contents of your application's app.Config file. When examining the app.Config file, I can tell the name of the symmetric algorithm used and the location of the keyfile. Forgive my noob understanding but doesnt this pose as a security risk Since the location and the name of the symmetric algorithm are presented in clear text How does one go about protecting this type of sensitive information within the app.config file. Is there an enterprise library method that I could use to encrypt this section of the a ...Show All
Windows Forms How can I go to the last visited tab when the current tab is removed?
Hi, Can you please tell me how can I go to the last visited tab (not the first one, as the default tabControl behaver is) when the current tab is removed Your help would be greatly appreciated. Hi, on every tab change save a reference to the old tab in a variable and use that when a tab is removed to select that old tab. -- SvenC ...Show All
Visual C# How to get time from datetimepicker component
I have been pnace a control DateTimePicker in my Win form. my problem is that I actually get Date info but time is set to 12:00:00 am. so How can i get the right time that is shows in the control. I use: dtp1.Value.ToString("yyyy/MM/dd hh:mm:ss") in order to get a text, any idea will be appreciate, thanks in advance for your help, Edward hmm I just tried it. seems to work fine for me. I selected a time or rather entered it: 15:12:00 and did: MessageBox.Show(this.theDateTimePicker.Value.ToString("yyyy/MM/dd HH:mm:ss")); and showed me the correct time. ...Show All
Visual C++ Answer Me Plz
oh plz answer me i have this error when i try to compile unresolved external symbol _hook@0 referenced in function _DriverEntry@8 how do i fix it Link in the library or object file that contains the function symbol_hook() . If you think you already are, then check to see that its definition is surrounded by extern "C" (if it is in a cpp file) and it is declared as __stdcall or WINAPI. In general, these can occur when there is a mismatch between a functions declaration in a header and its definition in a c/cpp file. Brian ...Show All
SQL Server ClusterDistance() of Zero for All Cases
I recently added a nested table to a model that I had been using for a while. I noticed that after I added the nested table that the ClusterDistance() function returned 0 for every case. I went ahead and changed some of the keys for the nested table records so that the values would show up as missing and now the cases with a missing value have a non-zero ClusterDistance() value. Can anyone help me understand why this may be happening Thanks. How many clusters were in the model And what is the result of the Cluster() function for each case Can you post the cluster content (SELECT FLATTENED * FROM ModelName.CONTENT) Thanks -Jamie ...Show All
.NET Development UPD Socket BeginSendTo and BeginReceiveFrom Question
I am trying to: Receive datagram packets from a radar during warm-up and continue to "listen" for packets once warm up is finished After it is finished warming up (indicated by the content of the datapackets received during warm up) , I want to send a command to the radar as a udp packet Receive the udp packets that are the radars' response to the command. I have been able to successfully receive the warm-up packets and then successfully send the command. However I am not receiving the response packets back from the radar. I know that the command was successfully sent because I am using ethereal and it shows the response packets coming in once I've sent the command. It is like once I send the command, my socket st ...Show All
Smart Device Development smartphone user internet programming questions (list controls, menu)
hi, I have question on how to implement a native style list controls in smartphone, i found a tutorial on doing so in .net on msdn just wondering is there a win32 c++ version http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/sp_lab3_implementing_list_controls.asp another question is i would like to create a menubar with the following style _______ | Edit | | Delete | | About | Done | Menu when i select Menu there will be another popup menu and the "Done" just like a button I found a tutorial on msdn to do the menu bar but the the menu just act like 2 buttons http://msdn.microsoft.com/library/en-us/dnppcgen/html/nativec_dev_wm_vs2005.asp frame=true is there a tutorial on msdn ...Show All
SQL Server Error returning OLAP data in RS 2005
I have a .rdl file that was exported out of ProClarity's Desktop Professional 6.1 using their RS plug-in. I uploaded the file into Report Manager and when I execute it, I get the following error: An error has occurred during report processing. Query execution failed for data set 'Three_Month_Funding_Trend'. Unable to recognize the requested property ID 'ReturnCellProperties'. Does anyone have any idea what this is referring to Does it have something to do with my configuration, connection or the report definition Other reports such as DBMS based reports work fine. Thanks for your assistance I suggest you contact ProClarity's support. It seems they generate an invalid MDX query. The ...Show All
Visual C++ Urgent help required: Error 14001
In Windows XP I ported a VC++ project previously built with ver 6.0 to 2005. I could run the application in my machine without any problems. But if I try to run the same in other machines, I get following error. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. I looked at various threads in MSDN related to this and I did following to fix the issue. 1. In the target machine which doesn't have VC++ 2005, I installed Sax binaries. 2. Tried to create VC+ deployment project and installed the same in the target machine. Both attempts are unsuccessful. Can some one give me hint please Thanks in advance ...Show All
Windows Forms Code for Synchronizing datagridview/listbox and textboxes
Hi, I'm just getting started with C# and Windows Forms and as a learning process i want to create a simple application that will display certain fields from a table in a DataGridView and the remaining fields in textboxes below the DataGridView. What i'm having a problem with is synchronizing the DataGridView and textboxes so that when i click on a row in the DataGridView the textboxes get updated. I'm just not sure where to get started with achieving this. I've read in the MSDN library about "Ensuring Multiple Controls Bound to the Same Data Source Remain Synchronized " and some information about the CurrencyManager class, change notification and stuff related to that but either i'm not understanding the examples or they are stop ...Show All
Architecture application lifecycle management
Hi all, I have to decide on "Application Lifecycle Management" tool for .net projects. Need to know which one is the best in the market for .net. I came to know about SourceGear Fortress but not sure about its standing vis a vis other tools regards Have you evaluated Team Foundation Server from Microsoft http://DotNetWithMe.blogspot.com vikas goyal ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Runtime model loading
I am trying to make a level editor with XNA. Unfortunately, I've run into a little snag. I need to load a model from a user chosen location, but as far as i know models need to be first loaded into the programming solution before they can be loaded through the content manager. Is there anyway to do this at runtime fora model thats not part of the solution Runtime loading of models that weren't built previously was not one of the features targetted for the content pipeline :( Having said that though, that doesn't mean it's impossible. The way the content pipeline works is that it's an msbuild task. Might be useful to do some research regarding what is MSBuild and how to use it if you're not famililar wi ...Show All
Visual Studio Tools for Office .NET Assemblies Work as Add-Ins?
I have written COM Add-Ins for Excel before, and I am wondering if it will be possible to use .NET Assemblies within Excel (or Access) to work as add-ins. I know that I can write an assembly and deploy it in SQL Server 2005 as a CLR stored procedure, and I can call class methods from SQL. Will I be able to call these methods from within Excel if I installed a reference to the assembly They are still COM Add-ins but yes you can use .NET to build them. How To Build an Office COM Add-in by Using Visual C# .NET ...Show All
