IamLost's Q&A profile
Visual Studio Team System Can't load assembly in a new AppDomain during a unit test
Hi, I'm writing a class that creates a new AppDomain, creates an instance of a class inside that domain (using AppDomain.CreateInstance) and calls some instance methods. All works fine if I use the class from a simple console application. When I try to use this class from a unit test I get the following error during the call of AppDomain.CreateInstance: 'System.IO.FileNotFoundException: Could not load file or assembly 'MyAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Impossibile trovare il file specificato.=== Pre-bind state' Following is the sample code: The unit test [ TestMe ...Show All
Windows Forms List of Generic Collections? Trees?
Where is there a published list of generic collection classes available in Whidbey If there's no list available, are there any Tree classes such as red-black, AVL or b-trees I realize this is an old post, not sure if anyone is still monitoring it anymore or not but I wrote a generic implementation of an AVL tree that you are welcome ...Show All
Smart Device Development Access to serial port in a WinCE device
Hi, I am developing a WinCE application for a PDA and i need to access its USB port. I am trying to access a serial port, using the function CreateFile, and when I execute the .exe in the PDA (it compiles and links well on PC), it returns me a '120' Error (This function is not valid on this platform.). In the web requirements fot this function it says "OS Versions: Windows CE 1.0 and later", and the PDA has 'Microsoft Pocket PC Version 4.20.0' installed, so the platform is compliant, isn't it I am working with the eMbedded C++ 4.0, Pocket PC 2003 SDK and has installed evc4SP4 What can be the problem Here is the ...Show All
.NET Development .Net client and Java server integration
Hi, My name is Liran, Im working on a project that the server is written in java technology (APACHE TOMCAT) and we considering now to turn the client to windows application instead of web. Our main option is to choose .net c# as our client technology and the connection to the server will be by web services on the server side (the webservices is written in java). I already made a prototype to check it and it worked really good. Im trying to get some information about the risks that i need to take into consideration if i choose this option. so if someone already dealt with it ill really appriciate your help. Best regards, We have both Ja ...Show All
Smart Device Development Get Device ID from Desktop
Hi All, First of all, I would like to apologize if this is not the right forum to post this type of question. I have tried to post it in .NET Networking & Compact Framework section, but there were no replies. I would like to create an application that reside in desktop side, that is capable to get the device id from the PDA through ActiveSync. I have been able to retrieve the id through P/Invoke (KernelIoControl) if the process is executed inside the PDA. However, it has been a lot of difficulties once I try to do it through desktop. I read about RAPI, and found that there is an unmanaged call from ceutil.dll (CeGetDeviceId) ...Show All
Windows Forms Merging two images as one
I have a problem that I can's seem to find the solution anywhere. I'm trying to take an image, resize it down to a 200(h) by 266 (w) canvas. I need this to scale proportionately to the canvas. So, if this is a wider image than normal, then there needs to be white space at the top within this canvas. If it ...Show All
Windows Live Developer Forums What consitutes a query?
I know that the max queries in a day is 10,000, and the maximum results per page is 50. If I have a query that has 1000 results, so that it returns 20 pages at 50 results a page, does this still count as just 1 query towards my 10,000 limit OR does it count as 20 queries since 20 pages were returned Thanks. That would only count as 1 query, your results are part of a query and have no affect on your query limit. ...Show All
Visual C++ Help with adding Keyboard shortcuts
Hi Everyone, I am very new to programming in Visual C++. However, I am finding it to be quiet interesting. I am working on a project in wish I had to develop GUI's,. I have implemented the GUI with some buttons included. One task that is currently beating me is implementing a keyboard shortcut. I have a botton called "RUN" and want to use "ALT+R" to invoke the run button. Can anyone kindly help me with this. I have tried doing this with Java and it works but I don't know of any C++ function that will perfor this task. Can a C++ gaint help me out Thanks in advance. What technology are you using MFC, win32 APIs, winforms, etc ...Show All
Visual Studio Team System CQConverter analyze exception
Hi, We are trying to migrate data from ClearQuest server into Team System. We are using FSTS beta 2 installation. When executing CQConverter /c:analyze on specific work item (record type in ClearQuest) it fails with following CQ exception: An error was detected retrieving information from the ClearQuest database. There is a reference to an object that does not exist: Object Type: State Object: "" of record type "Defect" This error was detected at: ClearQuest Core:adentitydef.cpp:2948 Recommendation: If you cannot determine how to resolve this issue, contact Rational Support and provide all the above information as well as a de ...Show All
Windows Forms BackgroundImage Property (Forms) won't work!
I tried setting a background image to my form , imported in resources the right file type (jpeg , png) and they are not shown, background does not load the image selected. Why is that happening Dan Petrescu alias fulga Would you please describe in details how you set the background image for your form - through designer or code That will help with investigating the problem. Thanks, ...Show All
Visual C# C# adding a record to an access Database
DataRow dr = _dsComment.Tables[ "Comment" ].NewRow(); dr[ "OrdNo" ] = _Order; dr[ "Name" ] = UserName; dr[ "Date" ] = System. DateTime .Now.ToShortDateString(); dr[ "Comment" ] = frm.Comment; _dsComment.Tables[ "Comment" ].Rows.Add(dr); OleDbCommandBuilder cb; cb = new OleDbCommandBuilder (_DaComment); _DaComment.Update(_dsComment, "Comment" ); I already filled the dataset on the form load event. I am getting an error saying Syntax error in INSERT TO statement. I thought that the commandbuilder builds those commands. I am trying to add a new record to a database table which is in Access.  ...Show All
Software Development for Windows Vista Drivers for Vista and Inspiron 9400
Hi, I need information about what are the drivers that I need for windows vista and Inspiron 9400 . I am getting the following messages just before the install begins and a few of the app compat reports that were generated upon different setup failures. The reports say .. Update after installing Windows Install new versions of these programs Base System Device 1394 Net Adapter My configuration of Inspiron is Inspiron 9400 (2.0 GHz; 2.0 GB RAM; nVidia Geforce Go 7800 w/256 MB.. Where do I get new versions Thanks in advance.. I tried ...Show All
Visual FoxPro 2 open files for a foxpro.exe file being used by a particular user
When you run a foxpro application exe file that is located on a server from a workstation it will display 2 instances of the application being accessed by a particular user. You can verify this by going to: Control Panel/Administrative Tools/Computer Managment/Share Folders/Open files. You will see 2 open files for a foxpro.exe file being used by a particular user. This seems to only happen with foxpro applications. Why is this By default resource file name is foxuser (dbf and fpt). Be sure resource setting is off (config.fpw might have been compiled into exe without resource=off setting) . ...Show All
.NET Development Getting a picture by web service
Hi all, I'm building a web service that gets a pupile details from a database by giving his ID number. I have no problem with the personal details. Now I'm dealing with the pupile picture. 1. How can I deal with the pictures in the database. 2. How to get them by the web service. 3. What is the format can I get the picture, can I get it as XML stream, and get it back. Please help me. and if you know a link for a web service tutorial that get a pictures. Best regards... If it was a permissions issue then you should probably get a Sytem.UnauthorizedAccessException with the error "Access to the path <path&g ...Show All
Windows Forms DataGridViewCell Style Overridden
I have implemented a DataGridView which will change the appearance of a DataGridViewCell once the cell has been edited. This code doing this is equivalent to the following: DataGridViewCellStyle dirtyCellStyle = new DataGridViewCellStyle() ; Font font = new Font ( DataGridView .DefaultFont, FontStyle .Bold); dirtyCellStyle.Font = font; dirtyCellStyle.ForeColor = SystemColors .ActiveCaptionText; cell.Style = dirtyCellStyle; // Set the cell style. Unfortunately , whenever a column sort is performed, the cell display is changed back to its original appearance. Is there some setting I'm missing ...Show All
