Álvaro Peñarrubia's Q&A profile
Visual Studio Team System TFS Installation: Error 28905
Hello, I'm trying to install evaluation version of Team Foundation Server. I got the latest version, and the current installation instructions, from microsoft.com on July 19. Went throught the prerequisite sections of the Single Server instructions - patched, updated, and/or installed Windows Server 2003, .NET Framework, SQL Server 2005, IIS, Share Point. During installation of TFS itself, got "Error message 28905 WiDBLoc could not list of fields to localize from the database." Installation stopped at that point. Does anybody know what could cause this, and what I can do to get past it Any assistance greatly appreciated. Mike Thurber I agree - I think we can make it more obvious in th ...Show All
Windows Forms ContainerControl inside another ContainerControl
<.NETFramework> I am facing problems using a ContainerControl inside another ContainerControl. The child ContainerControl is not getting on the design surface probably. I'm not being able to drop any control (e.g a Button) on the inner ContainerControl. It is dropping the control (Button) on the outer ContainerControl instead. I know there is something like EnableDesignMode in Framewrok 2.0. But I cannot find it in Framewrok 1.1. I would also like to share that I'm working on a TableControl that will be just like an HTML Table Control. I also know that Microsoft has provided a TableLayoutPanel with Framework 2.0. But due to some requirements I cannot go for it. Currently I'm trying to design something like this: <Table ty ...Show All
SQL Server UPDATE where table_name is a parameter
Hi everybody, I'm creating a trigger on update of a table. It simply updates the last change of a specific field to all other tables linked to this field, which is a sort of master-key of the whole database. This trigger works on two different databases: in the first one the tables are "fixed" and I use this statement: update [Dda_additional] set site_id = (Select site_id from Inserted) where site_id = (Select site_id from Deleted); In the second one the number of the tables is a variable, because the adminsitrator can create and delete them with a web-application. That's why I'm using a cursor to extract the name of the tables in this database and then I pass these values to the update query. Here's my code: DECLA ...Show All
Visual Studio Team System Trigger
Importing a database schema using CTP6 appears to save triggers with the name [schema].[TriggerName].trigger.sql. Shouldn't it be [schema].[TableName].[TriggerName].trigger.sql I think the file naming convention should be consistent throught out the application. It appears, at this point there is inconsistency. Indexes, keys, etcs follow one naming convention, however triggers follow since CTP 6 another one (in contrast to CTP5). I am specially concerned about file naming conventions, because these files will be/are under source control. ...Show All
SQL Server Widget Factory Query
Consider the following. Widgets are made of possibly several parts. A table T exists with columns widgetID and widgetPartName. If widget with ID 7 has parts rotor and rooter, T contains tuples: (7, rotor) and (7,rooter) Boss needs table R with two fields: widgetID and widgetPartList. The widgetParts field should be a string concatenation of all widgetPartNames separated by "/": Example: R contains tuple (7, "rotor/rooter"). Big tables, widgets can have many parts. Any ideas I missed that class. I think that is what he wants. Look at what he says: A table T exists with columns widgetID and widgetPartName. If widget with ID 7 has parts rotor and rooter, T contain ...Show All
Visual C# Best way of returning an image based on a string
Part real-world issue, part idle curiosity, this. I'm adding a static class to my project which will provide little images from the resources based on a string value -- specifically, a Type name from the various business objects -- to be displayed on tabs, list-views, that sort of thing. Anyway, it's currently implemented via a big ol' switch statement, thus: switch (typeName) { case "CompanyDataSet.Contact": case "PersonDataSet.Contact": case "CompanyDataSet.ContactDataTable": case "PersonDataSet.ContactDataTable": if (imageState == ImageState.Disabled) { &nbs ...Show All
Visual Studio Express Editions weird exception
THe below codes create an Access violation exception which I could not fix ptmp = a; sortedlist=a; //process of joining both lists, into a single list begining at a while (ptmp->next!=NULL) { ptmp=ptmp->next; } ptmp->next=b; Would you please help me Thanks Thanks for your intereset , sir but I can not publish my codes to the public since this is an hw assignment and someone from my university catch my code so that I have in trouble. So would you please give your mail to help me Thanks ...Show All
SQL Server Issue with printing/exporting reports
Dear ppl, I have designed a report in Visual Studio 2005. The report have a couple of data regions (table and list) + some free text boxes.. The problem is when i print or export the report to pdf etc, it prints/exports a blank page after every page. e.g. if a report is of 2 pages, it will be printed/exported as Page 1 + Blank Page + Page 2 + Blank Page... Can any one please tell me what am i missing here Awaiting, just changed the Report Page width to 22cm from 21cm and it started printing/exporting perfectly without any blank pages... I thought the A4 size page width was 21cm..strange innit ...Show All
.NET Development Problem with XmlSerialization of Nullable Types
I am trying to create default values of a public property of a class in a web service by marking the property with the [DefaultValue()] Attribute. It works fine for simple types, but when I apply it to a Nullable type, like int , it is ignored and is initialized to null on the client. Here are two example classes and the schemas created with xsd.exe: public class NotNullableType { private int _NotNullableInteger; [System.ComponentModel. DefaultValue ( typeof ( int ), "33" )] public int NotNullableInteger { get { return _NotNullableInteger; } set { _NotNullableInteger = value ; } } } < xml version="1.0" encoding="utf-16" > - & ...Show All
Visual Studio Express Editions Showing "1 000" instead of "1000" in textbox.
OIkai, this might be very simple, but I have a textbox with "1000000" in it. And I want it to be shown as "1 000 000". There must be a way to get the data out and change it, and then put it back in the textbox again. Anyone know how And question 2, I found a old vb6 code: If KeyAscii > 26 Then If InStr("0123456789", Chr(KeyAscii)) = 0 Then KeyAscii = 0 Its for making a texbox accept numbers only, but it keeps giving me error on KeyAscii. How can I make it work in vb exp Use a masked textbox to setup the format that you want displayed in the textbox... You can also use the following in a textbox to restrict user input to numeric values: Private Sub TextBox1_KeyPress ( ByVal sender As Object , ByVal e As Sys ...Show All
SQL Server #Error in total fields
I am getting a #error in my subtotal and total fields, I have data in a field (on a table) as follows which displays 0.00 if there is a zero in the divide by field, otherwise it performs the divide and gives me a percentage difference from the two fields. This works fine =iif(Fields!REPCYINC.Value=0,0,(Fields!REPCYINC.Value) / iif(Fields!REPCYPROD.Value=0,1,Fields!REPCYPROD.Value)) * 100 Yet when i try to get this in a total field by doing an AVG it fails, and gives #error, please help, no matter how many iifs a wrap aroun dit it doesnt help. This is the statement that #error's =round(avg(iif(Fields!REPCYINC.Value=0,0,(Fields!REPCYINC.Value) / iif(Fields!REPCYPROD.Value=0,1,Fields!REPCYPROD.Value)) * 100) ,2) Unfortunately this post ...Show All
Visual C++ error in lib: unresolved external symbol
Hi! I had a problem: cannot open LIBC.lib, so I ignored it in Project properties, but it doesn't work anyway. Now it prints : 1>jpeg.lib(JERROR.obj) : error LNK2019: unresolved external symbol __iob referenced in function "void __cdecl output_message(struct jpeg_common_struct *)" ( output_message@@YAXPAUjpeg_common_struct@@@Z) What can I do It seems the error is in the library which I downloaded from the web. thx Did you ever figure this out I know sources are available for that library from Independent JPEG Group's software. I'm trying to recompile that with VS 5, but haven't succeeded yet. Cheers, Frank ...Show All
Smart Device Development How to debug only with foo.exe and foo.pdb file
Hi All, I use VS 2005 to develop and debug applications. But I build via make file so I don't have project file. in case of X86, I can run "devenv foo.exe" and with foo.pdb file, can debug into source level. but not find the way to debug on wm5.0 yet. Please, Could someone throw some light to me This will be similar steps to what's describe in this blog posting: http://blogs.msdn.com/vsdteam/archive/2006/02/05/525224.aspx Just create the dummy project for the same SDK you are targetting from your command line build and it should work. ...Show All
Smart Device Development How to make only parent nodes as bold ?
Can any plz tell how to make only parent nodes as bold and want to increase the size for TreeView. Even I want to make some child nodes as bold I hope, u can help me.. The .NETCF control doesn't support per-node formatting, the same font is applied to all nodes. It is possible there is a third-party custom drawn tree control but I'm not aware of one. Peter ...Show All
Windows Forms displaying pictures from textboxes
how would i display a picture that corisponeds to the textbox entry ex. if you enter apple it would display a picture of an apple edit: in vb On (for example) TextBox1 KeyPress event: { if (e.KeyChar == '\r') { // when you press enter key LoadImagePicture(TextBox1.Text); TextBox1.Text=string.Empty; } } private void LoadImagePicture(string picture) { switch(picture) { case "apple": pictureBox1.Load("C:\\Documents and Settings\\admin\\Escritorio\\Proyectos .NET\\C#\\Images\\est.gif"); break; [... etc .. etc.. etc.. ] } } Regards. ...Show All
