DoctorWho's Q&A profile
.NET Development using axinterop dll from managed code
Hi, I have an interop library for activex control. I want to use it within a seperate class, not on the form. After instantiating and calling BeginInit(), when I try to use its methods, I get following error. Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. How to use it dynamically within seperate class Also, can I use it in seperate thread Plz. Help. Regards, Noorul When you add a reference to an ActiveX control, two interop wrappers will be made. The second one allow you to use it without the control being hosted on a form. Open the References nodes to find the 2nd wrapper, look at it with Object explorer. Note that some ActiveX controls do not work properly wh ...Show All
Visual Studio 2008 (Pre-release) How to bind to linq queries?
In DLinq designer walkthrough,the following codes bind the customers table to linq queries: var results = from customers in northwindDataContext1.Customers where customers.City == CityTextBox.Text select customers; customersBindingSource.DataSource = results.ToBindingList(); But I want the associated table "Orders" also can bind to linq queries. var results=from orders in northwindDataContext1.Orders where orders.ShippedDate >=.... select orders ; You can do Orders much the same way as Customers. If you want to know how to do an associated entity (Customer.Orders). It is shown in the same CTP sample. You sh ...Show All
Windows Live Developer Forums VEMap.AttachEvent("oncontextmenu", function) firing twice
I am trying to add a pushpin to the map by right clicking on it. I am using AttachEvent with oncontextmenu event. I notice the event fires twice for any function. Am i doing something wrong Here is the code sample. (the map is created as a response to a XHR request) var VEControls = Class.create(); VEControls.prototype = { initialize: function(){ var url = "/maps/defaultLatLong"; var opt = { // Use GET method: 'get', // Handle successful response onSuccess: function(req) { var latLong = req.responseText.parseJSON(); if(latLong){ map = new VEMap('mapHolder'); map.LoadMap(new VELatLong(latLong["lat"], latLong["long"]), 15 ,'r' ,false); map.AttachEvent("oncontextmenu" ...Show All
SQL Server I need to create maintenance plans on SQL 2005 without using the wizard
I have several hundred SQl installations I need to change or create a maintenance plan and i don't want to touch every box. I need the step by step process to load the tables myself. Just in case you're interested in the process, you can import and export you maintenance plans. You can right click on one of your maintenance plans and then select import or export. Export from one, import to the other. You can also "pull" your maintenance plan to another server. To do this, on the target server connect to Integration Services on the server where you created your original maintenance plan. Then go to Stored Packages - MSDB - Maintenance Plans. Right click on Maintenance Plans and then select Im ...Show All
Visual Studio Express Editions mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
Hi everyone, I'm trying to rebuild a project, which was constructed in the VC6++ IDE. Now I get this error: mfc42d.lib(MFC42D.dll) : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' Could anyone help me to get rid of this error Many thanks! Linker Tool tries link together 32-bit and 64-bit object modules (obj-files). It is naturally impossible. Closely check up parameters of the project. Such situation often arises at converting the project created in VC6 at attempt to build the 64-bit version. When you create a new 64-bit configuration, there is copying parameters from 32-bit configuration. Visual Studio 2005 only changes some DEFINE and some keys. Vi ...Show All
Commerce Server Configuration Wizard (Admin database) fails
We are currently installing a CS 2007 for a client. I have successfully completed the installation of CS and ran into some problems when running the Configuration Wizard. The log file contains the following [excerpt]: [09:21:14 INFO] Beginning configuration of feature Administration Database (Feature.MS.CS.Admin). [09:21:29 INFO] Database 'MSCS_Admin' exists on server 'SHOP' [09:21:29 INFO] The ComparisonStyle for Database 'MSCS_Admin' is 196609 [09:21:29 ERROR] CSConfig failed during configuration of feature Administration Database (Feature.MS.CS.Admin). [09:21:29 ERROR] Exception occured during feature configuration: Microsoft.CommerceServer.Internal.Config.ConfigurationException: Incorrect syntax near '0x0a0d'. Must declare the sc ...Show All
SQL Server Restore a single partition SQLServer2005
I want to to restore a specific filegroup to a prior point in time, but leave the remaining filegroups current. Assume a 100 partition table which is updated by a job which updates data in one partition - say a monthly job. The specific filegroup is backed up prior to the changes. An error occurs then we want to restore only that one partition back a few hours or a day or so, but do not want to touch any other partition - they are all OK. So far, it seems that i have to restore and roll forward to the current time - including PRIMARY filegroup or i can restore the whole database back to a point in time. Any help is appreciated. Thanks Glenn Filegroups cannot be restored to a prior point in time. They and the partitio ...Show All
Visual Basic Using PrintForm for a scrolling DataGridView
I am trying to print a simple view of data entered for the entry person. I have created a form that has simply a DataGridView displaying the information that I want and a print button that invokes PrintForm. I have docked the DataGridView to the form and made the form as large as possible. For some collections of data that I want to print the form still scrolls. I am using the PrintForm.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.Scrollable) statement to display a print preview. I can't get the preview to show the non-visible portion of the DataGridView control. In the print preview there is space remaining on the page. Is there some way that I can dynamically enlarge the window or do something to get the entire scrolled regi ...Show All
Visual C# Cannot get program to display number with correct number of decimals
I use Microsoft Visual Studio 2005 and i am not able to get my percents to display the percent sign or display only 2 digits after the decimal without resorting to just putting the % in myself. i thought that putting {1:P} would format the display to have 2 decimals and have a % sign, but nothing happens (yes, i have rebuilt the solution). Here is a sample from my program: Console .WriteLine( "Adults\t\t\t{0}\t\t{1:P}%\t\t${2:C}" , adults, percentA, feesA); #1(not 0) needs to be formatted so its printed out as 25.89% and #2 needs to be formatted to display money like $25.00. I know that {2:C} should make it do this automatically, but nothing happens unless i put in the $ and% signs myself. thank you very much. ...Show All
.NET Development Retrieving the Attribute from an XML document using VB.NET XML DOM
Hi All, I'm a little new to XML so please excuse me if this is too easy. I've created a simple function that loads a XML document using MSXML.DOMDocument and then reads the data within using MSXML.IXMLDOMNodeList. So far so good. I can return MSXML.DOMNodeType.NODE_ELEMENT and NODE_TEXT but I can’t return NODE_ATTRIBUTE . It just ignores it dispite it being in the XML file. Please can anyone tell me what I should be doing Regards Pete Element nodes have attributes so you can first loop over all the elements and then over the attributes of each element e.g. Dim XmlDoc As XmlDocument = New XmlDocument XmlDoc.Load("..\XMLFile1.xml" ...Show All
SQL Server SQL Server Compact Edition is not in the list of DataSources
Hi everyone, I am using VS2005, just installed SP1, and the help -> about window reflects this. I have also installed the SQL Server Compact Edition SDK, but when i try to add a new data source connection (following the MANY tutorials on this), i do not see an option for SQL Server Compact Edition nor do i see an option for SQL Server Mobile. I am at my wits end and i just got started! Yikes... Any thoughts on how to proceed I thought VS2005 SP1 was required, but i guess not according to the download page for the SDK. that's odd, i could have sworn i read that somewhere. Jose, i am assuming the System.Data.SqlServerCe reference is to appear under the .NET tab of the add references window. It isn't there though. I will see i ...Show All
Visual Studio Team System how to change developer role to architect.
i have vs team system that should include all roles (architect developer, etc) . I would like to change to an architect - how do i do it my import settings do not include that. I don't get the question, you mean in the Visual Studio 2005 Team System IDE , well supposing you have the complete Team Suite (remember Team System comes in different flavours and the suite containing all of them), you should do nothing, just use the modelling tools creating new application diagrams and so on. Or you really mean to MSF process guidance or Team Foundation server permission roles . and also, if is the first question, better try in the Team System General Forum ...Show All
Visual Studio Team System is there a way to add more priority levels?
i have looking around for a while trying to find some way where i can add more priority levels and instead of have 1 2 3 i have critical high etc is there any way of doing this and is it possible with the process template editor Thanks You might want to contact the company that created Process template editor. Meanwhile, you can use our command line tools witimport and witexport for editting the work item type to add new priority values. http://msdn2.microsoft.com/en-US/library/ms253163.aspx http://msdn2.microsoft.com/en-us/library/ms253051.aspx Let me know if you have more questions! ...Show All
Visual Studio Team System question about downloading visual studio
i have the express editions but i decide to download the visual studio i want to download visual studio but i found that there's alot of versions or types to it ... like Visual Studio 2005 Team Suite 180-Day Trial or Visual Studio 2005 Professional Edition 90-Day Trial so plz till me if there's abig differ from the two becoz i found that there's 1 giga differ from Team Suite comparint to Professional and till me what is the best to download Team Suite Or Professional and i found that the extension of the file that i will download from microsoft is .img ... can i burn this file by nero image burner and if i can't burn it .. can you till me how can i have an iso file Hi, I wil ...Show All
Visual Studio Framework 1.1/2.0 install- uninstall
Hi I am attempting to install framework 2.0 and its SDK. I didnt uninstall framework 1.1 with its SDK. After I realizied what I did i decided to uninstall both versions 1.1 and 2.0 along with their SDK's. After doing so I found the SDK v1.1 still in my programs in the start menu but it doesnt show up in the add/remove panel in the control panel. How do I fix what is messed up It may have just been uninstalled but forgotton to remove the start menu items, which rarely happens. Perhaps you installed something else also Could I also ask why did you need to uninstall both versions of the framework Is there something that was causing some problems We can sort it out for you if you like and supply us ...Show All
