A Lundin's Q&A profile
Visual C++ how to terminate threads?
I create one thread function. And started that thread using AfxbeginThread() function, I used AfxEndThread() for stopping thread.........but it doesnt work out. Actually what i do by starting thread Is monitor the changes in the selected folder After ending the thread monitoring could be stopped. but it didnt stopped monitoring........... for stopping the what will i do Marius Bancila wrote: See this FAQ: http://www.codeguru.com/forum/showthread.php t=305166 That provides a decent example of using synchronization objects to ask a thread to terminate. But, it's use of another sync. ob ...Show All
SQL Server Configuration Error in roleManager in security VSS
We have a project that is in a server with windows 2000 (SQL Server 2005 and .Net 2005) And the other developer has a windows XP machine ( .Net 2005) , We are using the VSSC for the project , when the other developer run the application , the following error is show : Server Error in '/XXX' Application. This error has nothing to do with SourceSafe. Moving to SQL groups, perhaps they can help... Alin ...Show All
.NET Development list of files from another web server?
Hi. I was wondering if there is a way to retrieve a list of files given a specific url from another web server I know I could use the FTP classes in .NET 2.0 but this is for .NET 1.1. I also know I could have used the http web request classes however that will not work. I get a 501 error (Not implemented error) the running server will have .NET 1.1 but as for the files, such as images etc... it will be stored on another server somewhere else, not running .NET unfortunatly. Thanks! you could probably use FTP in .NET 1.1 via httpwebrequest unsure but could be a possibility. .NET 2.0 of cou ...Show All
Windows Forms Bit fields
I'm trying to write a general method that can set a flag on an arbitrary bit field. Something like this public static void SetFlag(Enum flags, Enum flag) { flags = flags | flag;//This won't work!! } So that when I write the following it will show "A, B" [Flags] enum Test {A = 1, B = 2, C = 4}; private void TestSetFlag() { ...Show All
Visual Studio Change the default search operator from 'OR' to 'AND'
The Microsoft Document Explorer which underpins the VS2005 help system seems to have the default search operator as 'OR' instead of 'AND'. This is most frustrating as it makes it difficult to easily narrow-down searches by providing a larger set of search terms. Is there a way to set the default search operator back to 'AND' Additionally, it seems to have affected the MSDN library for .NET 2003 which is now also using 'OR' instead of 'AND'. The closest I have managed to get is: Tools > Options > Help > General > Include partial matches in local results - uncheck this. It seems to produce fewer search resul ...Show All
Visual Studio How do I avoid a Target from being skipped?
Target "Exists" skipped. Previously built successfully. I get the above message in a script I am writing. The target is called at more than one place using "DependsOnTargets". The fact that MsBuild is not rerunning the target to update a variable, means that my script is failing. Is there any way to prevent a target from being automatically skipped Could you describe what this target does in case I may be able to suggest something useful Do you prefer not to author your own task Thanks, jeff. ...Show All
SQL Server Upgrade from Sql 2000 Ent edition to Sql 2005 Std edtion
Hi I am looking is it possible to Upgrade from Sql 2000 Ent edition to Sql 2005 Std edtion if yes is it standard upgrade\migration process or some trick involve and also what will happen to lic Appriciate any help Thanks Alps Can you show me where this is documented It's not in the link above. We were thinking that we were going to have to upgrade via backup and restore after uninstalling each instance so that we can keep the same instance names. I would like to know if that is not the case. We are going from SQL 2000 Enterprise to SQL 2005 Standard. ...Show All
Visual FoxPro data grouping report form
dear all, i have a table field22 as Y / N value. I use data grouping to print receipt by printing Y then N. i wan my output similiar like this : - item qty u/price u/amt - Y details item qty u/price u/amt - N details But the problem now its print item qty u/price u/amt - Y let a gap that is reserved for group header details then print group header then ... My questions can i move out the spaces for group header Thanks in advance. Are you asking if you can move the group header bar up against the page header bar (so there is no space for the header) Of course you can… ...Show All
.NET Development Please help me develop a system utility using .net
I formerly use Win32 API to develop my system utility application. But I should know how to access the system functions like Win32 API based on .NET. Anyone can help me how to do Which namespace I should refer to I don't know exactly what you mean by "system utility". But you can call WIn32 APIs through the P/Invoke mechanism. See the System.Runtime.InteropServices.DllImportAttribute. ...Show All
Visual Studio Team System Team Foundation Problems after changing TFSReports, TFSSetup passwords
I had to change the passwords for our TFS domain accounts before upgrading from Beta2 to the RC. Everything seemed to work properly after I updated the passwords for the services utilized by Team Foundation. I've noticed that reports are no longer working (just get a red X on the folder) and I can no longer create new projects. I get the following error: Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting plug-in. Explanation TF30171: The Microsoft.ProjectCreationWizard.Reporting plug-in used to create the new team project co ...Show All
Visual C# c# Insert into Sql
Is there anyway to get the ID of an item inserted into a database at the time of insertion Here's what I mean, I have a database table with 5 columns. First column is called ID, where sql automatically assigns a number. When I make the call from c# it looks something like this. string sqlIns = "INSERT INTO table (name, information, other) VALUES (@name, @information, @other)"; db.Open(); try { SqlCommand cmdIns = new SqlCommand(sqlIns, db.Connection); cmdIns.Parameters.Add("@name", info); cmdIns.Parameters.Add("@information", info1); cmdIns.Parameters.Add("@other", info2); cmdIns.ExecuteNonQuery(); cmdIns.Dispose(); c ...Show All
Visual Studio Tools for Office Installed OutLook 2003 Add-in not available to "All Users"
I need the Add-In to be available to all users on a machine. I'm working from MSDN documents "Deploying Visual Studio 2005 Tools for Office Solution Using Windows Installer (Part 1 of 2) & (Part 2 of 2). I'm using the example in (Part 2 of 2), page 11 verbatim. /assemblyName="OutlookAddin.dll" /targetDir="[TARGETDIR]\" /solutionCodeGroupName=" MyCompanyName .OutlookAddin" /solutionCodeGroupDescription="Code group for OutlookAddin" /assemblyCodeGroupName="OutlookAddin" /assemblyCodeGroupDescription="Code group for OutlookAddin" /allUsers=[ALLUSERS] I've ...Show All
.NET Development HttpWebRequest - Error
I don't get how I can get around this problem I have, the only thing I can think of, is that the headers sent by the servers are different... (note: This is the mini web server within my cable modem) The headers returned by the modem (vb.net errors): "Content-Type: text/html " The headers returned by my local IIS server (vb.net loads html ok): "Server: Microsoft-IIS/5.1 Date: Fri, 02 Dec 2005 15:21:49 GMT X-Powered-By: ASP.NET Transfer-Encoding: chunked Content-Type: text/html " Any ideas Screen shot (of the source+error): http://users.adelphia.net/~micromause/neterr.png NEVERmind... =P Found ...Show All
SQL Server Enumerating Role Permissions with SMO
Hi, I am attempting to enumerate role permissions using SMO. I can enumerate the permissions on a atbel, view, or store procedure no problem. When I try to enumerate the permissions that a role has I get the following error: 'Operation not supported on SQL Server 2000' Can anyone help me in sorting this out. I had the permissions enumerated in DMO but I just can't seem to get it to work in SMO. Thanks, James Hi, I am connecting to SQL2K. I have not problem getting the permissions on a table, view, stored procedure, or function. Its only when I try to get the permissions for a role or user ...Show All
Visual Studio DMD -> DD helper tool (contribution)
Hello. Modelisoft has created, for its own experimentations with the DSL Tools, a tool named Dmd2Dd which makes it possible to remove and create shapes and connectors in the .dd file, when you rename or add concepts and relationships in the .dmd file. The created elements have reasonable names deduiced from the .dmd named elements. And some default resource bitmaps are created as well. This tool makes it possible to get a solution where the code is generated (by the "Generate All" command) and build without any warning / error (if, of course you start from a solution without warning / error) ! We think that this (very simple ...Show All
