Rob Ski's Q&A profile
Windows Forms Use the KILL command to delete a file or set of files in a folder.
Hi, Is there a way to delete files from the target machine during the installation, when using a setup project The files to be deleted are created during my product first run, and I want it to start clean when re-installed. Thanks. Hi, If your setup project writes all it's files to say for example the>> C:\Program Files\myProgramName folder then>> KILL("C:\Program Files\myProgramName\*.*") to delete ALL the files in that folder. Regards, S_DS ...Show All
Software Development for Windows Vista vista blocks application at startup
Hi, I'm a software developer and I have a question about Vista. Our application (a .NET 1.1 app) requires Administrator access and we have the "requiresAdministrator" access level defined in the application manifest. That part is working fine. However, our application needs to startup when the computer boots so we have it in the "startup" folder. For some reason (I can't imagine why) Vista puts it in the "blocked startup programs" list and the user needs to manually launch it. This is not acceptable for us. Is there any way to circumvent this problem And by the way, why is there no way for the user to say "I want this app to run every time I reboot so stop blocking it!" On a side note, I not ...Show All
SQL Server How to have more than one INSERT-EXEC active at a time.
Hi, I have written a master proc which calls another proc (say proc1). This proc1 has insert-exec statements, for eg insert into #temp exec proc1. i.e. multiple times the proc would be nested. This the err thrown : An INSERT EXEC statement cannot be nested. Is it possible to resolve it.. Dave: Thanks for your valuable suggestion. Function is good alternative, but it wont works with our logic as we use many temp tables, set functions etc.. .So i would go for global temp tables. But even global temp tables gives me err. See the following scenario: 1. create table #temp1(no int) 2. create table ##temp1(no int) 3. create proc proc1 as insert #temp1 exec proc2 4 create proc proc2 as select 2 5 insert ##temp1 exec proc1 on ...Show All
Visual Studio Sandcastle August CTP: Return-only generic type parameter not listed in doc
When you have a method with a signature that has a generic type parameter specified only as the return type (which is a bit uncommon but legal and I use it frequently), this parameter does not show up in the doc (I tested CHM only) at all: Example: /// <summary> /// The summary. /// </summary> /// <typeparam name="T">Some words about T.</typeparam> /// <param name="aParam">Some words about aParam.</param> /// <returns>Some words about what is returned.</returns> public T MyMethod<T>(string aParam) { return default(T); //just to make is compile } Thanks, Karlo Karlo, I checked and ran a quick example. It appears ...Show All
Visual C++ nafxcwd.lib library linker error LNK2019 - help
Hello experts, Below is the small program I am having issues with. It compiles successfully. As you see is quite small and simple program, but for some reason I am unable to link it when I tried to build it. I have also pasted the last part of the output from the linker with verbose. Hopping someone can help me out. It seems a problem with nafxcwd.lib but I am unsure. /* Setup includes */ #include <stdafx.h> #include <afxwin.h> /* Addinitional includes */ #include "ifl.h" /* Main */ int main(int argc, char** argv) { // Variables Declaration IFL_RC iRetCode = IFL_SUCCESS; HWND m_hwndMain; // Get Handle to the main window m_hwndMain = AfxGetMainWnd()->m_hWnd; // Initialize the use ...Show All
Visual Studio Project Help
Hi, I'm currently starting my final year project in university. Its on software factories and the DSL toolkit. Its mainly a research project with focus on the dissertation but there is also an implementation side. I'm having problems with the latter. The implementation should be a relatively simple application that provides a good demonstration the main principals and benefits of Software factories and also the DSL toolkit. I haven't used the DSL toolkit yet in practice but can understand simple samples such as the End To End wizard sample that ships with it. I'm finding it difficult to figure out what kind of application to attempt without previous experience of factories or DSL tools. Any helpful suggestions for applications/features w ...Show All
SQL Server Package with WinZip hangs
Dear Folks, I have a package that calls winzip to extract files(command line usage) in an Execute Process task. The package runs fine if I am logged in to the server. It hangs on the winzip task otherwise. The package is stored on the server (as opposed to the file system) & is run under a proxy account using the SQL Server Agent. I tried adding folder and WinZip32.exe permissions for the domain user who the proxy account was created under to no avail. Any Ideas Thanks for your help! I don't have a high enough version for that particular utility, but found you could use the command line for older and standard versions as shown here: http://www.memecode.com/docs/winzip.html I'll be trying this out in my package and will post b ...Show All
Visual C++ two dimensional array sorting in C/C++
Hello everyone, I have a two dimensional array. Currently, I am using the following method to sort, 1. Sort by the first dimension, 2. If the first dimension is equal, then sort by the second dimension. For example, here is the result of the array I could get, <result 1> [1, 2] [1, 3] [1, 6] [2, 4] [2, 5] [2, 7] I want to change it to, 1. Sort by the second dimension, 2. If the second dimension is equal, then sort by the first dimension. Here is the result I want to get, <result 2> [1, 2] [1, 3] [2, 4] [2, 5] [1, 6] [2, 7] I am wondering what is the most efficient way to get the new sorting result (result 2) by the sorting result (result 1) in old method thanks in advance, George ...Show All
SQL Server Urgent help please!!!!! Error trying to uninstall RS sql 2k5
Hello, One of our lovely NA's decided to remove IIS and the reinstall it while RS was installed before trying to uninstall RS. So RS broke. We then tried to uninstall RS to start over and get this error: The setup failed to read IIsMimeMap table. The error code is -2147024893 Anyone have a work around to get us to uninstall RS This way we can install IIS 6.0 from scratch and try to install RS afterwards. Thanks. ivolved, Is there a similar utility for windows 2003 This issue is on our windows 2003 server. John ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shooting help
Can anyone post a website, code, or a project they have on making something shoot. I have tried, and it doesn't draw the bullet right, and some other ppl's code meses up But surely that line of code is only ever going to be called once regardless of where it is, so it doesn’t really make much difference where it is called from Seeing as there is only one image to be loaded there are actually less lines of code overall as well Most of the other examples I have looked at do all their GraphicsContent loading in the Game1 file as well. Whilst I do like to keep things contained or 'encapsulated' as much as I can, for loading graphics it seems like more trouble than it's worth. Sorry if I’ ...Show All
Customer Care Framework Error in Agent desktop
Hi, I have launched the Agent desktop...If i select the customer from lookup table it shows the following error...Please anyone help me 12/20/2006 2:36:21 PM: Customer Care Framework 2005 - Agent Desktop: Information: Starting... Customer Care Framework 2005 - Agent Desktop 12/20/2006 2:54:41 PM: Customer Care Framework 2005 - Agent Desktop: Error: Failed to connect to the web server. Please verify that you can connect to the web server. The underlying connection was closed: The remote name could not be resolved. \n\nStack:\n at Microsoft.Ccf.Csr.Sessions.SetActiveSession(Guid sessionID) at Microsoft.Ccf.Csr.Sessions.AddSession(String name, Int32 callID, Object customer) at Microsoft.Ccf.Samples.Csr.AgentDesktop.Des ...Show All
Visual C++ No symbols found for msvcrtd.dll !
Hi Im trying to debug my application with umdh which was working up until recently. Now the stack traces are partially coming back with the <no module information> in them. To get arount this I have tried to download new symbol information but when I try and get smbol information I get these errors SYMCHK: MFC42D.DLL FAILED - MFC42D.pdb mismatched or not found SYMCHK: MSVCRTD.DLL FAILED - msvcrtd.pdb mismatched or not found SYMCHK: MFCO42D.DLL FAILED - MFCO42D.pdb mismatched or not found Im using XP sp2 and VC6 sp6 and debugging was working up until recently and I dont think Ive installed any patchs that would upset this!. Can anybody help on this or do I have to ask to get them put up again T ...Show All
Visual Basic Carrying a value from one form to the next to display information from a table
I have a form that has a value from a table on it and I am trying to carry that value over to a new form to display more information. I know that I probably need to do something with classes but I am so new at this that I don't totally understand classes. If there is anyone out there that can help me out or guide me in the right direction I would appreciate it. I have read a lot on classes but haven't seen or read anything that I think would fit my situation. Doing this is going to be the heart of my software so I really need to figure it out. Thanks in advance for any help! to pass objects (items) from one form to the other, check this out: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=760400&SiteID=1 http://for ...Show All
Visual Studio Express Editions Install of Visual Studio Express
When trying to install Visual Studion Express (En_vs_2005_Pro_90_Trial.img), its a .img file that will not run. In ideas on how I run this file ...Show All
SQL Server converting Datatypes:
Hi All, how do you convert from a date to an int as well as converting from Varchar to and Int in SQL server 2000 I am retrieving the GetDate() which i store in column as Varchar, i then want to use it within my select statement to calulate data which i want to return i.e DECLARE @DateValue AS VARCHAR(20) SELECT @DateValue = ApplicationSettingValue FROM ApplicationSettings WHERE ApplicationSettingKey = 'ProcessDate' print convert(int,@DateValue) - 5 print GetDate() - 35 SELECT ccy_code, NULL, xrate_date, sterling_xrate FROM SylvanTrans.dbo.SIADHP_XRate_Hist WHERE xrate_date >= (CONVERT( int, @DateValue ) - 35 ) ORDER BY xrate_date now my as you can see in my WHERE CLAUSE i want to calculate what is retur ...Show All
