Nick Winters's Q&A profile
Software Development for Windows Vista Using LUA/UAP in custom applicatons
Hi, The December CTP of Vista has a modified version of UAP/LUA. There's a shield icon (windows colors) next to any setting that requires aleveated status (brings up the verification dialog instead of an earlier dialog that asked for admin password). Also, for other tasks such as opening a file, modifying registry, modifying the drive, etc the dialog pops up asking the user to verify the action. The question being, if I have several settings in my application that I'd like to be either Admin specfic or just out of concern I don't want the user to click on that unknowingly (i.e. might pose a danger to the system/security, etc). What should I be doing are there APIs in the platform SDK/Windows SDK for Vista that allow me to b ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I eliminate the automatic generation of the arm subfolders and arm entries
The editor generates automatically two subfolders ../data/missions/arm and .../data tgl/arm and fills those folders with entries. Those entries are not helpful after finished game development. How can the automatic generation of these folders and entries be eliminated There's no single line that you can really remove to do this as it's engineered into the ARM stuff. If you didn't want to remove any of the code you could always add an action to the build script (Like an Exec task) that went in and deleted those directories. It might be simpiler to do. I think it leads to a good suggestions of having a way to turn that off. Are they being generated even though there are no files ...Show All
Visual Basic Send text to an application's console screen?
cmd.exe provides a very useful feature; if I have a program I want to run, and I know that I will want to type in 1, then 2, then 3 to answer the application's prompts, I can simply copy-and paste the following into a cmd window: application.exe 1 2 3 My GUI has to invoke a certain command-line application, and the command-line application needs to get certain input typed in...(but I don't want the user to type in the input, I want to somehow send this from VB, or really C# or C++ or anything else anyone can come up with). Any suggestions I would check out pipes. Maybe you can pipe the input to the command-line in from VB or from a pre-saved text file. http://www.microsoft.com/resources/documentatio ...Show All
Microsoft ISV Community Center Forums Summing up hours on form based on parameter query
Hi there - im finalising my new activity system but i have one issue. on an activity form i have certain fields for information purposes that are non editable - they are 'hours worked with client' , 'hours worked this month' and 'hours worked for the day'. The first 2 fields are populated automatically by opening recordsets on form load or companyname exit and summing up the hours based on the relevant query where the criteria ensures that the query is already populated. However for the 'hours worked for the day' field the query is a parameter query (qrytodayhours) where activitydate = Forms![frmactivity]![activitydate] and i was then hoping to enter the following code to sum up the hours using a recordset on the on exit of the acti ...Show All
Smart Device Development Resize length of label (to fit text in it)
Is there a way to resize the length of a label so that all text within it will fit I'd like to resize the label on the fly to match the text within it. Thanks again! try adding an event handler for textchanged either 1. In your form. 2. extend the label control and handle textchanged then add this private void label_TextChanged(object sender, EventArgs e) { Graphics g = CreateGraphics(); label1.Width = (int)g.MeasureString(label1.Text, label1.Font).Width + 3; // Use this.Width, this.Font and this.Text if you are extending the Label control to make your own user control } I add 3 to the width as just an extra buffer space so the last char doesn't get cut off.. You can play with it and make it ...Show All
.NET Development Insert DateTime field to MySQL record.
I'm working in MySQL database and I need to insert a record where is a datetime field. I get this value from DateTimePicker control. The problem is that I get an error in INSERT sql command, I don't know how to handle this value in C# in order to put in INSERT command properlly. thanks in advance for your help, Edward Hello Edward, I did this thing a long time ago..as far as I remember, this is what I did: dateTimePicker.Value = DateTime .Parse(dateTimePicker.Text); Hope that helps, Ashish ...Show All
.NET Development AppDomain.Unload doesn't unload all assemblies
Hi! I'm creating a small service app that on a timed interval checks a database for program updates. I would, of course, like this app to take as little memory as possible. Since a loaded assembly can't be unloaded until the AppDomain is unloaded, I decided to create a second AppDomain and load a service-class, that exists in a separate assembly, in it, that checks the database. However, AppDomain.Unload doesn't free the memory/assemblies that the service class/assmebly required. When the service app is loaded, it requires about 9Mb of memory, which is good. When the service class is executing it peaks at 29Mb. But when I call AppDomain.Unload, it only goes down to 21Mb. I would expect it to go down to something near 9Mb, wouldn' ...Show All
Visual Studio 2008 (Pre-release) Message Security with X509 certificate - Unexpected Locating of certificate
I have implemented an example with message security and certificate authentication. For this reason I created certificates testsvc.crt and testclient.crt , which should identify the service and the client respectively. In my test example the client and service should run on one machine. To make this example working I imported certificates in the store as shown bellow: CurrentUser Personal Store: testclient.crt CurrentUser Trusted People Store: testsvc.crt LocalMachine PersonalStore: testsvc.crt LocalMachine Trusted People Store: testclient.crt Unfortunately with this configuration the service is not able to authenticate client, although the client’s certificate is in the LocalMachine Truste ...Show All
Community Chat Help me do a survey, you will also get reward !!
Hey, everyone: I am a undergradute student from National University of Singapore. Currently I am doing a research study about forum usage. I would appreciate you guys and gals spend about 15-20 minutes to help me do one survey. The link is : http://www.surveymonkey.com/s.asp u=448073253984 Please be assured that your responses will be kept strictly confidential and only aggregate data will be reported. You will receive a US$5 Amazon voucher for your participation. However this is limited to only the first 150 respondents. The survey will be closed once we have collected 150 responses. So hurry and submit your answers now! Thanks very much for your attention. ...Show All
Windows Forms Use clickonce to deploy unreferenced assemblies?
In my projects, the main application will invoke other dlls through reflection. That seems to be a plug-in structure. When I try to publish the application, I can not see these unreferenced dlls in Application files List. What should I do to deal with these dlls use mageui.exe to make manifest file manually . see: http://msdn2.microsoft.com/en-us/library/xc3tc5xx(VS.80).aspx ...Show All
Software Development for Windows Vista Issue on deploying an ASP.net 2.0 application to Vista edition RTM
Hi All, I tried to deploy an Asp.net 2.0 application and on using the same i get following issue. I had used Classic .net application pool Following is the exception on accessing the url ... What's the possible fix. and steps. i had tried all the work around but could not achive. Please suggest... Server Error in Application "Default Web Site/RMSSETUP" Can you can you confirm that when you ran option #1 that the web.config is migrated and uses <system.webServer>/<handlers> and not <system.web>/<httpHandlers> Its possible the APPCMD.EXE tool requires admin and/or it can't get access to the web config. Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DRAW simple 3D CUBE - InvalidCallExeption
Hi guys, I was able to succesfully complete the 3D Cube tutorial, The build was succesfull,but It throws an Exception at this line: graphics.GraphicsDevice.DrawUserPrimitives< VertexPositionColor > ( PrimitiveType .TriangleList, 12,nonIndexedCube); Does anyone have the complete code and if you guys do could you please copy and paste it.If some one from the XNA Team could please check this Exception I would realy appreciate it. Also i would love to know where to place, the folowing lines of code : VertexPositionColor[] nonIndexedCube = new VertexPositionColor[36]; Vector3 topLeftFront = new Vector3( -1.0f, 1.0f, 1.0f ); Vector3 bottomLeftFront = new Vector3( -1.0f, -1.0f, 1.0f ); Vector3 topRightFront = new Vect ...Show All
Visual Studio 2008 (Pre-release) How do I go about adding this kind behavior?
I need to provide some custom context around method calls on my service. By "custom context" I mean that I need to set something up before a method executes and destroy it when the method is done. This context is purely for the server has no ties to the message data at all. What type of WCF extensibility approach should I use for this I'm aware of behavior extensions, IExtensibleObject, IServiceBehavior, etc., but I'm having a problem figuring out exactly which approach to use to achieve these exact "before method/after method" notifications that I need. Thanks, Drew In case anyone's interested, I've also documented a way to add context beyond the lifetime of operation call and i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unable to purchase XNA Creators Club
I am having a problem with subscribing to XNA Creators Club and I would like to know if anyone else has had this problem and gotten around it. I go to XNA Creators Club in the Xbox Live Marketplace. I then go to Memberships and then I select the XNA Creators Club 4-mo Membership and I get a error when Confirming my purchase. The error is: --------------------------------------------------------------------- Can't retrieve information from Xbox Live. Please try again later. Status code: 80154003 --------------------------------------------------------------------- I have called 1-800-4MY-XBOX because thats where I would go to cancle it and thats where you would go for customer support. They did not even know what XNA was and I talk to 3 peo ...Show All
Visual Studio Team System Not enough free threads in the ThreadPool during load testing
I've created a load test that starts at 24 users and steps by 24 every two minutes that I am running from my computer. The load test is running one webtest that hits 12 pages. I have 12 user ids and passwords being pulled from a local SQL Server database to feed into the webtest. After six and a half minutes (96 users) I start getting System.InvalidOperationException: There were not enough free threads in the ThreadPool to complete the operation. at System.Net.HttpWebRequest.BeginGetResponse(AsyncCallback callback, Object state) at Microsoft.VisualStudio.TestTools.WebStress.WebTestTransaction.Execute(AsyncCallback completionCallback, Object callerState) This runs up to 1,000 exceptions within a minute and a half. The agent is my lo ...Show All
