Kosmo007's Q&A profile
Visual Studio Using SccPopulateList to get the list of subprojects from VSS or other source control provider
Hello Does anyone know how you can get a recursive list of projects (subfolders) from source control provider using SccPopulateList If you use spec 1.3 of MSSCCI, it is easily done using SccPopulateDirList which is recursive. In v. 1.2 (VSS 6.0, SourceGear Vault), SccPopulateDirList is unavailable and the SccPopulateDirList only returns one folder. If you have no prior knowledge of contents of source control folder, how can you get subfolders under the given folder Thank you Unfortunately, with MSSCCI 1.2 and older you can't enumerate the folders in the database side. That's exactly why SccPopulateDirList was introduced in MSSCCI 1.3... In MSSCCI 1.2, SccPopulateList can be called with a ...Show All
Visual Studio Team System Is there a way to view all file changes under a directory?
I want to get the list of files changed under a directory hierarchy (not the changesets), I don't care about the other files changed outside of the directory hierarchy I want to look at (that would just be noise). Is there a way to get this information without digging into every changeset Thanks, This is a key way we find files that have changed in VSS. People what to see what changed under a particular area of code and are less interested in the other areas so the changeset files not in that hierarchy are noise. I think this one needs to get in soon, it's a natural workflow people have come to expect. ...Show All
SQL Server Getting a file name from Query Analyzer
Hi all, im trying to write a stored procedure that will basically browse a folder and get me the first file that it sees. Is there any way that I can do this in TSQL or using CLR in C# I was thinking something along the lines of using the dos dir command and triyng to pipe it into a variable, not sure how to go about doing this. Any suggestions dir /b ...gives me the bare file names, but it lists all the files in the folder, any way that i can just get the first file ( i dont really care what file). This might help out: http://stevekass.com/blog/wp-content/Folders/sql/TextDriver.htm You can use TOP 1 to get just one file name. Steve Kass Drew University http://www.stevekass.com YoungEngineer@discussions.micro ...Show All
Visual C++ Project organization
I find myself against the wall. I am at a place where I have never gotten beyond because I do not understand the organization of projects. In the past I have done top-down programming. I've gotten fairly proficient with it, even though I have never gotten deep into the system with it. An example of the type of coding I am familiar with is here . While I can understand the concept of classes and objects, the organization of object-based projects throws me. As example, the app I'm writing. Using windows forms I created this project. It has 2 header files (Form1.h and stdafx.h) and 3 c++ files (AssemblyInfo.cpp, ProLite.cpp and stdafx.cpp). So far,all of the code generated by the designer is going into Form1.h. All of it. I know that I am ...Show All
.NET Development Error CS0006: dll not found
Hopefully I have posted this in the correct forum. I have been getting this error when compiling my project for the past few days. It appeared to come out of nowhere and the dll that could not be found, varied each time it happened. I found a website suggesting that this occurred if impersonate = true in the web.config. This was the case with my set up and coincidentally, was set to be so around the time these messages started. I changed it to false and the errors stopped. Presumably though the security set up needs to be looked at now. Does anyone know why the impersonate setting causes this issue For more information on the error see http://forums.asp.net/thread/1344177.aspx Thanks KS ...Show All
Visual C# Exception creating section handler.
hi everyone ,Im trying to create a section in my web.config file ,my .net framework version is 1.1 when I add The code below : < configSections > < section name ="infragistics.web" type ="System.Configuration.SingleTagSectionHandler, System, Version=1.0.3300.0, Culture=neutral,PublicKeyToken=b77a5c561934e089"/> </ configSections > my web application return error: Parser Error Message: Exception creating section handler. Source Error: Line 3: <configSections> Line 4: <section name="infragistics.web" Line 5: type="System.Configuration.SingleTagSectionHandler, Line 6: System, Line 7: Version=1.0.3300.0, Culture=neutral,Publ ...Show All
Software Development for Windows Vista Workflow Persistence, Idle Workflows and External Events
I've been doing some thinking about how the default workflow persistence services work and how it affects those of us writing complex event-activities (i.e. IEventActivity implementations), and I was curious about something. I was reading Paul Andrew's comment on how the default workflow persistence service will only load persisted workflows that are "ready to run", and how it worked with locking when multiple runtime instances across a farm were using the same persistence database (all very informative stuff). However, what I'm not quite clear on yet is what the "readiness to run" of a persisted workflow is determined. Could someone expand on this a little bit Here's what I'm trying to find out: For example, if an act ...Show All
Windows Forms Running a nested message loop
I'm looking for a way to start a nested windows message loop in order to perform blocking calls which keep the GUI active and responding. ShowDialog is not appropriate because I'm not interested in the Modal behaviour but only the blocking call... Any ideas It isn't equivalent because as long as there are no messages in the message queue the thread remains in a suspended state (which meens it isn't getting any CPU time) until a message is queued. Have you tried running a loop and calling DoEvents The difference is notable. ...Show All
Visual Studio 2008 (Pre-release) how to make window do not show in taskbar
i want to display a window with transparent HwndSourceParameters para = new HwndSourceParameters(); para.UsesPerPixelOpacity = true; para.ExtendedWindowStyle = 24; HwndSource source = new HwndSource(para); source.Disposed += new EventHandler(source_Disposed); Window1 win = new Window1(source); &n ...Show All
SQL Server Problem with two consecutive calls to CallableStatement (jdbc driver 1.1, SQLServer 2005)
Hi, I'm getting an error when I make two calls to a stored procedure (which I didn't use to). This is an example: import java.sql.CallableStatement; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; public class Main { public Main() { Connection sproc_con; try { sproc_con = getConnection(); CallableStatement sproc_stmt = sproc_con.prepareCall("{call getID( )}"); for (int i = 0; i < 2; i++) { int id = getID("Test", sproc_stmt); System.out.println(id); } sproc_stmt.close(); sproc_con.close(); } catch (ClassNotFoundException ex) { ex.printS ...Show All
Visual Studio VS changed just created region in VB.NET!
I faced with a weird problem. I created a VSIP package which created hidden regions in C# and VB.NET editor. But I found weird problem. For example, we have a class Test1 and two methods Method1 and Method2: 1 public class Test1 2 { 3 public void Method1() 4 { 5 int i = 0; 6 i++; 7 } 8 9 public void Method2() 10 { 11 int j = 0; 12 j++; 13 } 14} When I tried to create a region which contains, for example, from line "int i = 0;" in Method1 (line 5) to "int j = 0;" in Method2 (line 11), just after executing AddHiddenRegions I found that VS changed region span (from line 4 to line 13)!!!! Why Does anybody explain me, why VS changed a created region How to avoid it Please help. Thanks. ...Show All
Software Development for Windows Vista RegLoadKey in a C# App
I have posted this in the Windows Vista / Windows SDK forum with no luch so I will try here: I have an XP application that I am porting to Vista. The app calls DllImport on advapi32.dll, and kernel32.dll. I am executing the following methods: OpenProcessToken GetCurrentProcess LookupPrivilegeValue AdjustTokenPrivileges RegLoadKey RegUnLoadKey The call to RegLoadKey is returning 1314 in Vista. This indicates that a permission is missing. According to the msdn docs, Backup and Restore are the only required privs. I am successfully assigning these privs in XP but the process is failing in Vista ( I have also verified that I can manually load the hive in regedit). Here is what I am currently doing before the RegLoad ...Show All
Software Development for Windows Vista IssuedToken - Message security verification failed
I am trying to get the InfoCardWSHttpBinding2.zip example working (from http://www.dasblonde.net/PermaLink,guid,0de3e38e-a516-4a33-a85d-3027a505f7b8.aspx ) The first issue I ran into was the algorithmSuite="Basic128" was not working. I set it to Default or Basic256 and the initial error 'key length 128 invalid' went away. I am getting the following error in the service trace: "Message security verification failed. The SamlAssertion has been signed with a token that was not validated according to the protocol. If you are using X.509 certificates, examine your validation semantics." I have included the app.config for both the client and service. The remainder of the code from the example I did not modify ...Show All
SQL Server ParallelPeriod MDX function not working
I created a calculated measure called [Previous Year Percent Rejected]. I used the following expression: ( ParallelPeriod ([Year],1,[Time].[Time Hierarchy]. CurrentMember ),[Measures].[Percent Rejected]) The syntax checks out fine. However, when I try to use the calculation, I get an error message -- with a #VALUE! in the column. The error message reads " The parallel period expression expects a level expression for the argument. A hierarchy expression was used." I tried many different variations but I'm always receiving the same message. Any suggestions David If you're using AS 2005, the problem could be that there is also an attribute hierarchy associ ...Show All
SQL Server Initializing Transactional Replication without a Snapshot in SQL 2000
SQL Server 2005 Books Online provides an article entitled, "Initializing a Transactional Subscription without a Snapshot". Is it possible in SQL Server 2000 to initialize transactional replication without a snapshot So far, I have been unable to find a similar procedure mentioned in the SQL 2000 Books Online . I was able to follow the 2005 procedure using SQL 2000 until I got to the step that says to enable the "Allow initialization from backup files" option on the "Subscription Options" tab of the "Publication Properties" dialog. But that option does not appear in the SQL 2000 version of the specified dialog box. Any ideas "Allow initialization from backup files" is a SQ ...Show All
