Jmansher's Q&A profile
Visual Studio Tools for Office Outlook 2003 New inspector does not fire with VS2005
I am running Outlook 2003 and setup the Inspectors collection in VS2005 and I cannot get the new Inspector routine to fire I used the While You were Out sample. Any Suggestions Here is the code I used. BTW, the items add, change and remove work in the WYWO sample. And intellisense works with the _Inspectors object. Imports Office = Microsoft.Office.Core Imports System.Runtime.InteropServices Imports Microsoft.Win32 Imports Microsoft.Office.Interop.Outlook Imports Microsoft.VisualStudio.Tools.Applications.Runtime Imports System Friend Class WywoAddIn Implements IDisposable Private WithEvents _Inspectors As Outlook.Inspectors Private Sub _Insp ...Show All
Visual Basic Problem with VB6 SQL Server Express and Stored Procedures
I am trying to migrate an application running in VB6 which interfaces with SQL Server 2000 to SQL Server Express. I am having a problem with stored procedures which contain multiple steps. If I run the stored procedure in Mgt Studio Express, the resulting recordset displays correctly. In VB6, the rs.open does not generate an error but any subsequent attempt to access a property of the recordset causes the error 'Operation is not allowed when the object is closed'. Single step stored procedures run fine. The .Provider = SQLNCLI and the app references the Microsoft ActiveX Data Objects Library 2.8. VB6 is SP6 Windows 2000 SP4 ...Show All
Visual C# IPAddress and IComparabe<T>
Can anybody explain the reason why IPAddress does not implement IComparable interface I wanna use IPAddress in my binary search tree and using the GetBytes() method of the IPAddress for comparing seems to me very inefficient. Any alternatives Maksim, I can't tell for sure, but since there isn't a "natural" ordering of IP addresses, any implementation of IComparable would have been arbitrary. For instance, you might use network order, or host order with much different results. Instead of GetBytes you might want to use GetHashCode, which not surprisingly returns an int representing the IP Address (you will get it reversed, s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can DX10 card emulate DX9 card?
Hi masters, I have two noob questions. Can a DX10 Card emulate a DX9 card for easy backward compatibity Can DX10 APIs emulate DX9 APIs why Best regards.. There is no emulation needed. Vista fully support Direct3d9 - it has to for the Vista shell. Therefore any D3d10 card must also fully support d3d9 D3D10 APIs do *not* support D3D9 calls in the same way that D3D9 supported previous APIs. D3D9 is provided and fully supported on vista so if you want to support both you must code that into your engine. ...Show All
Visual Studio 2008 (Pre-release) tests and Linq
Hi all, I am writing a class to explicit the Tree structure of expression tree (hence enabling visitors etc..), and I thought it would be good to use those nice testing feature from VS2005. But when in my testing code I define an expression, I get the following error : Test method DataStructureTest.ExpressionTreeTest.ChildrenTest threw exception: System.InvalidProgramException: Common Language Runtime detected an invalid program.. In this method lies only : [ TestMethod ()] public void ChildrenTest() { Expression < Func < int , bool >> exprLambda = (x => (x & ...Show All
SQL Server BI Dev Studio won't install with June CTP reinstallation
I am attempting to install the BI Development Studio, from the SQL Server 2005 June CTP, on an XP machine. It installed successfully the first time I installed it, along with all other Workstation Components and BOL. Subsequently I have uninstalled and reinstalled the Workstation Components, but the installation process does not fully install BI Development Studio. It creates the C:\Program Files\Microsoft Visual Studio 8\Common7\IDE directory (where devenv.exe should be located), but this directory is empty other than the PrivateAssemblies and profiles subdirectories. After an installation , the Sta ...Show All
Visual Studio Team System Nightly build using Beta3 refresh
We want to schedule nightly build on our Build Server. I found in some articles you need to call the BuildController webservice with a scheduled console application. In all the examples for this console application I see they use BuildStartParams() to set several parameters around the build. My version of the Buildcontroller has different methods, BuildStartParams does not exist Has the buildcontroller.asmx been modified is there any documentation about how to use it Please read the blog TeamBuild: Scheduled build using Team System http://blogs.msdn.com/abhinaba/archive/2005/11/21/495179.aspx ...Show All
Visual Studio Tools for Office publishing outlook add-in
When I publish my application everything goes fine, I put it on my harddrive/website/desktop. But when I try to run it I get this error: This application is improperly formatted PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : http://localhost/Publish/Appointment.application ERROR SUMMARY Below is a summary of the errors, details of these errors are listed later in ...Show All
Visual C++ Problem where a managed C++ dll returns values via parameters to a C# application
I am looking for description or sample code in C++ for how to retrun values via parameters from a managed C++ dll in Visual C++ 2005. It is no problem to send values from my C# to the managed C++ dll, but return values via parameters dosn't work. Can anyone send some documentation on this topic /BR Nicolaj Hi Nicolaj! I am not entirely sure I understand what you mean with parameter. If you try to pass/receive values through a reference function argument, this is the principle: <C#> string s = "InputText"; MyCppObject.MyFunction(ref s); < ...Show All
Windows Forms Whenever I try to introduce an animal i get a stack overflow in terrarium.exe
Does anyone know what might be the issue with this THanks, Paul Tyng Well try to create some good bug then ..... :) like one we have got Terr(o)rium :) lolz..... I was so enthu about this stuff when I first read about it on web, the very same day I got .NET 1.1 (by that time the old version was removed from the site),& ...Show All
Visual C++ Linking static libraries in Visual C++ + passing Byte[] to native C functions?
I am writing a C++ .NET wrapper around some native C functions to provide a .NET interface for these functions for my C# application. I want to link a static library and call some of its functions that use a pointer to a native char buffer. I want my C++ .NET code to do this: int nBytes = 100; Byte[] byteArray = new Byte[nBytes]; external_Cfunction(byteArray, nBytes); // Where external_CFunction is declared as: void external_CFunction(char* charArray, int nbytes); I don't have the source code for external_CFunction, just the .h include file and the static library. How do I call the C function, which expects a pointer ...Show All
.NET Development OleDbCommand.ExecuteReader(CommandBehavior.KeyInfo) throws System.NullReferenceException.
System.Data.OleDb.OleDbDataReader reader; System.Data.OleDb.OleDbCommand selectCommand = new OleDbCommand(selectCommandText, OleDbConn); reader = selectCommand.ExecuteReader(CommandBehavior.KeyInfo); Error System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.Common.ICommandText.Execute(IntPtr pUnkOuter, Guid riid, tagDBPARAMS pDBParams, Int32& pcRowsAffected, Object& ppRowset) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForMultpleResults(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandTex ...Show All
Visual C# Attribute refuses cast
Hi! Edited to rephrase question: The following code is driving me nuts! I am trying to read the IDEiconAttribute from each class (e.g. ConsoleInput ) in a library. But, I cannot access the attribute (object) I retrieve as my IDEiconAttribute , so I can't call the IDEiconAttribute. Icon property. It refuses to be cast to IDEiconAttribute , even though when I print out the type, the type is IDEClassLibraryNS. IDEiconAttribute. In fact, I get the bizzare message "cannot cast IDEClassLibraryNS. IDEiconAttribute to IDEClassLibraryNS. IDEiconAttribute". Why does this work (in my case) obj ...Show All
Visual C++ VC++ 2005 redistributable (vcredist_x86.exe etc.)
Hi there, I noticed that the Beta 2 redistributable is hosted on the Microsoft download library, but the final ones seems not to be. Will it be hosted on microsoft.com (or is it already somewhere ). Also, it has been reported to me that on Windows 2000 the (RTM) redistributal gives an unuseful error message if Windows Installer 3.1 is not installed. The message is error 1723. "A DLL required for this install to complete could not be run." . It would be a lot more helpful to my users if this was a more informative error message - the solution of installing Windows Installer 3.1 was only found by trial and error. Thanks. ...Show All
SQL Server DATEDIFF question
Uses: SQL Server 2000 Personal Edition with SP3, Windows XP Pro; Hi, Is there any possible way that I can differentiate 2 different dates and get in a format inclusive of hh, mm, ss part altogether, rather than only getting one part Like this: if StartDateTime = 10:15:01 AM and LastDateTime = 11:20:01 AM then the difference of LastDateTime and StartDateTime will be = 1hour and 05 Minutes and 00 seconds (I need like this). So using DATEDIFF function I will be only getting one part either hour, Minute and Second. I would like to know is there anyway either by using DATEDIFF function or other to get in the format inclusive ...Show All
