Hughsieman's Q&A profile
Visual Studio Team System *.testconfig - Deployment related query
Hi, I have recorded a webtest such that the apllication uploads the excelsheet. After recording, i have placed the samesheet on the deployment folder. It playbacked the same dat and everything was fine. I have made changes in the excelsheet and onceagain uploaded the sheet on the deployment folder removing the existing one. Now on playback, the browser shows thae data that exists in the previous excelsheet but where as in the deployment folder has newer version. Kindly suggest why is it so Thanks - Vijay. Vijay, the file may be cached by the browser or web server, depending on how you deploy it. Can you remove browser temporary files and restart web server Did this help Thank you, Michael ...Show All
Microsoft ISV Community Center Forums Problems with OpenRecordset outputting text in Access Database
Hi - When I run my VBA code to output text against IDs into fields in my Access DB, I get into an infinite loop without results or errors. How would I teak my code, specifically the subrst.Fields.Count syntax in a Do While statement, to output text results in my DB. I have attached the code to see if someone can spot my problem. Private Sub Form_Current() Dim subrst As Recordset Dim db As Database Dim rst As DAO.Recordset Dim strPhase As String Dim dtDate As Date Dim strClassification As String Dim strFailureType As String Dim ID As String Dim ID_No As String Set db = CurrentDb Set rst = db.OpenRecordset("Select*FROM qryScores WHERE id_NO=[Forms]![frmMODS_TorpedoScores].[ID_NO]") dtDate = rst.Fields("Date") ...Show All
Visual C++ Unexpected operator function call.
I have a class with overloaded operators. The most basic example I can create is as follows. //class.h class testclass { private: char cbuf[50]; public: testclass(){cbuf[0] = '\0';} testclass(char* pchar); testclass operator+(testclass& nclass); testclass operator+(char* pchar); testclass& operator=(testclass& nclass); testclass& operator=(char* pchar); operator char*(); }; //class.cpp #include <string.h> #include "class.h" testclass::testclass(char* pchar) { strcpy(cbuf, pchar); } testclass& testclass::operator=(testclass& nclass) { strcpy(cbuf, nclass.cbuf); return *this; } testclass& testclass::operator =(char *pchar) { strcpy(cbuf, pchar); return *this; } testclass tes ...Show All
Architecture About WAP server.
Please help me! How to install a WAP server Can a WAP server be expanded from a Web server (e.g. IIS) Thank! A wap server is a web server configured with some mime types. You can configure IIS to support wml extensions by adding the following MIME Type: text/vnd.wap.wml ------------------ .wml ...Show All
SQL Server Problem with a script to create a DB
hi, I am writing from argentina, and the question is beacuse I have problems to create a new DB from a script, in SQL Express Edition when I execute the query the following erros appears: Msg 5133, Level 16, State 1, Line 1 Directory lookup for the file "c:\dce05\dce05_ejemplos_estrella1_Data.MDF" failed with the operating system error 2(El sistema no puede hallar el archivo especificado.). Msg 1802, Level 16, State 1, Line 1 CREATE DATABASE failed. Some file names listed could not be created. Check related errors. Msg 911, Level 16, State 1, Line 2 Could not locate entry in sysdatabases for database 'dce05_ejemplos_estrella1'. No entry found with that name. Make sure that the name is entered correctly. Msg 2714, Level 16, ...Show All
SQL Server Excel Worksheets Become Corrupt -- Bad Metadata?
One of my main users has had a few Office 2003 SP2 worksheets go corrupt on him and I can't seem to figure out why. For performance reasons, I recommended that he use page filters whenever possible. As of late, he'll send a workbook along that has a few page filters (between 3 and 4) and one of the page filters gets mixed up somehow. For example, let's say he has a Product Line page filter and a Product Name page filter. The Product Line page filter has multiple selections enabled and he will go ahead and select a few product lines and save the file so he can simply refresh the data in the future. Eventually, the Product Name filter will actually contain the Product Lines and the Product Line filter becomes unusable, usually resulting in a ...Show All
Visual Studio Tools for Office How to get the Excel dialog that allows to select multiple cells?
Hi team, I am working on a project, and am looking for a way to click a botton on the Actions pane that opens an Excel dialog like the one in the chart data area selection that allows me to select several cells by dragging the mouse over them; even using Ctrl- and Shift for multiple selections. The resulting cells should be shown on a textbox like "A2:A7" or "A2;A4:A7". I am programming the application in C#. Thanks for your help Doriak Misha, Thank yor for the answer. I have only one final question. I tested the method, and saw that the returning string (rng.get_address()) does not returns a sheet name in case that you select a cell range different from the current ...Show All
Gadgets Help test the screensaver gadget
Before releasing this to the masses, I was wondering if a few of you could go ahead and install my gadget and see if it works. It works on my machine but may not on someone else's if things don't register correctly. The gadget is a simple screensaver gadget that embeds a screensaver that you choose into its window (see http://blogs.msdn.com/photos/markhsch/picture1718045.aspx for a screenshot of it using the Ribbons screensaver). If you install it and it displays a white window with a red x, remove the gadget and re-add it to the sidebar to see if it goes. If you do test, please post on this thread with your results (either positive or negative). Thanks and here's the link: http://www.schmidt6.com/blogfiles/ScreenSaverGadget. ...Show All
Visual Studio Team System how to retrieve source control structure
A team project has already been created and i need to retrieve and display its source control structure (list of folders in source control) in my application programatically. How can i do it Manasi Call GetItems() with RecursionType.OneLevel on the folder you want to display. When the user drills into another folder, call GetItems() again. Cache the results of each call. This will be much faster than doing a full recursive query at the beginning. (edit) link: http://msdn2.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.versioncontrolserver.getitems.aspx ...Show All
Visual Studio 2008 (Pre-release) Design Question - What is the best way to implement a human readable string mapping for enum values?
We have various enumerated types in our system and we obviously want to present human readable values that can be easily configured by our UI folks rather than the cryptic identiofiers that we use in the code. Just wondering what facilities are available in .NET 3.0 to accomodate this kind of thing. In the old days, I would use some sort of string resource and a mapping table for the lookup. Anybody got any cool/slick ideas on this Thanks NIK This all great stuff guys, Thanks. Luckily 1) Localization is not an issue - probably the last English-only app. in the world, but I'm not complaining. 2) We own the code for all the enums. Seems like whether or not I use XAML resources or traditional string resources ...Show All
Visual Studio 2008 (Pre-release) Is it possible to pre-fetch data from a relationship or make it fetch on-demand instead of requiring a call to .Load()?
While on the subject of loading foreign key references... Is there some mnemonic I can throw into the LINQ query to tell LINQ to Entities that I want to pre-fetch all of the type data because I want to filter on it When I do: var filteredQuery = from game in gamesDb.VideoGames where game.Type.Name == "Nintendo Wii" select game; foreach (VideoGames g2 in filteredQuery) Console.WriteLine("{0} : {1}", g2.Title, g2.Type.Name); That thing works fine, and I don't have to loop through and call TypeRef.Load() Is there something I can stuff in the query when I'm not using a where clause that will force the TypeRef to pre-fetch Oh, something else occurred to me.. The ORM.NET code I used and modified h ...Show All
Smart Device Development SHFileOperation failing!!!!
Hi all I was trying to copy a directory along with its contents using the SHFileOperation api as follows. SHFILEOPSTRUCT st_FileOp; memset (&st_FileOp, 0x00, sizeof (st_FileOp)); st_FileOp.wFunc = FO_COPY ; st_FileOp.hwnd = hDlg; st_FileOp.fFlags = FOF_ALLOWUNDO | FOF_MULTIDESTFILES | FOF_NOCONFIRMMKDIR | FOF_NOCONFIRMATION; st_FileOp.pFrom = L "/My Documents/New Folder/*\0" ; st_FileOp.pTo = L "/Temp\0" ; if (!SHFileOperation(&st_FileOp)) { MessageBox(NULL,L "Copied" ,L "Done" ,MB_OK); } else { MessageBox(NULL,L "Copy Failed" ,L "Not Done" ,MB_OK); } But i am getting an error: error code 183:"Cannot create a file when that file already exists." ERROR_ALREADY_EXISTS. ...Show All
Visual C++ Error when going to wizard mode from tabbed mode
Hi friends, Unhandled Exception in TabbedDialobBox.ex (MFC42D.DLL):0xC0000005: Access Violation I am getting the above error when i am inserting the code line "SetWizardMode()" in my code, But when i am running it in the tabbed mode it's working perfectly, When i tried to debug i got that some where assertion is being done due to the abscense of the window handle, but it is working in tabbed mode.With out a handle how can it work in tabbed mode.That's why i am unable to solve. Please send me the solution for the problem. With regards Suman#SS185 I doubt you're going to get "a solution to this problem" based on the information given. You should use the debugger and diagnose this problem ...Show All
Smart Device Development Serial Port problems
Hi. Running Imate SP5m with .NET CF 2.0 SP1 I have contacted Imate (on the side: poor support) who confirm that Raw/Serial IR access is possible and is on COM3. In the registry it says COM4. Anyway... If I use the serial Port class to open COM4 and write to it, I have the issue where when we do a serialport.write("hi");, the application does nothing. it just hangs, no exceptions are thrown. It does not even get to serialPort.Close(); If I use the serial Port class to open COM3 and then write to it, I get an exception @ serialPort.Write("hi");: at System.IO.Ports.SerialStream.WinIOError() at System.IO.Ports.SerialStream.Write() at System.IO.Ports.SerialPort.Write() at SerialIrTests.Form1.mnuStart_Click() at System.Windows.F ...Show All
Visual Studio Unable to uninstall Trial version of VS 2005 Professional
I have the trial version of VS 2005 Professional installed on my PC. The trial period has ended and now I want to install my fully licensed VS 2005 Standard . During my attempts at installing VS 2005 Standard I experience the following: Upon opening VS Standard, VS Pro Trial opens, instead, with the message that the trial has ended, please upgrade. When I try to uninstall VS Pro Trial, it fails. The first time I tried uninstalling it, the uninstall process hung for over two hours, so terminated it and restarted my PC. During the second attempt, the uninstall failed because an .msi file was missing. I tried to re-install the product (VS Pro Trial) in order to get all the files back, but I was unable because the previous install ...Show All
