041661K's Q&A profile
Visual C++ AFX_EXT_CLASS - VC++ 2005
Hello, I have a class declared as follows: .h: class AFX_EXT_CLASS MyClass { private: static CMapStringToString m_MyMap; ... } .cpp: CMapStringToString MyClass::m_MyMap; ... When compiling that code, I get the following warning; Warning 1 warning C4835: 'm_MyMap' : the initializer for exported data will not be run until managed code is first executed in the host assembly c:\xxxxx\MyClass.cpp 4 This started happening in VS2005 after conversion from 2003. What would you guys recommend me to do in this case Take a look at http://msdn2.microsoft.com/en-us/library/ms173716(VS.80).aspx . It describes ...Show All
SQL Server RUN SQL 2005 SSIS Package on SQL 2000 BOXES?
I have a package designed and working correctly for months now. My challenge now is to run this package on a box that does not have SQL 2005 SSIS install. It has SQL 2000 installed. My question is - Can I compile the SSIS into EXE or any other kind of DTS package to run on a none-SQL 2005 box Thanks! --Jon You don't need ANY version of SQL Server (i.e. the database engine) installed in order to run a SSIS package. You just need SSIS installed. And no, its not possible to run it without having SSIS installed. That's what you pay the money for. -Jamie ...Show All
Visual Studio 2008 (Pre-release) TabItems & Binding at runtime
I am attempting to create tabs based on how many records are returned by an ObservableCollection. When I set a break point I can see the ObjectInstances of AssetTabitems with the correct data within myTabData. The problem is I don't know the correct way to access those instances, here is what I am attempting in the red highlighted area. public void PopulateAssetTabs(string TabName) { ObjectDataProvider myTabData = new ObjectDataProvider (); myTabData.ObjectType = Type.GetType("Asset_Manager.AppData.TabListDB" ); myTabData.ConstructorParameters.Add(TabName); Binding bind2obj = new Binding (); bind2obj.Source = myTabData; foreach (AssetTabItems myItems in myTabData.Data) { // Cre ...Show All
SQL Server Loop container to process all excel files
What I'm trying to achieve is a SSIS package that will pick up 1 or more excel files, process the data in them via the conditional splitter, pushing the good data into a table, and all other rows into an error table. I'm having some issues using the ForEach container to process multiple excel spreadsheets into tables. The excel import into the tables is more or less working (imports data for good cases, but uses a null if the Excel Source when it gets an unexpected value - but that's a seperate problem). I found something related to this when searching, but it related to CTPs (June and September) and trying to reuse the connection strings they built up there (using my own variable names, naturally) causes a 'Property Va ...Show All
Visual Studio Team System Add Version Control Folder to My Favorites
Is it possible to add a version control folder to the My Favorites node in Team Explorer If not, this would be *very* handy. Hi William: Currently there is no way to drag a version control folder there but we agree this will be as you put it *very* handy. We will give it a very strong look for our next release. thanks,mario ...Show All
Software Development for Windows Vista Enabling Theme Support via Manifest
My application (using the WIN32 API) enables XP Visual Styles under XP with a manifest. But when the app is run under Vista, Visual Styles / Theme Support does not get enabled. (Buttons have square corners, no highlighting, etc.) What can I change in the manifest (or in the C code) to enable Vista Themes Manifest: < xml version="1.0" encoding="UTF-8" standalone="yes" > <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="SabioNet.AshWin.ashw32" type="win32" /> <description>AshWin</description> <dependency> <depen ...Show All
Community Chat What language do you prefer?
Could someone please enlighten me as to what the advantages and disadvantages of the following languages are, in general: C# C++ Visual Basic Also: I read somewhere that C++ was much better for game programming than VB, but why VB is easier to learn and use, so what are the advantages of C++ Oh, on the VB side. I would say VB is at MS Office product line. Especially for my company, I program everything in Excel. No need to recomplie, no need to install program in Admin account (this is extremely good for my case, just upload new Excel file on share drive, all uses can simply run it using standard user account), and it is familiar for non-IT users. Also most non-IT guys are able to run my program on Excel by themselv ...Show All
Silverlight (formerly WPF/E) "Unexpected call to method or property access." when changing an image's source property.
I'm trying to change an image's source property in JavaScript. With some images, this line of code: image["source"] = "newimagepath"; throws this error in JavaScript: "Unexpected call to method or property access." Has anyone else seen this error Thanks! I changed the syntax and it behaves the same way. I'm open to any other suggestions you may have. Thanks for you help! -Michael ...Show All
Visual Studio Team System Get specific version not working after moving code from one team project to another
I am no longer able to perform a "Get specific version" after I moved the code from one team project to another. I can see the history of all the files, but when I try to do a get specific version by date or changeset the "Latest" column in the source control explorer window shows "Not downloaded". This is very curious and alarming. Any help would be most appreciated. I only use one working folder for all my team projects, so it's still mapped to the location where the source was moved from. I have my source control folder $/ mapped to my local folder "c:\team projects". The team project that the code was moved from is now completely empty (has no files or folders underneath it). If there is a co ...Show All
Windows Forms Updating mulitple tables on the same form
I've got a form with textboxes and comboboxes for Instruments and InstrumentDetails. My dataset has these tables with a data relation/FK constraint which I consider one-to-one (One detailID to One InstrumentID) The child table's ID is set as the primary key, with no auto-incrementing. I've tried setting the datarelation to Relation Only and Relation+FK Constraint. I've successfully made updates to related rows using the .GetChanges method and .Select method in conjunction with the datarelation in my dataset. However, I have ZERO success when it comes to adding records. Since my Instruments table is the parent, I know I must update this one first before adding child table rows related to the new parent record. However, on my form, after ...Show All
Windows Forms How to pass ab object between forms
Hi, how Can I pass an object between 2 forms. For example if I have an object created in a button click event Form1 frm1 = new Form1(); MyObject obj = new MyObject() obj.Id= someintvariable; obj.Name=somestringvariable; frm1.MdiParent = this.MdiParent; //this is an MDI app frm1.Show(); how Can I send obj to Form1 so I can use it there Thanks There are several ways to do it. You can choose one of them as per choice or need: Suppose you have 2 Forms; Form1 and Form2; First you are trying to make a form an MDI parent but you are writing wrong syntax here is the right one... To make Form1 an MDI parent you need to set its property like this: See the properties of Form1 in PorpertyGrid and Set it ...Show All
SQL Server SQL - Getting the Last row of the table
Is it possible to get the last row of the table that doesn't contain any primary key and index contraints So, the *last* is of your standpoint the most recent inserted one Do you have a colum which stores the information when the name was entered (date / and time or by getting the highest identity), then you will probably have a chance to do this, otherwise your won’t. HTH, jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Relative URLs or passing data to ASP.NET
I'm in need of a way to pass params from a report to a webform. When the user drills down, there may be 100K+ records and I want to switch from ReportView to GridView/DetailView at this point because I need to add all kinds of searches, sorts and filters - and that's much easier in straight asp.net (plus I'll have atlas access to help out as well). My first guess was "Jump to URL" but this lacks any ability to use relative urls, which I need because we have dev servers, qa servers, and production servers (all having unique server names and paths - go figure!). I don't really like this option, because of exposing the params in a url string, but I could live with it. Next option was to hook into the drill though event (which I'm al ...Show All
SQL Server Error 18456 Severity: 14 State 11 problem
I am installing diskeeper administrator on one server with at database on our sql2005 server. When I am trying to connect to the database the diskeeper software says verify username and password. I try to connect using windows authentication .And in the serverlog this error occurs 2006-11-27 15:04:56.01 Logon Login failed for user 'NB\Servername$'. [CLIENT: "Ipadress"] 2006-11-27 15:04:56.01 Logon Error: 18456, Severity: 14, State: 11. When i try to connect with Sql server authentication, this error occurs in the log: 2006-11-27 15:48:35.46 Logon Login failed for user 'NB\SERVERNAME$'. [CLIENT: ipadress ]2006-11-27 16:04:22.94 Logon Error: 18456, Severity: 14, State: 16. I have tried to disable files ...Show All
Visual Studio VSSConverter - how to exclude a subproject from migration?
Hi, I'll migrate a project from VSS to TFS, but I need to exclude one subproject from the migration. I can probably delete it temporary in the VSS and then restore after migration. Is there a way to exclude a project from migration through the settings file Thanks, Leonid. The mappings you setup in your settings file determine the projects that you migrate. If you migrate the root ($/) then all the projects will migrate. If you specifiy your mappings like this <Project Source="$/Project1" Destination="$/TeamProject/Project1"></Project> <Project Source="$/Project3" Destination="$/TeamProject/Project3"></Project&g ...Show All
