larryi's Q&A profile
Visual Studio Team System How to get name, value environment variables from GenericTest programmatically
Hi, How to get Name, value pair of Environment Variables of GenericTest programmatically I can see from the UI, but I can not query from the sql express database. How can I access it from a program is there any API to get it Thanks! Hi, Could you explain a little more about your scenario here like what are you trying to achieve The user defined environment variables can be used on the program name, the working directory and the summary result file path from the Generic Test editor. And also the data is stored in the Generic Test storage file (for example, GenericTest1.GenericTest) Thanks, James VSTS ...Show All
Visual C++ Class Type Redefinition (C2011) OR Unresolved Token (LNK2020)
I'm sure there's a simple solution to my problem, I just can't see it right now. I'm breaking up a managed code wrapper DLL into smaller pieces because I'm running up against a memory limit when I try to link the whole thing at once. I've created a BaseDLL with some common classes, and I've created an UpperDLL that has some more classes and also references some classes in the BaseDLL. In the UpperDLL project, if I add a reference to BaseDLL, then I get redefinition errors when the compiler opens an include file for a class in the BaseDLL: SomeUpperClass.cpp ..\SomeBaseClass.h(11) : error C2011: 'CommonNamespace::SomeBaseCla ...Show All
SQL Server Freeze Panes?
Is there functionality within the Table or Matrix objects to freeze columns or row headers when you scroll thru a wide or long report Similay to the freeze panes functionality in Excel. Thanks Hi, I got the same problem when I select 'group header should remain visible while scrolling' (for either row or column), I got the error [rsFixedHeadersInInnerDataRegion] The matrix ‘matrix1’ includes a table header or column with FixedHeader set to true. This is not allowed on data regions inside other data regions. I have matrix inside a table which I set FixedHeader to False but still ...Show All
.NET Development Unable to import namespace; the notorious bug - is it not fixed in .Net 2.0
The problem discussed in the below link'd article still seems to persist in .Net Framework 2.0. Has anybody else encountered this as well Any practical suggestions Apart from "you can modify all the .xsd and .wsdl files just to get them reverted in the next accidental "update web references" right-click. http://support.microsoft.com/default.aspx scid=kb;en-us;820122 With 1.1, you had to obtain a patch from support (not downloadable). But since I've moved EVERYTHING TO .NET 2.0 now is not such a good time to say "ooops, tharr she blows ..." For a quick refresh the problem was : "...Wsdl.exe cannot process include elements (<includ ...Show All
SQL Server delete text character
hi, for example ; select price from table query results:195dollar I want to see query result only numeric:195 how can I do You could try this: select convert(int, price) as price from table That would round the value to the nearest integer value. ...Show All
Visual C# How to make a method in a windows service.
I made one windows service and i can control the OnStart, OnStop. example protected overwrite void OnStop() { //DO something } my real question is, how to make an own method in windows service and how do i send a string to it.. i would like it like this public string getPass(string tempUser) { string tempPass = ""; //do something do something, return tempPass; } anyone who knows where i can read about this stuff please contact me.. Is this for something external to the windows service If so you can use remoting or use a socket to communicate with i ...Show All
Visual Studio Team System Unable to create a Team Project
Hi, We installed VSTS Beta3 using dual server concept. In first server we installed SQL Server 2005 Sep CTP and TFS Beta3 Data Tier. In the second machine we installed Windows Sharepoint Services(WSS) and then installed windows update for installing WSS SP2 and finally we installed TFS Beta3 Apptier. We then installed VS 2005 RC and then connected to tfs server. We then want to create a Team Project we are getting following error: TFS30177: Team Project Creation Failed Error Insufficient permissions to create a new SQL Reporting Services at VSTSRC. Explanation The permissions granted your user name and ID on the SQL Reporting Se ...Show All
Visual C# Win32 Heaps keeps on Growing
Hi Guys, We've written a Service Application for importing data into our system. It appears that we have a memory leak since the applications grows and grows and grows until it crashes ( OutOfMemoryException ). Using .NET Memory Profiler 2.6 I found that the Win32 heaps seems to be the culprit. Does any one have any Idea what could be causing this issue Hundreds of things could cause this. Most likely (IMHO) * Calling Windows API functions that directly or indirectly allocate memory, and not cleaning up. * Creating objects and never disposing of them (and keeping references to them in, for ...Show All
Visual Studio Team System Migration from Visual Sourcesafe 6.0 to Team Foundation Server
Is there a tool to migrate the existing data stored in VSS 6.0 & VSS 5.0 to Microsoft Team Foundation Server. Also if no tool is available, please suggest the steps to do the migration. Thanks You'll also want to check out the latest documentation on Akash Maheshwari's blog. http://blogs.msdn.com/akashmaheshwari/ http://blogs.msdn.com/akashmaheshwari/articles/category/9741.aspx Buck ...Show All
Visual C++ scanf_s debug problem
Hi, I have just installed Visual Studio 2005 and am upgrading some W32 console programs developed under VS2003. When I compiled them, I got the warning about "scanf" being deprecated. Accordingly, I modified the function calls to "scanf_s" and continued. When compilingg for Release, all works well, but if I compile for Debug, characters from stdin (apart from terminators) are not passed into the program. I knocked up the following to test this - #include <stdio.h> #include <conio.h> void main( void ) { char Text[16] ; printf( "Text " ) ; scanf_s( "%s" ,Te ...Show All
Visual Basic String to REG_BINARY
Does anybody know how to convert a string, containing both text and numbers to REG_BINARY I can convert to hexadecimal, but not REG_BINARY! Help! Hi Tim, You just need to feed My.Computer.Registry.SetValue with an array of bytes. eg. My.Computer.Registry.SetValue("HKEY_CURRENT_USER\MyKey", "MyVal", New Byte() {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, _ Microsoft.Win32.RegistryValueKind.Binary) ...Show All
Smart Device Development Loading images as embedded resource: How to optimize
Hi!!! I have a pda application that uses a dll that I made. That dll has some images that i load as an embedded resource, when i run the application, it takes some time t load all images and i can see in the emulator the images loading... What can I do to make the images load at the same time Thanks in advance A useful method of determining the full name of all embedded resources in your assembly is to use GetManifestResourceNames which returns an array of strings containing each resource filename e.g. string[] resourceNames = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames() ...Show All
Windows Forms How to set a default value for a Combo Box?
I’m creating a Combobox dynamicly at run time, however, I don’t’ know how to set the default selected value for it!! Thanks. Dim MyComboBox As New ComboBox MyComboBox.Name = “MyComboBox” MyComboBox.DataSource = MyDefaultView MyComboBox.DisplayMember = "ItemList" MyComboBox.ValueMember = "ValueList" ----This line has NO effect on MyComboBox!!! ---- MyComboBox.SelectedValue = 6 MyComboBox.Location = New Po ...Show All
Visual C++ link error: LNK1104
I am trying to use a c++ library which I downloaded from the internet tiger.la.asu.edu/C_lib.htm. I was getting a error regrding LIBCD.lib and libcid.lib. When I ignore these libraries I get this error : LINK : fatal error LNK1104: cannot open file 'and.obj' How do I fix this error I don't know what 'and.obj' is or where to find it.It is nowhere on my computer.Im using Visual c++ 2005 Express Edition. Thank you for your help. Hi! Your question is about C++ and here is C# forum . Still, according to linker messages - your library compiled for different build settings and refere ...Show All
Visual Studio Team System How could I add a Setup or a TearDown procedure in the xxx.webtest?
How can I add a Setup or a Teardown procedure in the xxx.webtest, not in the xxxCoded.cs I want to prepare some test data for xxx.webtest before it is run and cleanup this test data after the test is done. But I don't want to do it in the xxxCoded.cs because it will be overwritten once the xxx.webtest is modified. This is correct. The namespace changed after beta2. If you are still using beta2, I suggest upgrading. We have made many fixes since beta2. ...Show All
