jocuppens's Q&A profile
Visual Studio Team System tfpt rollback - merge
hi I've been trying to use the "tfpt rollback" command in order to roll back CS (not the last one!) I have the following CS : 134 : //line 2 133 : //line 1 132 : //new line I want to return to CS 132, which means (to my understanding), preforming rollback on 133. am I wrong my problem : C:\WSname>tfpt rollback /changeset:133 Bringing the workspace up to the latest version... Starting auto-merge for file C:\WSname\Readme.txt C:\WSname: edit: Readme.txt Auto-merge was unsuccessful (left 1 conflicts). Third-party merge was not successful. Undoing edit: Readme.txt I'm using "Beyond Compare" but the merge doesn't seem to be accepted. I've also tried using the "diffMerge" - no s ...Show All
Smart Device Development .Net CompactFramework 2.0 data question
Hi everyone, Does the .Net CompactFramework 2.0 support the System.Data.Odbc namespace I'm using VS 2005 for a CE 5.0 project and I need to connect to a database via ODBC. Thanks in advance, Dave Neither NETCF nor Windows CE support ODBC. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Content - XNA + SpriteBatch in a windows form
Hey everyone, small problem here. I've managed to get XNA to run inside of a Panel in my windows form, but my problem is that I can't figure out how to load textures to sprites, since my form does not extend Game. And even when I make a game class, it still says that it can't find my image file, even though I am quite sure it is there. When I look at the debugging process further, I find that it is looking for a file called (imagename).xnb What is this file And why is it not being created like it should be Any help would be greatly appreciated. This is the line in trouble (pixel, obviously, is the name of my image): SpriteTexture = content.Load<Texture2D>("pixel"); Either way I think it would be abou ...Show All
SQL Server Upgrade from SQL 2000 to SQL 2005, same machine for both instances?
I am trying to install SQL2K5 on my machine where I already have SQL2K installed. The best I have managed to achieve is to get SQL2K5 EM looking at my SQL2K databases. Do I need to uninstall SQL2K before installing SQL2K Depending on what combo of SQL I have installed my options on SQL2K install vary. I am a bit lost at this point. Anyone know a link to a good white paper type doc that guides me through an install on the same machine. Thanks In Advance MPM Just run setup.exe from the SQL 2005 installation media. You can upgrade in place (which is what it sounds like you want to do), or install a new instance. Once you've got Setup running you can click on the Help button and get more d ...Show All
SQL Server Problem in a QUERY with COUNT
CREATE PROCEDURE [dbo] . [GD_SP_HARDWARE_MONITOR_COUNT] -- Add the parameters for the stored procedure here @Direccao nvarchar ( 10 ) AS DECLARE @NrMon int BEGIN SELECT dbo . Monitor . MON_Monitor AS Item , COUNT (*) AS Unidades , dbo . Monitor . MON_CustoUnitario AS Total FROM dbo . HARDWARE INNER JOIN dbo . ADServico_User ON dbo . HARDWARE . UserID = dbo . ADServico_User . UserID INNER JOIN dbo . SERVICO ON dbo . ADServico_User . GrupoServico = dbo . SERVICO . S_GrupoServico INNER JOIN dbo . Monitor ON dbo . HARDWARE . MONITOR_ID = dbo . Monitor . MONITOR_ID WHERE ( dbo . HARDWARE . MONITOR_ID <> 5 ) GROUP BY dbo . Monitor . MON_Mon ...Show All
Architecture Preventing denial of service attacks in public APIs
Hi Forum We are building some web services which will be available to our customers. What is the best way to prevent denail of service attacks My worst fear is actually the accidental never ending loop that a programmer might do. How does one prevent a never a ending loop by an external programmer Is it something that should be programmed into the application Max Object Limit on Inserts - Valid option I can see that if would be quite easy to prevent too many inserts. We could decide on a limit of max entries pr. user for each object type and then do a count before each insert. This is by no means a way to prevent denial of service but it could be one of the tools to use Is it a bad idea - It cannot do anyting about reads, ...Show All
Visual Studio Express Editions Listbox1 dagdrop to Listbox2 & reorder items
Hi, I use Listbox1 items as source & dragdrop to target Listbox2. I then am able to reorder Listbox2 items using dragdrop. I can clear Listbox2 selected items by hitting delete. I am having some difficulty with this code as 1, 2, 3 is adding itself to Listbox2 as I reorder. Please try this and help me debug it Thanks ! [code] Dim textcursor As Cursor Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListBox1.Items.Add("apples") ListBox1.Items.Add("peaches") ListBox1.Items.Add("oranges") ListBox1.Items.Add("bananas") End Sub Sub drawcursor(ByVal text As String, ByVal fnt As Font) Dim bmp As New Bitmap(1, 1) Dim g As Graphics = G ...Show All
Visual Studio Express Editions Question about converting data types
Good day, I'm having a little problem in C# while reading from a binary file. What I am trying to do is get the decimal value of 2 bytes of hex data, i.e. "0008" in hex would become 8 in decimal data. Problem is, whenever I try to read it it outputs 2048 or something similar, at least not the number I am looking for, which means I should be doing something wrong... Do you have any idea to get a right number out of this My current reading code: -------------------------------- private int packageType; // Nothing interesting to see here either map = new FileStream (url, FileMode .Open, FileAccess .ReadWrite, FileShare .ReadWrite); BinaryReader br = new BinaryReader (map); map.Seek(0, SeekOri ...Show All
Microsoft ISV Community Center Forums Edit Record Error
Bachground:I have an access data base front end, who's tables are linked to an sql server backend. In turn the tables are connected to the Forms Dinamically. For example: ME.recordSource = "SELECT * FROM tblCustomers WHERE loc = '" & location "'" Theres one main form with about 5 Subforms connected to it all placed on tabs. About 3 of the forms record sources refer to the same table. When I have the main form on the last record and I try to delete a record on one of the particiular subforms I get the following message. ***The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time.*** In all other circumstances it deletes fin ...Show All
Visual C# Properties.Settings.Default.Save(); does not save a user.config file.
I have settings that are in the user scope and I can update them at runtime. When I call the save method,nothing gets saved. Any ideas If your App.Config file is stored with the program under Program Files somewhere, a normal user (non-admin, non-power user) will NOT be able to write to that file. Something to be aware of... ...Show All
Visual Studio 2008 (Pre-release) Binding NOT operator (!)
I was hoping that binding syntax had some sort of syntax for the not operator like: <CheckBox Name="MyCheckbox" Content="Enable"/> <StackPanel IsEnabled="{Binding ElementName=MyCheckbox, Path=!IsChecked}"> <Button>Ok</Button> </StackPanel> This would enabled the stack panel and button if the checkbox wasn't checked. If this can't be done what is the guidance for doing this Creating a ViewModel and binding to that It's not built in, but it's easily done using a value converter. <StackPanel IsEnabled="{Binding ElementName=MyCheckbox, Path=IsChecked, Converter={StaticResource MyConverter}"/> public class MyConverter : IVal ...Show All
.NET Development A Read-only dataset
I have a singleton class which contain a DataSet. And also provide a property which return the dataset. How can i return a readonly dataset so that the object that is asking for it wont modify the data and the structure of the dataset Thanks, Hi Just seen this as was looking for same answer to do the exact same thing, quick method is to use DataColumn.ReadOnly = True. This will cause exceptions if someone tries to edit your lovely dataset after you've specnt all that time loading it! Obviously this is quite limited as someone could change these properties back again but it may help stop someone doing by accident! ...Show All
Windows Forms datagridview cell selecting
hi, i have a datagrigview with columnheader and rowheader . the default behaviour for the topleftcell click is to select all cells. is there a way to bypass this functionality ( none cells selected ) or to disable that cell thanks thank you, Zhi-Xin Ye i verified that ... succes i worked with OnMouseDown but i did not 'see' the HitTest solution ... thanks again and to all others ...Show All
Software Development for Windows Vista Error installing Introduction to CardSpace sample app
Hi, We are trying to get the sample CardSpace application up and running on our platform but are running into some issues. Here are the details: O/S platform: Windows XP SP2 (with all the security patches applied). IE 7.0 RC1 .NET SDK 3.0 RC1 When running the install.bat, get an error message as follows: [ERROR] GetCertificateThumbprint( My, localmachine ,www.fabrikam.com ): unable to find matching certificate Here is the complete output: -----------------------BEGIN OUTPUT------------------------------------------------------------ C:\Documents and Settings\Administrator>cd C:\Temp\Downloads\Introduction to CardSpace with Internet Explorer 7[1].0 C:\Temp\Downloads\Introduction to CardSpace with Internet E ...Show All
.NET Development Is there any problem at Windows Installer 3.1 Fix
Hi... For these 2 weeks i have got trouble with windows installer. Whenever i try to prepare a web deployment and wheneever execute the created msi.exe i always het memory errors. I thought there may be problem at the installation of framework and VS.NET 2003. I have uninstalled it. Whenever i tried to install VS.NET 2003 i again got windows installer msi.exe error about the memery error.... The instruction at "0x00eb5d78" referenced memory at "0x00eb5d78". The memory could not be "written" I habe server 2003 with SP1 and the last fixes of the security updates. I have downloaded last verison of windows installer and it's fixes from http://blogs.msdn.com//windows_installer_team/archive/2 ...Show All
