Inmon's Q&A profile
Visual Basic Creating Office COM Add-Ins with Visual Basic .NET article - need help
Hello, I'm new to this type of programming and have found myself put in charge of a couple of applications that were created by a previous employee. So now I'm learning how to do this. I found the article listed in the subject on the msdn site and found it very informative and easy to read. I thought that the instructions were very much to the point and that there wasn't any confusing jargan put in. Unfortunately, after following through the tutorial portion of the article I am unable to get it to compile. I am receiving these three errors: Namespace or type 'PpSlideLayout' for the Imports 'PowerPoint.PpSlideLayout' cannot be fou ...Show All
Visual Studio A minor gotcha: reserved words
One small point that I noticed last week: There are a number of hidden reserved words that cannot be used as identifiers in the domain model. I tried to include in my domain model the concept of an exception, in a class which I called 'Exception'. The designer then failed to compile because the compiler could not distinguish between System.Exception and MyDSL.Exception. Probably other class names in the System namespace and in other namespaces used by the various Designer classes are off limits as class names within a DSL. One to include in the docs... Brian. We've raised a bug to migrate to using fully qua ...Show All
Visual Studio Obtain log file contents?
After my MSBuild project completes, I want to be able to email the results of the Build to my developers. I have a <OnError ExecuteTargets="MyBuildFailedTarget"/> and am able to get my EmailTask to run from the MyBuildFailedTarget, but I need to access the contents of the log file so I can include it in the email I send. I'm specifying a log file name on my MSBuild commandline like this: MSBuild.exe /l:FileLogger,Microsoft.Build.Engine;logfile=MyBuildLog.log So the question is: From within the project file, how do I get the name of the log file specified on the commandline Or alternatively, how can I access th ...Show All
Visual Studio 2008 (Pre-release) Can someone give me an example of how to set an image?
hi, I'm trying to set an image in my code, but it doesn't seem to work. Can someone give me a simple .xaml and .cs of how to set an image. Mine look like this... .xaml: <Window xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005" Title="TrackingApplication" Width="953" Height="753"> <TabPanel> <TabControl Width="400" Height="500"> <TabItem Width="90" Height="20" Header="MapView"> <Grid HorizontalAlignment="Center" VerticalAlignment= ...Show All
Visual C++ Missing mfc42u - do I need to compile unicode version of MFC with Express C++ ?
I have a simple application that links with an existing library from a Chinese hardware manufacturer. Their library was made with VC6. At link stage, I see that mfc42u.lib (mfc42ud.lib) cannot be found. From other threads, I think I may need to compile a unicode version of MFC Can someone please give me a howto to build from the platform SDK source. Of course, if there is a simpler way to fix this issue, please let me know. Thanks in advance... The express version doesn't support MFC. You need to upgrade to get this to work. ...Show All
Visual Studio VS2005 August CTP / VS SDK Sept CTP interop assembly mismatch
Hi, it seems that the August VS2005 installs a slightly more recent version of Microsoft.VisualStudio.TextManager.Interop.8.0.dll in the GAC to the one installed in the VS SDK common\Assemblies directory. Specifically, the definition of IVsContainedCode::HostSpansUpdated now returns an int32. This caused a bit of head scratching due to getting tlbexp errors on code that successfully compiled. Any plans on updating the Sept SDK have you tried this from a clean machine without that, its very hard to determine if this is cruft from the B2 release or a problem with Sept CTP. ...Show All
SQL Server 2 minutes after one datetime vs. another datetime
when I run the query now using and calldatetime >= dateadd(minute,2, a.stop1) , I am getting for example: calltime time2 2006-02-23 15:45:20.000 1899-12-30 21:00:00.000 this doesn't seem to be working, I want all records where calltime is 2 minutes after time2's time and same hour...date doesn't matter and is ignored, just focusing on the time. Will this work DATEPART ( MI , <dat ...Show All
SQL Server Dynamic DataSource
How do I change a DataSource on the fly. Do I make the Data Source and the Catalog values parameters in the report then in code feed the parms in like you would a other report parms or in code just make a new definition then call rs2005.SetDataSourceContents(reportPath, definition); I have had trouble finding help on this subject and would appreciate knowing how you made it work or a link to a useful help doc. Thanks -JW Thank You ...Show All
SQL Server -T 1400 doesnt work on named instances
Hello, I tried this and it doesnt work, I just started up the service with -T flag on default instance but I havent been able to start it with -T flag 1400 on named instances. How can I Know that the directory MSSQL.4 is the MIRROR instance C:\Archivos de programa\Microsoft SQL Server\MSSQL.4\MSSQL\Binn>sqlservr.exe -T 1400 MIRROR I tried LUCHO\MIRROR, MSSQLSERVER$MIRROR and It doesnt work Thanks Another question I have, in the documentation it says that mirroring is only for evaluation purposes and not for production environments, what does it suppose to mean MSFT didnt test the mirroring feature enough ...Show All
Visual C# invalid cast
This piece of code works fine and needs no explicit cast in vb.net. itemId = arrCart(cartId, i) When I converted it to C#, however, it complained that it cannot do the implicit conversion. So I tried: itemId = (int)arrCart[cartId, i]; But I get an exception error read: Specified cast is not valid. itemId is an integer and arrCart is a two dimensional array object: int itemtId; object[,] arrCart; Can anyone tell me how to correct this What is in the array when you get the exception It could be anything (it could be a customer object) that can't possibly be converted to an integer. if you add a ...Show All
Visual C# Define DEBUG constant for a web project
Is it possible to define the DEBUG constant for web development project in Visual Studio 2005 I can see how it is done for a Windows Project, but not for a website project. Define DEBUG constant Defines the DEBUG symbol. Selecting this is equivalent to using the /define:DEBUG command line option. Define TRACE constant Defines the TRACE symbol. Selecting this is equivalent to using the /define:TRACE command line option. Since ASP.NET 2.0 projects do not have project files, there is no place in the Microsoft Visual Studio 2005 IDE to define the conditional compilation symbols like there is in DLL an ...Show All
Windows Forms Yikes: usercontrol inherits from abstract class
All was going well until I tried to open the designer window for a user control that inherits from an abstract (MustInherit) class. The designer won't open because it's trying to instantiate the base class, for whatever reason. Is there a way around this, is this by design or a bug, is it better in C# or .NET v1.1 I guess I can w ...Show All
Visual C++ Stack overflow uncaught by stdlib's debug code.
Hi there. Please excuse my relative lameness or unawareness, but here it goes (I know it's wrong): Visual C++ 2005 Professional, Win32 Console Application ran in Debug mode, with all flags set to defaults, except for warnings, which are set to /w4. Launched from devenv with ctrl-f5 (menu - Debug -> Start Without Debugging) #include <iostream> using namespace std; int InfiniteRecursion( int i) { return InfiniteRecursion(i + 1); } int main() { cout << "before attack...\n"; cout << InfiniteRecursion(0) << endl; cout << ...Show All
SQL Server Performing a range lookup using two tables
Hello. I have a car table, whose rows contain cars and their respective weight: Ex: (1, 1000), (2,1100), (3, 900) etx. I also have a car class table with the classes cars can fall into, based on a lower bound and an upper bound in which the car's weight must fit. Ex: (Class1, 0, 999), (Class2, 1000, 1499), (Class3, 1500, 1999), etc. I need to match each car to it's respective class. I've already search the database for post on this subject, but unfortunatelly my goal is yet to be reached. Can someone help Thanks in advance, Hugo Oliveira Hello. I tried the Lookup "query tampering" aproach and it worked ...Show All
Visual C# Could the compiler only build modifled project?
Whenever I build the solution, the C# compiler build a lot of projects even the files in the project has not been modified. This costs a lot of time. Is there any option that could make the compiler only compile the modified project(projects contains files that has been modified since the last build) Thanks! It is possible but unlikely. I believe there is a project setting option which I have seen that would likely turn off the building of dependencies. If I run across it, I will contact you. James ...Show All
