HemantSoni's Q&A profile
Visual Studio Steps to fix error 32003 for Visual C++
This information was taken by Looooooka . I just make this information easier so people can understand it. Step 1: Go to My Computer Step 2: Move your cursur(mouse) to the File Edit View Favorites Tools Help shown on the top of address bar and the back button. Step 3: Go to Tools and click Folder Options... Step 4: Go to the View tab / Advance Settings: Step 5: Go to the very bottom and you would see Use simple file sharing (Recommended) Uncheck it. Click OK Step 6: Go to your Microsoft Visual Studio 8 Folder in Program Files Step 7: Locate the file you had problem with for example (vsvars32.dat, sdkvars.bat , etc.) Step 8: Right Click on the file and go to Properties and go to the Security Tab. Step9: Find your user name and chec ...Show All
SQL Server AMO. Aggregation designs can't be deleted? Is this a bug?
Why this code public static void ClearAggregations( MeasureGroup pMg) { if (pMg.IsLinked) return ; foreach ( Partition lPart in pMg.Partitions) { lPart.AggregationDesignID = null ; lPart.Update(); } pMg.AggregationDesigns.Clear(); pMg.Update(); } doesn't work What are needed and suffisient calls for deleting af all aggregation designs in a MeasureGroup > :-) But If the call MajorObject.Update() will be issued at the end of the online editing, how can the server get information, that parenless major children schuld be dropped It is devinive resource leak. The default, Update(), only saves the object with no major children. ...Show All
SQL Server How SQL 2005 Execute a sp in master db when called from other db?
In previous SQL server version, if I create stored procedure sp_XXXXX in master database, then call it from other database (session context is other than master) with master..sp_XXXXX. SQL server will execute the sp with the environment from where it was called. However, in SQL 2005, if I call it with "master..sp_XXXXX", SQL 2005 will switch the context to master database and execute the sp in master database environment. I wonder if I did something wrong or that is the way SQL 2005 execute the sp. If this is the way SQL 2005 does business, then, how to exec a sp in master database with local environment Thank you for any help. The capability to create system objects in master ...Show All
SharePoint Products and Technologies Configuration Wizard failed - hosts file missing
Hi, I just want to let you know, that during the Configuration Wizard of MOSS EE 2007 (English) the configuration failed because of a missing C:\Windows\System32\Drivers \etc\hosts file! I created the hosts file and added 2 entries: 127.0.0.1 localhost 127.0.0.1 <machine name> And ran the Configuration Wizard again - with success. Before installation I added the server role "Active Directory", maybe the DNS Server installation removed the file, I'm not sure, I have never meet that the hosts file is missing! System: Win2k3 Server Enterpriser Edition (SP1) Server roles: Application Server Active Directory DNS Server I found that once myself Kevin but only once. I have d ...Show All
Visual Basic what do the pros use to validate input?
hi i now try to validate my input using if else, but i end up with alot of andalso, how do the pros do it i am tring to validate an ip address, so ... i did like : ' to ensure 1st oct of IP is between 1 & 254 & the rest between 1 & 256... if firstOct > 0 andalso firstOct < 255 andalso secOct > 0 andaslo secOct < 256 ..... it seems ineffective as it contains alot of andalso stuff, is this correct well you could make a function which handles the inputs you give it, and give it say between the ranges to check. Example private function IsValidRange(byval valueToCheck as Integer, byval rangeFrom as Integer, byval rangeTo as Integer) as boolean if valueToCheck > rangeF ...Show All
Visual Studio amazing System.InvalidCastException!!!!!!!!!!!!!!!!!!
dears, I 've writen the code below.although it enters the If statement and finds the type of objIDesignerHost.RootComponent.Site.Container.Components ,, MiscellanistControls.Label.Label . it doesn't allow to cast it to this type and gets System.InvalidCastException!!!!!!!!!!!!!!!!!!!!! ----------------------------------------------------------------------------- if (objIDesignerHost.RootComponent.Site.Container.Components .GetType().ToString() == "MiscellanistControls.Label.Label" ) { try { object ttt = objIDesignerHost.RootComponent.Site.Container.Components ; MiscellanistControls.Label. Label b = (MiscellanistControls.Label. Label )ttt; MessageBox .Show(b. ...Show All
SQL Server Table cells...accessing a value
hello All, I am trying to now access the data (if any) in the current cell of a table. I want to know if this cell has been populated, and if so to move on...if not then I want to populate with a zero. I am using the following: ReportItems!textbox9.Value inside of an if statement but it tells me that I am unable to do so as, and I quote: "The Value expression for the textbox 'textbox 9' contains a direct or indirect reference to itself. Loops in expressions are not allowed." Any ideas guys Try putting this in your textbox9 expression: =iif(len(Fields!<FIELD_NAME>.Value) = 0, 0, Fields!<FIELD_NAME>.Value) Replace <FIELD_NAME> with the field that you are trying to display i ...Show All
Software Development for Windows Vista Can't develop for .NET 3.0 on Vista June CTP
-I've fresh installed Windows Vista June CTP (5456), -Installed VS2005 Pro full -Installed Windows SDK (June for Vista build 5456) Then I try to install .NET Framework 3.0 June CTP, but I get 1603 errors (something about workflow). So I thought, "Okay, maybe framework 3.0 is already installed natively (comes with) Vista June CTP." Is this not correct If that's the case then the errors I get when I try to install "Orcas" seem out of place. When I try to install "Orcas", it says I'm lacking pre-requisite "Run-time .NET Framework 3.0" So what am I missing/doing wrong How do I get the new stuff from .NET 3.0; Windows Presentation Foundation, Windows Communication Foundation, etc., to show up in Visual Studio 2005 (Which I thought is supposed ...Show All
Visual Studio Express Editions Cannot uninstal visual web developer 2005 express
Hi when i tried to remove visual web developer express whith the control panel (add/remove program) i have an error message "setup is unable to determine a valid ordering for the instalation. see the error log for further details" What can i Do I'm still looking into this issue but I wanted you to try the following: Go to Start->Run and type in 'cmd'. Type in: msiexec /x {221125DC-6A40-4900-B844-591F5E1195B0} and press Enter. See if you are able to uninstall via this method. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I need help getting started in game design...
How doi get started in game design What software do i need Game design is a big thing.... one suggestion I can make is to have a read through the game desgin groups on www.gamedev.net And the rest of the suggestions rely on what experience you have, which includes programming experience. ...Show All
Visual Studio Selecting records in Crystal report
My problem is-- I have three tables- Customers,Orders,Payments. Orders and Payments table has 'OrderDate' and 'PaymentDate' fields respectively. Now I want to show in the report each customers OrderAmount and PaidAmount for a particular month. A customer may not pay for a month. But his OrderAmount for that month must appear in the report. How would I select records or What should be the record selection formula Please someone help. ...Show All
Visual Studio Express Editions Appending text in a multiline TextBox
Hi, I'm trying to append text contained in TextBox2 to TextBox1 (multiline), each time Button1 is clicked. I'd like to start a new line each time. I tried with the following code but it's not working... Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.AppendText(TextBox2.Text & Chr(13)) TextBox2.Focus() TextBox2.SelectAll() End Sub Any ideas ...Show All
Visual C++ MFC and IJW
I have not been able to mix unmanaged C++/MFC code with managed C++ code using IJW. For example, the following code compiles but generates an exception when run: #include "stdafx.h" using namespace System; int main( array <System::String ^> ^args) { CFileStatus oFS; BOOL bStatus = CFile::GetStatus( _T( "test.tmp" ), oFS ); return 0; } What happens is the function 'AfxWinMain' is called, gets a pointer to the main thread but this pointer is NULL. I've spent 4 days working on this and I am at a loss as to what needs to be done. My questions are as follows: 1) Are there any examples or available solutions (.sln) files that illustrate how to mix unmanaged MFC with managed C++ code ...Show All
Visual Studio Team System VssConverter problem
I'm trying to convert a VSS 6 database to TFS (in spanish language), and I'm having a lot of problems. I'm following the guide in MSDN, and after getting a clean analysis in both VSS (though I have to fix a problem related to a bug in VSS 2005, which reports an error when there is a label applied on $) and vssconverter analyze (though it doesn't create the UserMap.xml file properly, because not all the users in VSS are included), I start the migration. I get the following error messages in VSSMigrationReport.xml: v1.2 TF60097: No se puede migrar la etiqueta debido al siguiente error de Team Foundation: No se encontraron elementos coincidentes en $/probandomigracion/SECURNET/SECURNET. v1.2 TF60097: No se ...Show All
SQL Server Notification output file in eml format
Hi, Is there a way to receive the Notification events as eml file and save it in a local path which we supply instead of sending email's Thanks, RR06 If you are using the local SMTP service, you can simply stop it and the notifications will appear in a subfolder of your mailroot folder (can't remember off hand, perhaps the pickup folder ) HTH.. Joe ...Show All
