giuln's Q&A profile
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin If your application works as expected then the owenrs of WinDoctor might have more details. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio How To: Access the Team Build items in the list of Builds with Add-In?
I am working on an add-in that will let me interact with the list of builds that are displayed when you double-click on a build type for a given Team Foundation Server project. How can I get a reference to the "build list" window, and more specifically, to the build that is currently selected within my add-in code I've seen some example code on this forum for accessing the version control window/items but I'm not sure how to do it for the "build" window. Thanks. Eugene, Thanks - this link has some interesting code, however, it's not quite what I'm looking for. The link you provided shows how to get access to the selected Build Type in the Team Explorer window. What I'm looking for is a way to get a ref ...Show All
SQL Server How to guarantee unique of columns > 900 bytes
We have an app that threads together emails coming out of Exchange, using their messageid. To ensure threading works correctly, we need to ensure uniqueness of messageid, which we do with a unique index (we also need to be able to lookup by messageid when a message comes in). We are currently porting the app from Oracle and PostgreSQL to SQL Server and are having problems with the 900 byte max length of an index. The problem is that the maximum size of a messageid (according to the Exchange docs) is 1877 bytes. How can we guarantee uniqueness Yes, hashbytes should be marked as deterministic. It was a bug. We found it after RTM and fixed it in SP1. So if you try it on SP1 like below it will work ...Show All
Internet Explorer Development Digest Authentication, WinInet, RTSP
I have a website running on a server which is offering both basic and digest authentication. From the website I make http and rtsp-requests against the server. I am using the WinINet API for the http-request and then I can leave the authentication process to WinINet. But WinInet does not work for rtsp-request. Because of that I have used InternetQueryOption (flag:INTERNET_OPTION_USERNAME and INTERNET_OPTION_PASSWORD) to retreive the credentials from the http-requests and then I can use those credentials in the rtsp-requests as well. However I now want to use digest Authentication and then InternetQueryOption only returns an empty string for both username and password. I could prompt the users for the username and password but that means th ...Show All
Visual C++ Update Single Item In ListBox
Hi All, I have an owner-drawn a list box.I'm drawing the things I required properly. But the problem is I have a timer and I need to update some specific items in the list box. Is there anyway to refresh or invalidate an item in the list box I'm thinking in the way of re-setting the item's text, so it will re-draw no But I think it's a weird logic. Could you please help me in this regard ok let me explain each things step by step 1. I have a listbox class which do some owner-draw stuffs. 2. A timer placed in the class. Which is used to show a clock in an item of the list box. 3. Invalidate is there for help me, but it will redraw the entire content and it's very costly :(. Giving a specific rectagle to redraw in the Invalida ...Show All
.NET Development Displaying text as XML on a web browser
How can I change this code to make it display the contents of xmlString on the browser in XML format instead of as ordinary text as now Private Sub Page_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load If ( Not Page.IsPostBack) Then Dim xmlString As String = "<CiscoIPPhoneText><BR>" xmlString += "<Title>Arrests</Title><BR>" xmlString += "<Text>C# XML text</Text><BR>" xmlString += "<SoftKeyItem><BR>" xmlString += "<Name>Next</Name><BR>" xmlString += "<URL& ...Show All
SQL Server how to manage the transactions log
i have fixed the log to 30GB thinking that it will replace the old data if it reachs the limit but my server stopped working because of the log and i was getting: The log file for database 'TEL_DATA' is full. Back up the transaction log for the database to free up some log space. what can i do Hi, you can not tell it to store the data for just two day or so , but you may schedule T-Log backup frequantly to keep your T-Log in shap, here are some KBs and threads for T-Log filling up cause and how to reduce it Causes of SQL Transaction Log Filling Up http://support.microsoft.com/ id=110139 http://www.support.microsoft.com/ id=317375 How to stop the transaction log of a SQL Server database from growi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA framework for non C#
One of the great advantages of the .NET framework is that developers can work on the same project in different programming languages. As I'm reading about XNA, it seems that this will not be possible with the XNA framework. Will the only programming language that has access to the XNA framework be C# When you say C++/CLI, you mean the pure CLR mode Will C++/CLI mixing managed and native code work with XNA or not I can't imagine that they would allow you to distribute any unsafe, non-managed code. That sort of defeats the purpose, it seems. This is probably one of the major reasons that DirectPhysics is being implemented (just a guess). With the addition of physics, you will have managed control over all aspects of the game ...Show All
SQL Server Accessing password_hash by users in SQL Server 2005
In SQL Server 2000 we had a view that would show the user credentials and the password hash. The reason we need this is that we use SQL Server authentication on the database. To test users, we have a login with little access, and it should be able to see the view and compare the password supplied against what is in the database, and then let the code handle a graceful exit if the password is invalid. I am trying to do this with SQL Server 2005, and I am running into trouble. I am trying to do this with a function, since there I can set the EXECUTE AS clause (in theory) and leverage the privlidges of a specific user in the database. Here is an example function: CREATE FUNCTION check_acct.fn_allusers (@test int) RETURNS @users table ( ...Show All
SQL Server Database 'model' corrupted
Hi, my 'model' database corrupted and my SQL Server 2005 Express can't be started. I believe I have the SAME problem as his: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=455524&SiteID=1 but when I try the command start sqlservr.exe -c -T3608, an error message appeared: "Your SQL Server installation is either corrupt of has been tampered with (Error getting instance ID from name). Please uninstal then re-run setup to correct this problem" Well, the problem is that I have an ActiveBPEL database inside, and I really need a way without reinstalling it. Any solution Thanks, Edwin As it happens, I wrote a blog post on exactly this situation not long a ...Show All
.NET Development Search for a file name on disk.
Hi, I am creating a small application which works like a utility. I need to pass a file name as a commandline argument and after pressing Enter key, it should search the file name in the entire disk and it should give the path of that particular file. Like in Windows, when we see search for files and folders, we provide file name and it gives all possible combinations. Here in my case file is unique and would placed at single location on disk. So that would made the search easier. But how to search that file name on entire disk A quick help is appreciated. Regards, But the thing is I dont know which directory my file is in. I just have file name with me and when I provide the file name (without directory) it should search on ...Show All
.NET Development returning result of sql query in a string
Hi. I need to create a function in c# that returns the result of a query in a string, so far I have this: public string GetModules(CTP_ID) { string modules DBConnection connection = new DBConnection(); // create the data adapter SqlDataAdapter daMod = new SqlDataAdapter("select count (*) from courses where ctp_id = 'Biannual Update Courses'",connection); -- (all on one line) // create an empty data set DataSet dsMod = new DataSet(); try { connection.Open(); daMod.Fill(dsMod,"connection"); modules = this is where I want the string (modules to be the result of the query) } catch (Exception ex) { lblMessage.Text = ex.Message; } finally { close the connection connection.Clo ...Show All
SQL Server WSS 3.0 adding trusted accounts
Seems only a few of us are experimenting with WSS 3.0 and RSS 2005 (requires sp2 ctp). I've gotten just so far after battling several installation problems. Only Brian Welcker and Spyuta (sp ) have been active here or on their blogs about this. While the instructions are good at the RSS addin for sharepoint page, http://download.microsoft.com/download/f/2/5/f250ed72-c102-4216-8653-63189e24fa02/readme_rsaddin.htm , there are some notable word mismatches. Under the section "Install the Reporting Services Add-in and Configure the Report Server on the SharePoint Technology Instance" they refer to granting accounts access to the database, which is labelled, 'add trusted accounts'. This is as far as I can go because within that step ...Show All
Windows Forms ClickOnce: WindowsInstaller vs. NET 2.0 prerequisite
Hi, I just noticed that NET 2.0 bootstrapper package contains WindowsInstaller-KB893803-v2-x86.exe, the same file as inside the separate package WindowsInstaller3_1 Looks strange to me. Why do we need a separate install for WindowsInstaller3.1 in the context of ClickOnce deployment, if ClickOnce requires NET 2.0 and WindowsInstaller3.1 is a part of NET2.0 package Originally I included WindowsInstaller3.1 as a prerequisite, but now it seems an unnecessary load on my deployment, since it comes with the NET 2.0 package anyway. Please correct me if I'm wrong, may be I'm just working too many hours today Thanks, Leonid. Seems I found an answer: 1. NET 2.0 package looks for Windows Instal ...Show All
Visual C++ unresolved external symbol
hello, I opened a second thread because this problem has nothing to do with the name of the topic of the other. I posted this also in Visual Studio C++ Express Edition because this problem might relate to the IDE. I want to implement a simple c++ programm which has a header file and a implementation file. the header file: [code] #include <iostream> namespace main_savitch_2C { class statistician { public: void next(double r); private: int count; }; } [/code] and the implementation file which contains now only the definitions: [code] #include "stats.h" using namespace main_savitch_2C; void statistician::next(double r) { } [/code] But when I try to compile this very simple program, the following error occurs: --- ...Show All
