Software Development Network Logo
  • Visual Studio
  • Visual Basic
  • Visual C#
  • Visual C++
  • Game Technologies
  • SharePoint Products
  • Visual FoxPro
  • IE Development
  • .NET Development
  • Windows Vista
  • Smart Devicet
  • Audio and Video
  • Windows Forms
  • Microsoft ISV
  • SQL Server

Software Development Network >> Ben Weber's Q&A profile

Ben Weber

Member List

DavidThi808
Anil Dhiman
hazz
Mike Oleary
kcchesnut
Priyanka Choughule
EricBrown
Bigaltheshmal
Nimble
Reva
JohDas
Tracey Macias
newtoc#484467
FourBlades
SJH22
Zanzamar
chakravarthi
artu
nalini
triguns
Only Title

Ben Weber's Q&A profile

  • Windows Forms Custom Action dll in C#?

    Is it possible Getting entry point not found when building. No it can't. Well let's put it this way. If you use .NET Installer classes in any managed code language, Visual Studio setup projects call them by inserting a shim C++ Dll between the MSI process and the Installer class. The MSI process calls the type 1 deferred custom action in the C++ Dll, and that cranks up the CLR to call a managed installer class handler. If the original question was meant to be something like "can an MSI setup call a C# Dll like it can call a C++ Dll" I'll stick to my original answer of "no". I suspect you may have set your custom action properties so that MSI tried to call a C# assembly as if it were a C++ Dll(because you set Ins ...Show All

  • Visual C# mscorlib internal exception ANY IDEA ?

    System.InvalidOperationException was unhandled Message="The Undo operation encountered a context that is different from what was applied in the corresponding Set operation. The possible cause is that a context was Set on the thread and not reverted(undone)." Source="mscorlib" StackTrace: at System.Threading.SynchronizationContextSwitcher.Undo() at System.Threading.ExecutionContextSwitcher.Undo() at System.Threading.ExecutionContext.runFinallyCode(Object userData, Boolean exceptionThrown) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteBackoutCodeHelper(Object backoutCode, Object userData, Boolean exceptionThrown) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuarant ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. xbox 360 live vision

    hi guys, not sure if this question belongs here but will game express studio have access to the xbox 360 vision camera i mean developing games using the camera thanks in advance I'm going to guess that it's not going to make it into the initial release, probably a patch. And that just for displaying a video stream not for doing something like TotemBall. It might not even be available in GSE, you'll probably need the Pro version. ...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 System Monitor logging of SQlServer counters

    I have SQl Server 2000 running on my winXP machine, and I can see SQLServier counters in System Monitor. But if I add them to a log file, they don't show up I can log regular windows counters (like memory counters) but no SQLServer items. And I have tried run as using the account I log in (with full privileges). What's the trick Thanks for the reply, but I'm just doing what every example shows, adding SQLServer counters (like GeneralStatistics.UserConnections or AccessMethods.FullScans) and they won't come up in the log like the built in System counters. ...Show All

  • Software Development for Windows Vista How do I get my custom activities to appear in the toolbox?

    I have a project with some activities which all appear in the toolbox while I’m working with the project. Next I compile the project, open a new project, and reference the assembly from the first project. What do I have to do to get the activities from the first project to appear in the toolbox automatically I’m using the ToolboxItem as shown below: [ ToolboxBitmap ( typeof ( Page ), "ExtendedCodeActivity.ico" )] [ ToolboxItem ( typeof ( ActivityToolboxItem ))] [ Description ( "Like a System.Workflow.Activities.CodeActivity" )] [ Designer ( typeof ( ExtendedCodeActivityDesigner ), typeof ( IDesigner ))] public partial class ExtendedCodeActivity : Activity { ... } Should I use the ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. new SpriteBatch(graphics.GraphicsDevice); InvalidOperationException

    I get an invalidOperationException when I run the following code: mSpriteBatch = new SpriteBatch (graphics.GraphicsDevice); I just installed GSE Beta 2. This did not happen in Beta 1 with a different PC. Not tried this PC yet. Simon Same discussion here .  It seems Beta 2 is now forcing you to have a pixel shader, where beta 1 you could get away with only a vertex shader (I have an integrated Intel card).  I am guessing they "fixed" this bug from beta 1. If you have an integrated Intel card this will tell you what it supports:  http://www.intel.com/support/graphics/sb/cs-014257.htm Regards ...Show All

  • SQL Server Report export to Excel

    Hi, I need to export various reports created using SQL Server 2005 Reporting Services to ONE Excel workbook (with multiple work sheets - tabs - one for each report). Is there an option in Reporting services that can allow me that Thanks. I'm sorry, I don't think I understand what you're trying to accomplish. Each row in RDL will get rendered to at least one row in Excel (depending on the content of the row and other items on the page, it may span multiple rows). I can't picture how you would want it to work differently; if you can explain in more detail, maybe I can give better guidance. ...Show All

  • Visual Studio Team System Version History

    Coming from a VSS background, I am used to seeing version numbers and labels in the history of any item. In Team Foundation, the history only show the Changeset number and the comments. Is there a way I can find out what labels are applied to a version of an item Is there a way to see the version number How does one compare two previous versions of an item where neither version is the latest Regarding labels, the main reason you won't find them in the history view in v1 is because TFS labels are not points in time (see http://blogs.msdn.com/buckh/archive/2006/08/28/diff_between_labels.aspx for more info). Having said that, we are discussing how we can better integrate this information in a future re ...Show All

  • Smart Device Development Smart device Cab project issue

    Hi, I have created an 'Smart device Cab project' to install my application , how can I set the '%InstallDir%' to be an Storage Card, by default the cab file install the application in Program Files directory. Regards Mario What macro are you talking about I want to have my cab install in \Application. So When I created my smart device CAB project I put my files in the Application directory (and NOT in Program Files). Yet, when the cab builds, if you look at the .inf file, it defines the InstallDir as %CE1%. I tried changing the %CE1% (which equals \Program Files) to \Application and saving it. When I rebuilt, it got overwritten anyway. And sure enough, upon installation, the app is in ...Show All

  • Visual Studio Express Editions Snipets ??

    Hiya, I was wondering if anyone could help me. I am very very new to visual basic (just going through the first tutorial in my book :) Its telling me to use snipets to add code in, which is fine, but i have noticed that when i put snipets in its only putting in a few lines of code, compared with the pictures in the book there should be alot more. At first i thought it might be because I have a different revision of VB than the one used in the book, but when testing it my programme is not working so i guess i am missing code :( Is there any setting's I need to change It is also possible that the book may have come with a CD (missing ) or pointer to a web page which included additional snipp ...Show All

  • Visual Studio Tools for Office Automation in Excel 2003 fails when linked in Word or PowerPoint

    I am building a shared add-in for Excel but am having difficulties with Excel objects in Word or PowerPoint when my add-in is running. I have found out that the problem comes from listening to Application events in Excel and have made a simple project that reproduces the error. I used the VS2005 template wizard for making a shared add-in and my connect.cs looks as follows: using System; using Extensibility; using Microsoft.Office.Interop.Excel; using System.Runtime.InteropServices; namespace MyAddin1 { [ Guid ( "CE7B3AF1-9095-4e05-92FC-66F3AF564C47" ), ProgId ( "ExcelAddin.Connect" )] public class Connect : Object , IDTExtensibility2 { public Connec ...Show All

  • .NET Development Querying a XML file with XPath fails

    Hi, I wrote a VC# application targeting the .Net Framework 2.0 (source code below). It uses a System.Xml.XmlReader to load a file (the file is well-formed); a XPathDocument built from the XmlReader object; a XPathNavigator gotten from the XPathDocument to process XPath queries. When testing this program with a simple query ( //s/@epsilon ) it returns an unexpected object : MS.Internal.Xml.XPath.XPathSelectionIterator . The result should be 1.5 . Any help would be appreciated. Intenion Hi, Try: nav.Evaluate( "number(//s/@epsilon)" ); Thanks, Sinan ...Show All

  • Visual Studio Tools for Office add-in write text in excel

    Hi Experts i am trying to write text on excel sheet ,i am using the following code: appXl.ActiveCell.Value2 = "Sample Text " ; this is working fine when a cell is selected but its not working when the cell in edit mode. If the experts in the Excel programming group said it can't be done, it can't be done. The only possibility that occurred to me was to try SendKeys, but even that didn't work. Command execution is blocked. Excel can do it, for certain commands, because the developers that programmed it have access to that capability. They didn't choose to expose it in the object model. You could go back to the excel.programming web interface, create a new post, and ma ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. xact xna 3d audio?

    Hi Can someone tell me how to create 3d positional sounds using xact with xna I cant find anything in the reference and documentation for xna. Thanks Just found out I can't even have any 3d sounds when using xna. hah how retarded is that! Its analogous to if the next Direct3D version only allowed use of 2d sprites I really dislike xact, i cant believe how basic and limited it is, its the only thing i can use if i want xbox compatibility. Direct sound is fine, but if it is becoming deprecated in favour of xact then its a bit worrying. Microsoft can you fix xact soon pls Thanks ...Show All

©2008 Software Development Network