George3's Q&A profile
Visual C++ VS2k5 .Net - Recompling previous versions Problem
Hi all, I wrote a program in VS2k3 .Net a couple of years ago, and recently I wrote a program in VS2k5 using the ver. v2.0.50727. of .Net. The thing is when install the program complied in VS2k5 .Net on a computer that is running the program complied in VS2k3 .Net, I receive an error: Different version of .Net required. So I install the newest version of .Net, but then the program compied in VS2k3 .Net doesn't want to work So my question is, everytime Microsoft releases a new .Net framework, does the whole program have to be re-complied / re-written Thank you Regards Programm3r Program written in VS2003 can run under .NET Framework 1.1 or later. Install .NEt Framework 2.0, both programs can run under it. .NET Framew ...Show All
Visual Studio Express Editions Changing
I made a simple class exposing a strong typed data table and a row of the same table. I then add a data source mapping the class and I can see the table and row details in the data source window. If I remove the property exposing the data row, I no longer see the fields in the data dable. Why The code below assumes you have created a strong typed dataset for an access database with a table called MYTABLE using vb2005 wizard with only default choices.The class as it is does obviously nothing, it is useful only to exemplify the problem. Public Class Class3 Private myData As New dsMYDATABASE.MYTABLEDataTable Private myValues As dsMYDATABASE.MYTABLERow Public Sub New() End Sub Public Property DataTable() As dsMYDATABAS ...Show All
Visual C++ Getting the installation directory of a dll at run time throgh its code
I'm creating a dll. This dll is a in process server which runs inside the internet explorer. I want to get the installation directory of this dll at runtime through the code. Because of this dll runs in IE if I get the current directory is it gives the directory of IE or this dll. Thanks, Supun. Have you tried GetModuleFileName with first parameter equal to the handle of your DLL, which is passed to DllMain function of your DLL ...Show All
Windows Forms consuming .net 2.0 dll from .net 1.1 using VS2003
Is it possible to consume .net 2.0 dll from .net 1.1 using VS2003 .net 2.0 dll might or might not be using 2.0 specific features, please let me know if its possible in either case. Thanks, if the dlls are compiled in native C++ compiler using VS2005, even then they cant be referenced in apps built in other frameworks If a C++ app is built using VS 2001 (using native C++ compiller) for instance then will this app be able to reference C++ dlls compiled in native C++ compiler but written using VS2005 Thanks, ...Show All
Visual Studio 2008 (Pre-release) Trouble getting a WCF return a collection to a .NET 2.0 client
hi all, Can we return a strongly typed collection from a WCF method to a .NET 2.0(ASMX) client. Thanks Kiran. hi Michele Just wanted to know if you wer able to look into the source that you received. I am also facing the similar issue. My issue is 1) I am have a base entity class marked with Serializable and DataContract attributes. 2) EmployeeEntity is derived from this entity class. This class is also marked with Serializable and DataContract attributes. 3) EntityCollection is a base class implemnting Ilist and ICollection. This collection base class is also marked as Serializable and DataContract attributes. 4) Employees is a collection derived from this Ent ...Show All
Visual Studio Team System Custom Work Item Controls - How can you have one custom work item control trigger the InvalidateDatasource() method of another?
I want to create two custom work item controls. Each control will be a drop down list box. In the InvalidateDatasource() method of Control1, I retrieve information from a database, populate the drop down list box, check to see if a value has already been selected for the list box, and if so, set the list box equal to that value. I've got this working (which is pretty cool!). Now, based on the contents of the first drop down list box, I want to filter what contents are in the second drop down list box, called Control2 (picture Control1 being a list of states, and Control2 being a list of cities, specific to which state is selected in Control1). How do I, from Control1.InvalidateDatasource(), trigger Control2.InvalidateDatasource() Con ...Show All
Smart Device Development Which version of studio please
Which version of MS Studio do I need for programming .NET compact MS Standard 2005 or pro Visual Studio 2005 Standard fully supports device development. ...Show All
.NET Development Strange XmlSerializer error
Dear all, I am programming in VB.NET , using the .NET Framework 2.0 on a Windows Vista machine running VS 2005 with the SP1 beta applied. I have a VB class which was derived from an .XSD schema using the XSD.exe tool. I am able to instantiate objects from this class and build by "XML" object up using it, without too much difficulty. However, when I come to serialize the output to an XML stream, it fails, with a FileNotFoundException on the serialize line, e.g.: Dim serializer As New XmlSerializer( GetType (eGov.IRenvelope)) Where eGov is my class namespace, and the IRenvelope is the class within the namespace that corresponds to my object which I am attempting to serialize. The interesting thing is, tha ...Show All
Visual Studio Tools for Office AddIconSetCondition()
I am able to add icon format conditions to Excel 2007 via VSTO using AddIconSetCondition(). The problem for is changing the values. Does any have sample code in c# for modifying the values after creating this condition I can't find any documentation on this function. Hi, The following sample in VB shows how we work with conditions in Excel 2007: Sub Change_Iconset_Condition() 'Module's variables. m_wbBook = Globals.ThisAddIn.Application.ActiveWorkbook m_wsSheet = m_wbBook.Worksheets(1) 'Procedure variables. Dim p_rnData As Excel.Range = m_wsSheet.Range("B2:B10") Dim p_IconSet As Excel.IconSetCondition = p_rnData.FormatConditions.AddIconSetCondition 'Here ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Games OUT OF THE BOX??
I cant make them work on a PC with just .NET 2.0 DirectX and the XNA Framework, it still needs the GSE and VC# Express, otherwise I get an error that the framework dll should have been installed into the Global Assembly Cache. First, there is no need for double posting. Are you sure you have the LATEST DirectX installed (the december 2006 version). Maybe you installed the XNA Framework Runtime for the Beta2 accidentally, or maybe the games you are trying to run are made in Beta2 or Beta1 ...Show All
Software Development for Windows Vista Hosting the workflow runtime
I'm having a problem when hosting the workflow in the application. Basically I have a class called WorkflowRuntimeHost: public class WorkflowRuntimeHost { private static object sync = new object(); private static string runtimeIdentifier = "WorkflowRuntime"; public static WorkflowRuntime Runtime { get { object oWorkflowRuntime = HttpContext.Current.Application[runtimeIdentifier]; WorkflowRuntime workflowRuntime = null; if (oWorkflowRuntime == null) { lock (sync) { workflowRuntime = new WorkflowRuntime(runtimeIdentifier); EventLog applicationLog = new EventLog("Application"); applicationLog ...Show All
Visual Studio Express Editions Compiling Error VC++ Express
Hi; I used to work with VC++ 6.0 and since Microsoft announced that they won't support VC++ 6.0 no longer I decided to move VC++ Express 2005. I made a few examples with console app working fine. Then I tried to compile a Tutorial from DirectX designed for VC++ 2005 and received this strange error: "fatal error C1083: Cannot open include file: 'windows.h': No such file or directory" I look in the folder of my installation and that file isn't there. What should I do I try reinstalling everything but the same thing happens, VC++ Express doesn't have that file or what I am getting these errors after installing the SDK per http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ T ...Show All
Visual Studio Debugger opens wrong files
I am running a relatively large unmanaged VC++ solution (~110 projects) in Visual Studio 2005 which builds a handful of dependant libraries, unit tests, and a couple sample executables. As one might imagine, this solution contains a number of files in different projects which share the same name ("test.cpp", for instance). When stepping though code, the debugger has the tendancy to bring up the wrong file. I can set a break point in a given file which is respected by the debugger, but it then proceeds to follow the execution path, correctly following line numbers but in the wrong source file. This behavior suggests to me that maybe the system is using some kind of hash based on file name which has some-how fallen out of sync with the files ...Show All
Windows Forms Delete all the files while UnInstall
Hi All I created a setup project for a windows application with lot more files with respective directories. The DLL files and other few files are not being deleted while doing uninstall/Remove from setup. How to remove these folders and files while doing uninstall/remove. Some time I thought we can call a batch file to remove all the directories and files but for this we need to know where our application is installed (e.g C:\Program Files\MyApplication ). It would be grateful if any helps.... Thanks The best way to save the installation folder is to create a registry item that contains the value [TARGETDIR], like that in the brackets and case-sensitive. That will res ...Show All
Smart Device Development any built-in dialog box available for choosing among a list?
Hi, My application requires to prompt the user to select among a list of options. This dialog should actually display a list of buttons for an array of items and should get closed when the user clicks on any button, returning the item that the user has chosen. I want something like a replacement to Dialog.ask() in BlackBerry. Does any one know if there is a direct way to call such a dialog or do i have to create a new form just for that purpose Please suggest! - Hari ...Show All
