Roopali2's Q&A profile
Visual C++ CLR console app - CString usage?
I started off building a CLR console app and I want to use CString, but I seem to have problems getting access to it with VS2005 standard. My MFC project option is "Use Standard Windows Libraries" and it won't let me switch that giving the error "Error 1 Command line error D8016 : '/MTd' and '/clr' command-line options are incompatible" I've tried adding the MFC include files <cstring>, "string.h" and "afxcoll.h", when I used "afxcoll.h" I started getting more incompatible errors as well (with the "afxcoll.h") Is there a CString version in the CLR maybe I'm just missing that. The only references in the help files are for <cstring> and "string.h". ...Show All
SQL Server Looking for sqlrun_tools.msi
Today my computer started doing something strange when trying to compile a setup&deployment project. This project doesn't contain anything related to sql server whatsoever. When i compile, it pops up a windows installer dialog that starts doing something. Eventually it asks me for my Sql Server 2005 Tools disc, specifically looking for sqlrun_tools.msi. I tried putting in the disc that i'm pretty sure it was installed from (my MSDN disc) but it told me that the sqlrun_tools.msi on that disc wasn't the right one. I have no idea why its asking me for this at this time, nor do i know to do to get it to stop. Thanks in advance for any help. Do you still have the SQL Server 2005 Tools installed ...Show All
SQL Server help with transaction
I need to subtract qty in one table from qty in another table. can someone help get me started ok I think I need some step by step help with this if you don't mind. 1. I'm creating this as a stored procedure (tableadapter) 2.When I do the above how do I specify the args for the parameters Sorry, very new to this. Thanks ...Show All
Visual Studio 2008 (Pre-release) November CTP Install on Vista - devenv crashes
Using VS2005 SP1 beta on Vista Business Edition I have tried to install the November CTP and it doesn't succeed because devenv is crashing: Log Name: Application Source: Application Error Date: 11/22/2006 4:48:00 PM Event ID: 1000 Task Category: (100) Level: Error Keywords: Classic User: N/A Description: Faulting application devenv.exe, version 8.0.50727.42, time stamp 0x4333e699, faulting module ntdll.dll, version 6.0.6000.16386, time stamp 0x4549bdc9, exception code 0xc0000005, fault offset 0x00062b86, process id 0xd24, application start time 0x01c70e7fcc201566. Prior to this a number of warnings similar to this appear: Log Name: Application Source: Visual Studio - VsTemplate Date: 11/22/2006 4:47:38 PM Even ...Show All
Windows Forms Upgrade Install Failing from 1.1 to 2.0
Hi, I have an application that I developed in 1.1; the application was delopyed to a large number of workstations via GPO (have used this process multiple times to upgrade the application); I have recently updraded the application to 2.0 and when installing the application on my test workstation (not using GPO at this stage) it fails to upgrade the previous version that was written in 1.1, I end up with the old version and new version sitting in the "Add and Remove programs" list. I can confirm that both applications have different product codes and the same upgrade code, I have also selected in the 2.0 installer to "RemovePreviousVersions". I have used Orca to check that the upgrade ID are the same even aft ...Show All
Windows Forms "C2" format AND Binding
I have 4 Readonly textboxes bounded to a stored procedure in 4 tableLayoutPanel cells. I can't figure out how to format the Text as "C2" (with $ and 2 decimal places) Any Ideas Thanks! I found a simpler solution (since I needed read only) this .sumByRepTextBox.DataBindings[ "Text" ].FormatString = "C2" ; this .sumByRepPlantTextBox.DataBindings[ "Text" ].FormatString = "C2" ; this .sumByRepPlantFamilyTextBox.DataBindings[ "Text" ].FormatString = "C2" ; this .sumByRepPlantFamilyMarketTextBox.DataBindings[ "Text" ].FormatString = "C2" ; that made the content show correctly. ...Show All
SQL Server Basic: Starting SQL Server
Hello, I am having trouble just starting SQL Server 2005. When I try to use Management Studio, I do not see any server name. I just need to be able to start it up! Thanks, pagates Hi pagates, One of the easiest ways to start SQL Server 2005 is go to Start -> Control Panel -> Administrative Tools -> Services . Look up for a service by the name SQL Server or SQL Server (your instance name) , right click -> Start . If you do not see this service listed, it is likely that you have installed only the client tools for SQL Server 2005 and not the server. Hope that helps, Amol. ...Show All
Microsoft ISV Community Center Forums Highlighting cells within a worksheet
Several of us in our office have a fantasy golf league and we administrate it off-line using an excel spreadsheet (we haven't found a free website that lets us tailor the rules to the way we like it.) Anyway, it is a salary cap format, meaning that only one golfer can be on one team at a time. To keep track of this, one of our worksheets has a list of all the golfers. That same worksheet also has every team's roster. For all golfers that are on someone's roster, I manually highlight that same name in the master list of golfers so it is easy to see who is taken and who is available. What I'd like to be able to do is have it automatically highlight that golfer's name in the master list when it appears in the individual team roster's page (an ...Show All
Windows Forms removing event handlers
Hi, if i have all forms onfocus or any kinda implementation , have this code, AddHandler Main_Menu.Nvg_NavigatorMain.SaveToolStripButton.Click, AddressOf save i will want to clear all Main_Menu.Nvg_NavigatorMain.SaveToolStripButton.Click (s) that have been added before, how can i do that without naming i just want to clear all of em. thanks ...Show All
Visual C++ Why I can't complie below code in VS2005
Because of std::swap function, I can't compile below function. but if I don't specify template parameter, it is compiled very well. I wonder why I can't specify template parameter when I use swap function, but if include <utility> instead of <vector>, I can use std::swap specifing template paramter. I think it's Microsoft STL library bug..., it is needed to fix it. #include <vector> // if I include <utility> I can compile below code. template <class T> class CTest { typedef CTest<T> ThisType; T* m_Array; public: void Swap(ThisType& other) { std::swap<T*>(m_Array, other.m_Array); } }; int _tmain(int argc, _TCHAR* argv[]) { CTest<double> test, test2; test.Swap(test2); ...Show All
Visual C++ LNK4098 and static libraries using different runtime types
I've inherited a project that has various problems. This project is a DLL linking with the MT run-time libraries. It also links to several static libraries that are outside of my control but I believe they're all compiled with the same version of Visual C++. I'm assuming the LNK4098 warning is being dumped out because one or more of the other static libs were compiled with a different runtime type (assuming single threaded). The dox for LNK4098 mention "...prevent mixing different [run-time] types... You receive this warning if you try to use different types ... of the run-time library...". A warning doesn't seem like prevention to me. It then goes on to describe the NODEFAULTLIB option and what run-time libraries to ignore wh ...Show All
Visual Studio Team System Getting error "TF10201: Source control could not start the manual merge tool"
Hi I'm receiving the error " TF10201: Source control could not start the manual merge tool. " when I'm trying to resolve a conflict during checkin. The scenario is as follows: I have 1 file $/TeamProject/Dev/MyFile.h that has been branched to $/TeamProject/Branch/MyFile.h I have made changes to both the "Dev" and the "Branch" file, and then done a merge from "Dev" to "Branch", this creates a pending merge on "Branch" (as expected). Now I try to checkin the pending change and receive a conflict (also as expected), I click "Resolve" and select "merge changes in merge tool" and then I get the above error message. If I try to resolve this from the co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Random number problem
Hi, first, i know how to use the Random-Class in C#. I am usually using the current DateTime's milisecond-value as the seed. Random myRand = new Random ( DateTime .Now.Millisecond) Well. Maybe you already see the problem. As my function gets called 10 times IN a milisecond (gets called in a foreach-loop) the seed value is 10 times the some. And the Random-Class isn't really THAT Random so i'll get 10 times the same number out of Next() Really annoying. Any suggestions At all it's a C# problem, but this problem only occurs when using XNA because (as usual for a game) the function gets called very often per second (even millisecond). Greetings. Also, since you mention the inad ...Show All
Smart Device Development Support for Global Interface Table (GIT)
Does anybody know if WCE support the GlobalInterface Table. I get a "Class not registered" executing: CoCreateInstance(CLSID_StdGlobalInterfaceTable...) If not, what is aviable under WCE to marshall interfaces across threads. Thanks in advance. JEK Hi, GIT is supported on DCOM images in CE. So anyone using PPC and SP which have minimal com support doesn't have this facility available to him/her. Hope this helps. Thanks ...Show All
Visual Basic Problems Retrieving Clipboard From a DLL Assembly, Anybody ?
Hi, I have a problem trying to retrieve the clipboard from a dll even when the CopyToClipboard returns 1 (the data was succesfully copied to clipboard) anybody : Call pdfPage.CopyToClipboard(pdfRect, 0, 0, 100) Dim clipboardData As IDataObject = Clipboard.GetDataObject() If (clipboardData.GetDataPresent(DataFormats.Bitmap)) Then <<<----- Here's the problem because clipboard is empty Dim pdfBitmap As Bitmap = clipboardData.GetData(DataFormats.Bitmap) ....... The funny thing is that running this code in a windows.form works perfectly, can data be copied to the clipboard from a dll Thanks in advance for your help. George Mike Mike !!!, this is the weirdest thing, the ...Show All
