Zapp's Q&A profile
Software Development for Windows Vista UAC Sheild Program Icon Overlay
I have an application and the Setup.exe and *.exe program file has a manifest added with asInvoker and uiAccess="false" The application is installed for All Users, however the Start menu icon and desktop icon for the application has the UAC shield added. However, clearly our application does not require Administrator permissions due to the manifests. Is there any tools to confirm the manifest is correct or why the shield is being displayed The manifest is shown below for the program file: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> <security> <requestedPrivileges> <requestedExecutionLe ...Show All
SQL Server How to migrate updated data alone?
Hi, Can anybody pls help me with this, i have to migrate data from one sql server(1) to another sql server(2) using SSIS,Which is a bit easy,the concern here is that after doing it the data in server(1) is getting updated due to inserts,now i need to bring the updated data alone.Is anybody having experience in this can anyone pls help me or give me sugessions on how i need to proceed. Thanks in advance. Regards, Sg Please read Jamie's post on this: SSIS: Checking if a row exists and if it does, has it changed ...Show All
.NET Development How to remove the <?xml version="1.0" encoding-"utf-16" ?> tag
I get my notification emails as simple text but I can't remove the version tag at the beginning of the message body: < xml version="1.0" encoding-"utf-16" > If I omit it in the XSLT file, it will still be generated. ____ < ContentFormatter > < ClassName > XsltFormatter </ ClassName > < Arguments > < Argument > < Name > XsltBaseDirectoryPath </ Name > < Value > %_AppPath_% </ Value > </ Argument > < Argument > < Name > XsltFileName </ Name > < Value > ExceptionsTransform.xslt </ Value > </ Argument > </ Arguments > </ ContentFormatte ...Show All
.NET Development Xml Attributes....
I have a class that I wish to serialize to a string using XmlSerializer. My class... [Serializable] public class CApplication { private int m_application_id; public int application_id { get { return m_application_id; } set { m_application_id = value; } } } The string returned looks like < xml version="1.0" > <CApplication xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema "> <application_id>0</application_id> </CApplication> I need it look like this.... < xml version="1.0" > <CApplication xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xs ...Show All
Visual Studio Updating file status in solution explorer through SCC APIs
We have implemented MS-SCC API 1.3 for our SCM tool. Our SCM tool also supports commands to perform check-in, checkout operations which also adds following scenario to be handled. 1. Open a project in VS05. Checkout a file and modify it. 2. Checkin that file by using command. 3. Status in VS05 won't get updated unless "Source Control->Refresh Status" is used. For this, we are executing a thread in background which checks latest status of files from SCM. But unable to send this updated information to back to IDE. When user selects "Source Control->Refresh Status" command, SccQueryInfo() function get called for selected files. But if compare the behavior of the VS2003 and VS2005, as per the MS-SCC API specificat ...Show All
SQL Server Error: 18456 Severity: 14, State: 10
I have SQL 2005 Expess installed on Windows Server 2003 SP1. My application is running as a service and is set to depend on SQL Server instance... During the startup my app attempts to connect to the databes and it fails to do so, after 30 retries (1second appart). SQL Server log has this error msg: Error: 18456 "Severity: 14, State: 10" Once the server has started, I cam manually start my application and it then sucesfully opens a connection to the database. What does this error mean Srdjan Are you saying that you get login failure errors after the database is started up The log excerpt from your previous message doesn't show that. Can you post your errorlog from beginning up to and including ...Show All
Software Development for Windows Vista How to Run Windows Explorer as administrator (was: Virtual disk driver on Vista)
Hello all! I have got a legacy project that I have to transfer to Vista. The project contains a virtual disk driver, that I believe was originally based on filedisk sample from the following link: http://www.acc.umu.se/~bosse/ When installing on Vista, I din't get any error messages during installation, and I was able to format a disk as a part of the installation. Now I can see and address it in DOS, I can move / delete/rename files on it using DOS prompt, but in Windows Explorer it doesn't appear. After some investigation I found that the disk is visible only when DOS prompt is running as administrator. So my question is: which integrity level is given to Windows Explorer ( NOT Internet Explorer) by default ...Show All
.NET Development easy Regex.Replace() question
I am using Regex.Replace(string, string, string) in this way: Regex.Replace("Gloria Estefan (1993) - Yesterday", "^Gloria Estefan (1993)", "Gloria Estefan"); So I want to change the artist name so it doesn't include the year anymore. The problem is that this doesn't work because of brackets! So this would work: Regex.Replace("Gloria Estefan - Yesterday", "^Gloria Estefan", "Beatles"); How can I make it work in all circumstances (brackets or no brackets).. I would prefer using Regex.Replace to something else, because it makes it easy to assure that text is replaced only if it appears at the beginning of the string (^). thank you..! David Regex.Replace( "Gloria Estefan (1993) - Yesterday", @" ...Show All
Visual Basic Slow Timer
Hi, I've written a program that uses a timer to control an external relay (via USB) that turns on a light. The problem I'm having is that the timer is slow (about 4 seconds per minute) on my desktop computer, but its timing perfectly on my laptop computer. I've retested this on other computers and I get a similar result. Is there a way to ensure that the timer is right on everytime Its also worth noting that the clocks on all these computers are keeping the correct time. Thanks, P Post your code. If the timer is just set for, say 60,000 (once a minute) then switch to something like Timer.Interval = 1000 Private Sub Timer1_Tick( ByVal sender As System.Object, ByVal e As Sys ...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 Well you need to make sure that the datetimepicker control also has the time format enabled/custome format so you can get the right time. The time by default is set to 12:00 I believe unless the user changes it. ...Show All
Visual Basic create key/value pair for filename/path_filename to use in combobox.
What is the best way to create a key value pair for a filename and filepath with filename. 1. Obtain files within a directory for a known suffix (eg. html) 2. Set variable to filename only using GetFileName() 3 Add filename to Listbox, ComboBox, etc. 4. When user selects FileName, use value (path and filename c:/xxx/xxx/filename to use as argument for Process.Start(PathFileName) Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For Each filePath In IO.Directory.GetFiles(path, "*.html", IO.SearchOption.AllDirectories) Dim fileName As String = System.IO.Path. GetFileName ( filePath ) ListBox1.Items.Add( filePath ) Next filePath End Sub Priv ...Show All
Visual C# Where is add Main Menu?
Hi, The tutorial says, add Main Menu from the components, but I see no Main Menu there. Is that because the tutorial is an older version I have Visual Studio 2005. Thanks. May be he refered to the Tool Box, In tool box there are controls and components both. Main menu is a control and control inherits from Component so a control is also a componenent indirectly. This becomes the only sense if he has refered in the tutorial! but its the first tutorial I have listened about that say Main Menu is in Components. Anyhow, I hope you understand what I have treid to explain here before you. Best Regards, ...Show All
SQL Server Problem in Multiple Publication on Single Table
Hello Everybody, If any one have solution then please help me. Thanks in Advance. I do the following steps: I have created two publications on my SQL SERVER for merge replication Publication A – which returns all rows from the Table1 Publication B – which returns all rows from the Table1 where the field MANAGER =’ABC’ I have two clients who have MSDE Client 1 is subscribed to Publication A and Client 2 is subscribed to Publication B All works fine till now and I am able to make transfers from the two clients and get all the changed data However, now If I change the filter rules for Publication B and set that it should return all rows from the Table1 where the field MANAGER = ‘DEF’ , SQL Server tells me ...Show All
Visual C++ how to display pictures in a console program
How to display images in a C++ Command Console program I guess it's probably not worth the fuss (and I need to display pictures with an alpha channel[transparency], which obviously aint gonna happen) Anyways, I was trying to make an app that could easily be ported to the Playstation Portable (homebrew) and since the PSP doesnt like system::string^ (which would be what i'd have to use in a .net app because the text boxes use string^ to store data) it would complicate the porting process. this is just one problem, and the psp is closer to dos than win32. ...Show All
.NET Development Socket Exception : No connection could be made...
I'm working on a test app to familiarize myself with sockets and msmq before implementing a real solution and I'm running into some problems. I have simple TCP server and client applications set up to send strings from client to server. Basically, i'm retrieving messages from a message queue (client end) and sending them over to the server (just output to text box for the moment). I'm not sending anything back to the client...just a one-way send from client to server. It works perfectly the first time, but if I close the client and re-open (when message queue receives more messages), when I attempt to send them over to the server I get "No connection could be made because the target machine actively refused it." I know the ...Show All
