RomanQ's Q&A profile
Gadgets This is not a valid gadget package!! grr!
hey, So i finished creating my gadget, i use winzip to zip it up to mygadget.gadget and then double click to install... However it just says: This is not a valid gadget package The gadget works if i move the folder to the windows gadget directory! Does anyone know how to fix this problem Regards Hi nickwilliams , This could be the same problem i'm having I made a gadget -- submited it to gallery, and they accepted it, it worked fine, 100 people downloaded it. I then decided to update it a little, all i added was the following line in the code.js file: System.Gadget.background = "url(bgB.png)"; I pack it back up, no changes to the gadget.xml or page.html (which basicly me ...Show All
.NET Development to chk COmputer connected to Network
Is there any methods/ classes which will provide the information about the computer available in the network or not.. [just like search for computer in the my computer/My network places] note: i am using VS 2003 .. Thanks in advance Please see this Post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=875910&SiteID=1 I hope this will help! Best Regards, ...Show All
SQL Server Tracing the deadlock
Hi, I need to trace deadlock, one of article was mentioning “QL Server Profiler's Create Trace Wizard to run the "Identify The Cause of a Deadlock" for SQL Server 7.0, is there any way I can do this in Sql Server 2000 The Locks Event class contains two events for deadlock (Deadlock & Deadlock Chain) that you can use. See BOL for more details. SQL Server 2005 new graphical way to show the deadlock information in profiler. See the blog post below for some details: http://blogs.msdn.com/sqltips/archive/2006/06/12/628773.aspx SQL Server 2005 BOL also has several topics on deadlock troubleshooting. ...Show All
SQL Server Update Datetime
Question How can one update a DateTime field when the change request may alter any of the attributes of the time (Day | hour | hour & minute). WHY Of course the whole point of a timestamp is to stamp the time of the record. The problem comes in when the user wants to tweak that timestamp. I am not interested changing anything about the time at the seconds point. The user will only change major time factors. Platform .Net 1x C# SQL Server 2000 Eventually this will be in a Stored Procedure. advTHANKSance Just string concatenate the pieces of the date back together and pass it on to the stored proc as a datetime by Convert.ToDateTime(stringvalue). I assume there are textboxes for each piece of the datetime in the UI (e.g ...Show All
Visual Studio Express Editions "Name 'X509Certificate2UI' is not declared" error
I'm trying to work with a sample of code from MSDN. One of the lines from the code is: Dim collection As X509Certificate2Collection = X509Certificate2UI.SelectFromCollection(fcollection, "Select an X509 Certificate" , "Choose a certificate to examine." , X509SelectionFlag.SingleSelection) VBEE is complaining about X509Certificate2UI and X509SelectionFlag. I've imported " System.Security.Cryptography.X509Certificates", which defines these names. I've used the Object Browser to check that they are there. However, Intellisense doesn't list them if I try to type it manually to see what is available, and I can't get the code to build. --Philip I'm usi ...Show All
Visual Basic Flat text File Read in Dilemma!
I have a file I need to read in. Easy right Here’s the catch. Its 17k+ records than all end in a vbLF. If they ended in vbCRLF the following would work but they Don’t so its not. Current Code: StrPathToFile = "Filename" OpenReadFile Do ReadFile DoWhatNeedsToBeDoneHere Loop While Not EOF(#ntFileNum) Inputs used: Public Sub OpenReadFile() intFileNum = FreeFile Open strPathToFileIn For Input As #intFileNum End Sub Public Sub ReadFile() Line Input #intFileNum, strCHRecord End Sub It takes in the Whole file as one string ...Show All
.NET Development Error loading Business Contact Manager -- NET Framework 1.1 issue
I attempted to load the newest version of ACT. The install failed because of a NET Framework 1.1 issue. Contacting ACT support, I was told to uninstall NET Framework 1.1. Net Framework wouldn't allow the uninstall -- but rather gave me this ... The exception unkown software exception (0x40000015) occurred in the application at location 0x7813461a. I then manually uninstalled NET Framework 1.1 using guidance from Article ID 824643. After uninstall, reinstalled NET Framework 1.1 and attempted to load Service Pack 1 --- and got the same error as above and this ... Runtime error Program c:\windows\temp\sl173.tmp. Giving up on ACT, I attempted to load Outlook Contact Manager and received the following error: Runtime error Program c:\ ...Show All
Visual C++ VS2K5 SP1 Beta
After installing the SP Beta I now have code that does not build and I get errors in MS files: Error 21 error C2446: '<' : no conversion from 'MSXML2::IXMLDOMElementPtr *' to 'MSXML2::IXMLDOMElement **' c:\program files (x86)\microsoft visual studio 8\vc\atlmfc\include\afxtempl.h 553 This is a known problem (serious regression) in afxtempl.h. See https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=214250 for explanation and workaround (in community discussion/workarounds section of bug item). Please vote on it if you have a chance. ...Show All
Visual Studio Tools for Office MSWord addin is not getting remove during uninstallation
Problem Our MSWord Add-In adds a menu to MS-Word. On Un-installing, the menu doesnt get removed properly, and the Menu Options we added Persist. What's the proper way to remove the added menu-options during uninstallation Word add-ins by Adobe and others get added and removed properly--- and our add-ins for MS-PowerPoint also behave properly. Issue: When adding menu items to the Office apps, they are marked as temporary. In addition, on unload, the add-in attempts to delete the menu items it added. However, the menu items still persist in Word (tested both 2000 SR-1 and 2003 SP2.) Repro steps Uploaded Code to URL: http://www.darksunsoftware.com/ppl/word-bug-aug-17-2006/2006-08-17-Addinox.c ...Show All
.NET Development web.config file
Hi, Can we create 2 web.config files in an asp.net application. will it work. can anyone suggest me the solution. Thanks in advance. Hi Srid, Two web.config files doesn't work in a web application root directory. Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All
Software Development for Windows Vista Problem with ManagementClass API, probably linked with Media Center update
Hi, We have designed an HTML application for the Media Center (2005 edition) : an applet is downloaded from a web server located on another PC. In order to check that the applet has been downloaded from the local network we have implemented a .Net security policy giving fulltrust to assemblies coming from the same subnetwork. The corresponding condition is called LanMembershipCondition (see below). At first the ManagementClass APIs was used in that membership condition in order to get the collection of network adapters so that the Subnet mask was dynamically retrieved (1). And it worked fine ! But one day it stopped working, because of an update of our Media Center : the application could not l ...Show All
Smart Device Development End Call Event
Hi, Is there a way for an application running on a smartphone (ex: SMT5600) to get a callback when a call ends I would like to write the code in C#, but if I need to I would be happy to use C++. Any advice would be appreciated. thanks, Jake sorry if my next question sounds something obviously , but I didn’t understood how to retrieved those stats from the hex result, if for example I transfer this hex to binary data.. how did you know those parameters -----------------8<------------- // here I register my app for state changes private void SystemStateRegister( ...Show All
Visual C# Switch Statement vs. If-else if-else
Hi Guys! Will I get better performance if I use a switch statement instead of If, else if and else statements ~Matt ahmedilyas wrote: the case statement will be faster than an if else statement. That turns out not always to be the case (if you'll pardon the pun). First, lets be clear that there are many uncertainties to be considered - the IL generated from the statement(s) in question, the native opcodes the IL is translated into, the capabilities of the hardware those opcodes are executing upon and so forth. Even when we know the answer to some of these questions today, our assumptions might be invalidated by future changes in technologies such as branch prediction, instruction pipe ...Show All
SQL Server How to use TSQL to monitor replication status
To monitor the status of replication in SQL 2000 we insert the resuts of sp_MShelp_replication_status into a temp table and review the status. In SQL 2005 this stored procedure has changed and now does it's own insert into execute command. Since insert execute commands can not be nested we must find another way to programically monitor replication using TSQL. We could call s ys.sp_replmonitorhelppublisherhelper but we can't seem to find it in the distribution database. It must be hidden somehow. Any ideas Thanks, Danny Thanks. I'll look at using openrowset. sys.sp_replmonitorhelppublisher checks for access and database name. The it calls sys.sp_replmonitorhelppublisherhelper as shown below. This system stored procedure or ex ...Show All
Software Development for Windows Vista Where is the definitive post-beta ASP.NET Workflow Sample or Walk-through?
Hi All, Since the release of .NET 3.0 I have not been able to find an ASP.NET Workflow sample that was not actually written for one of the betas. Many of the examples out there that come up in the search engines have implementations that seem inconsistent with the final release of WF. The SDK does not include anything close to a complete ASP.NET workflow sample. The free Microsoft Learning module did not cover it anywhere near complete. So, what I am looking for is a clean, complete, post-beta example of how to use workflow in an ASP.NET application, not a web service, just a plain old ASP.NET workflow example. Any links to a good post-beta sample or walk-through Th ...Show All
