matthew_arena's Q&A profile
Visual Basic Template Export
I am trying to setup a template for our website, and I would like to use the template to automatically format the name of the class. I have used $safeitemname$ as the class name, and while this works, it creates a class name that may not be unique in the scope of the entire website. For example, if the class is declared as: public partial class $safeitemname$ : Page this can result in a class called Default. If I have another page called Default.aspx anywhere in the website, and I publish it in one DLL, I naturally get class name conflicts. Is there any way to add the directory name to the class, so we can avoid these conflicts thanks a lot simon ...Show All
Visual Studio Express Editions Programming a button to directly open a .exe file!
I am making a program that will open a file when you click a button. I don't need to access the open dialog, I would just like to click the button and the .exe file opens. I am burning a bunch of programs to the same cd so i have to be able to open the one specific program and only that program with that button. I am trying to open this file with the button: "IE7-WindowsXP-x86-enu.exe" So if I had a button and I clicked it and it directly opened that file that is exactly what i am looking for. If anyone could give me a hand that would be great!! well what do you need explained I've given you code on how to get the drive letter :-) The link for ProcessStartInfo is also given which explains in depth on what ...Show All
Software Development for Windows Vista Am I using GetFinalPathNameByHandle incorrectly?
Hi, I'm looking into GetFinalPathNameByHandle and found a strange problem when accessing remote Samba shares. This is on RC2, build 5744. I created three symlinks, one pointing to a Windows XP SP2 share, one to a NT4 SP6 share, and one to a Samba 3.0.23a share, like this: > mklink /d win-xp-box-syml \\win-xp-box\share symbolic link created for [...] > mklink /d win-nt4-box-syml \\win-nt4-box\share symbolic link created for [...] > mklink /d samba-box-syml \\samba-box\share symbolic link created for [...] Using Vista's Explorer, all symlinks are working fine. I can double click them and change into the remote machine's shared directory, be it XP, NT4 or Samba. The same is true for cmd. I can cd into all three directori ...Show All
Visual Studio How to un check out an exclusive checked out file?
I opened an existing system from SourceSafe in Visual Studio 2003 yesterday. But today when I tried to open the system from SourceSafe in Visual Studio 2005 on the same computer and same account, I was prompted 2 files has been exclusive check out by another user. Then I tried to un check out the files in VSS, but I can't. How I can un check out the files Why just these 2 files were checked out exclusively I didn't do any special thing for these 2 files when I checked out the system. Thanks in advance. I am looking forward to the answer. Regards, wlh93 You can also login with the Admin account and you should be able to undo checkouts of any user, but it's best to check first with the user w ...Show All
Smart Device Development What Are My Development Environment Options For Developing C#/.NET CF WM5.0 Apps?
Hi. What are my development environment options for developing Windows Mobile 5.0 applications in C# and .NET Compact Framework2.0 Am I limited to VS2005 Are there thirdparty development tools And if not, can I purchase only VC# instead of entire VS suite of development languages Thank you. I currently have VS C# Express Edition. As noted by Microsoft, there is not support for WM5.0 application development in any of the express editions. The problem is I am development applications for at-home personal productivity use. It is very doubful I would ever use the product beyond hobbie work. Please advise. Thank you. You are stuck with Visual Studio 2005. Standard edition will work. If you have currently or otherwise can acquire a previ ...Show All
Visual C# read probing path from dll.config file
how can force application to read probing path from abc.dll.config file instead of application config file. Because I have created addin for which application is Excel.exe and I wants to read probing path value from dll.config file Thanks in advance this gives correct value for configuration , but how it will change current domain set up values. here is alternate code I am using. But it seems like that excel is still searching for assemblies in Excel.exe folder instead of "dll folder\assemblies\". private void setAppDomain() { string dir = Path .GetDirectoryName( Assembly .GetExecutingAssembly().Location); AppDomain .CurrentDomain.SetData( "APP_NAME ...Show All
Visual Basic Recent Projects List on Start Page is not being Populated
The Projects List on my Start Page is not being populated with the Projects I open. It's empty. Does anyone know what could be the problem I can see the entries being recorded in the Registry key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\ProjectMRUList But VS isn't reading them in for some reason. I'm running Visual Studio 2005 Professional. Thanks. Right, I had to modify the group policy for my users: User Configuration/Administrative Templates/Start Manu and Taskbar Do not keep history of recently opened documents -> disable or no config. This policy had been set long ago and I pretty much forgot about it. So, here is a follow-up question: Where can I find a document ...Show All
SQL Server Generate Scripts option in SQL 2005 Management Studio
Did anyone even bother to test the Generate Scripts option for a database I changed the following options from their default setting: "Include Descriptive Headers" = True "Include if NOT EXISTS" = True "Script for Server Version" = SQL Server 2000 "Script Indexes" = True and scripted all Stored Procedures, Tables, User-defined functions, and Views Problems: 1. Generates IF NOT EXISTS (SELECT * FROM sys.objects ... should be ...SELECT * FROM dbo.sysobjects ... 2. Generates WITH (IGNORE_DUP_KEY = OFF) ... on the indexes. That portion is incompatible with SQL 2000 3.Generates EXEC sys.sp_addextendedproperty ... should be EXEC dbo.sp_addextendedproperty ... Is there a hotfix or patch to deal with these issues ...Show All
Windows Forms Creating a non-rectangular window
I think this question is going to be in the wrong forum no matter where I post it, so I'm very very sorry in advance. I was just wondering, how do you go about creating non-rectangular windows without using visual c++ I'm just starting the process of learning how to program using windows, and so I think its important to understand how this is done instead of how to get visual c++ to do it for me. (I tried searching for this on google, and I found page after page detailing how to do it without writing a single line of code. Not exactly what I was looking for). Thanks, anmbia may this help you Irregular Shaped Form How do I create an Irregular shaped .NET Windows Form ...Show All
Software Development for Windows Vista SqlWorkflowPersistenceService putting wrong datainto InstanceState table
Hi, If my system time is 2/1/2007 1.00 PM its putting 2/1/2007 5:30:09 PM into "modified" column. So whenever I try to reload this workflow instance it gives me error that this instance is owned by some one else Please suggest me the solution.... what could be the reason Thanks, Rahul Jain DateTime values stored in the schemas built and written to by WF are always in UTC. If you have client machines in different timezones all clients convert their client DateTime to a standard, UTC, before storing in the db. All client can then operate on the datetime data in the db knowing that it is all stored in the same standard. They can convert back to local time whenever necessary for presentation. Converting to/fro ...Show All
SQL Server how do i change the domain name for users
Hi, A friend migrated windows domain users and it happened that the users now belong to a new domain domain2, The users in sql server are still defined as part of domain1, now he needs to migrate all sql server 2000 users from the domain1 to the domain2 (just the name of the accounts, users or logins). Any idea please. if it s also to go through users and change their credentials in sql 2000 to reflect the new domain name. Thank you. The clean ways is to set the ownership of the existing users objects to sa (dbo) and drop and recreate the users. Dirty ways is to update the system tables , master.sysxlogins, master.syslogins and update the old domain with the new domain for the users, and then updating ...Show All
Visual C++ how to copy strings?
I would like to parse one string into many strings and am having some trouble with it. I have tried 2 different approaches. One gives me a null pointer problem and the other gives me an access violation error. here is what I have. unsigned int loc; loc = tmp1.find( "," , 0); if (loc != string::npos { char * str = "" ; strncpy (str,tmp1.c_str(),(loc-1)); str[loc] = '\0' ; } // This gives me the access violation error and I also tried the following if (loc != string::npos { tmp1.copy (str, (loc-1), 0); } // This gives me the null pointer error. If you can see what I cannot please tell me what I am doing wrong or show me an alternative solution that would work. T ...Show All
SQL Server Regex oddness in Management Studio
Running 2005SP1 Development edition, Mgt Studio 9.00.2047.00. Regex replacements at beginning or ending of line does odd things. With the following lines: a b c d e f g h i j k l Putting the cursor to the left of the 'a' on the first line, then selecting to the end (including the l; the above blue reflects what is highlighted), then doing a replace of ^ with ' (replace BOL with quote) results in a 'b 'c 'd 'e 'f 'g 'h 'i 'j 'k 'l That is, it skipped the first line, even though it was highlighted and the cursor was at the beginning of that line. But the odder thing, and the one that's more annoying, is trying to replace end-of-line with something. That is, selecting all lines above again (after the first replacement has added th ...Show All
Visual Studio Express Editions Saving and Opening files
I want to save and open a file with a unique extentions. How do I do that are these files you have created you can open any file using the StreamReader and write to any file using the StreamWriter: Dim theReader as new System.IO.StreamReader("C:\someFile.ext") Dim theContents as String = theReader.ReadToEnd() theReader.Close() 'To write: Dim theWriter as new System.IO.StreamWriter("C:\somefile") theWriter.Write("hi") theWriter.Close() there are various other methods also for these classes, check out each class, or visit the following link of achieving common tasks: http://msdn2.microsoft.com/en-us/library/ms404278.aspx does this he ...Show All
Visual Studio Creating dynamic reports
Hi all, I’m using Report Viewer and I’m thinking about create dynamic reports. I want to know if I can modify the report design at runtime. I need to report objects that have optional properties and the number of columns in the report must change. Best regards, I have implemented this as per the article on www.gotreportviewer.com , but I need to subscribe to the report as well which means this solution is not applicable - the scheduled report is created it won't contain the dynamically created columns. Does anyone know of an alternative way of doing this The only other option I have come up with is to create a report for each table (something I don't want to do as I will eventually have hundreds of individual reports!) ...Show All
