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

Software Development Network >> yadgor2000's Q&A profile

yadgor2000

Member List

Eric Liprandi
ceibner
Manmeet Panigrahi
Indigo Cowboy
Milo123
Joakim Wennergren
Annihil8
allison_h
Julio Diaz C.
abhi_rock_star
Matt24
SteveLK
Mürşit Hakan ÇİL
Ross B.
Tommych
Kevin Dente
Rod Dela
Tony P Brightman
aa807
danielda
Only Title

yadgor2000's Q&A profile

  • Visual Studio Tools for Office Explorer Wrapper for C#, VSTO 2005 & Outlook 2003

    I have tried many variations for the explorer wrapper, and my last attempt was with a few bits of code taken from the Microsoft "ShortcutBar Sample". My resulting Explorer wrapper is at: http://pastebin.com/844445 But I'm facing a problem: If I open multiple Explorer windows and close them, the Outlook process is still running after all Outlook Explorers have been closed. This doesn't happen if I only have one Explorer running. To reproduce the problem, take the code pasted at the URL above, and debug it. When Outlook launches, open multiple explorer windows (right click on a mail folder and select "Open In New Window"). And then close them. You will find that your debugger doesn't stop on its own, and you ha ...Show All

  • Software Development for Windows Vista Parameters for an activity

    Hi, I've used the beta version where you can pass parameters to activities and mark them as input and output paramenters. I've used to consume them i in the code activity_executeCode method like this, but now, Parameters collection does not work. Me.Parameters("MyOutputParameter").Value = "35" How can I set and access my parameters from an activity. Best Regards The Parameters collection property is removed in the RTM version. Instead, you can define each parameter as dependency property in your workflow. When you call WorkflowRuntime.CreateWorkflow and pass in a dictionary containing parameter name and value pairs, make sure the names match the dependency property names. The value of the dependency pr ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Getting cue names

    Hi, I would like to ask about methods for getting cue names. XACT provide two ways to expose that names but both methods are not enought for me. Generating header with cue indexes oppose the main idea of XACT in my opinion because it involve programmer needlessly. Generating cue list is not good too because one need to parse such file. XAudio share interface with other apis and to make whole process uniform I need to convert that list to script or generate similar list from scripts that define sound banks for other apis. That case would be easier if one could define a format of output list in XACT. It would be nice to have functions that get cue names from sound banks because it would simplify and shorten the way of sounds from sound desi ...Show All

  • Windows Forms "System.FormatException was unhandled"

    Here's a quick question. I'm trying to save the contents of a TextBox back to a typed dataset. The problem I am encountering is that the application throws a "System.FormatException was unhandled" error when I try to do this. Here's the low down. The TextBox is setup to be bound to a BindingSource from the moment the form is realized. Keep in mind that this has been done through the designer. Anyhow, I have preassigned the number zero to automatically populate in this text box in the event that the user wishes to not enter anything. So when I decide to add a new row, the following line of code is fired. txtPeopleInFamily.Text = "00" ; Then the following happens... DataRow newRow = this .clientData ...Show All

  • SQL Server SSIS Package deployment with C# problem

    Hi, I try to deploy a SSIS Package with the method SaveToDtsServer of Microsoft.SqlServer.Dts.Runtime.Application. My C# project is to deploy a SSIS Package in a Setup Application (My project has a Installer Class). It's work several times, but suddenly It stop working without change in my code. There's a System.BadImageFormatException : Message="Invalid access to memory location. (Exception from HRESULT: 0x800703E6)" Source="Microsoft.SqlServer.ManagedDTS" StackTrace: at Microsoft.SqlServer.Dts.Runtime.Application.SaveToDtsServer(Package pPackage, IDTSEvents pEvents, String sPackagePath, String sServerName) at TestPackageDeployment.Form1.button1_Click(Object sender, EventArgs e) in D:\DE ...Show All

  • Visual Studio 2008 (Pre-release) How can I get the Drawing of a Button for rendering on an Adorner?

    I have a control, for example a Button, which i create in code and don't (!) want to display in the window directly. Now I need the Drawing of the Button to paint it on an Adorner, because, as I see, the DrawingContext only supports DrawDrawing(..). How can I get the Drawing of a Button because the following sample just doesn't work since I never get a DrawingGroup back from the VisualTreeHelper.GetDrawing(foo) function: //my adorner OnRender method: protected override void OnRender(DrawingContext drawingContext) {     Button foo = new Button();     foo.Content = "bla";     DrawingGroup drawingGroup = VisualTreeHelper.GetDrawing(foo);     if (drawingGroup != null)    ...Show All

  • Visual Basic Passing a function to a method in another object (Delegates?)

    Hi, A quick question for someone to possibly solve while I go home for the evening. ;) I have a class which contains an object (O1) which has a method I want to pass to another object (O2) without simply storing a reference to O1 in O2. I have a method where I pass in the object to my container class, and that looks like the point where I want to send off the information to O2. Something like: Public sub PutObjectInContainer(Object as O1) me.instanceOfO1.putObject(Object) me.instanceOfO2.addMethod(AddressOf Object.methodName) End Sub I've found information about Delegates on the web, but it's all like a jigsaw that won't fit together. I'll post more in the morning if needed, but if anyone can solve ...Show All

  • Audio and Video Development DMOs Operability in Media Foundation ?

    I thought I remembered hearing somewhere that DirectX Media Objects could be directly used by Media Foundation. However reading the current docs for Media Foundataion Transforms ( http://windowssdk.msdn.microsoft.com/en-us/library/ms703138.aspx ), it sounds as if you can implement IMediaObject on an object that implements IMFTransform but one cannot directly use DMOs in Media Foundation. Is this correct Thanks! Scott Thanks Becky for your help! Sounds as if the DMO wrapper for Media Foundation could be a very useful tool. Any chance this functionality could be folded into future versions of Media Foundation ...Show All

  • Visual Basic Code to Flow Chart Diagram

    I'm looking for ideas... I have written an app to generate a logon script for my domain, and I'm pretty happy with it as long as I am willing to hack the vbscript, but I want to be able to generate the code based on objects in a diagram. Let me explain a bit... My app shows users, groups, OUs, printers, drives, etc. in listviews, and it's easy enough to drag a printer or a drive onto a group or a user, but suppose the printer is dependent on what workstation the user is logged onto. I think it would be do-able to display a picture box, parse the vbscript and draw lines and boxes, but that would only be an output - very useful, but that only makes a logon script viewer. I would have to be able to give the user buttons and whatnot to draw ...Show All

  • SQL Server SQL ODBC table listing is not showing

    I have created a System DSN using the SQL Server ODBC driver and configured it to point to my server and database.   When I access the newly created DSN, it should show the tables listing.  However, I get the following screen: See it here  Why am I getting this instead of the tables listing and how do I fix it   Thank you! The interesting thing I forgot to mention, is that this works for the same user on all other computers tested. Only this one PC exhibits this problem. Thanks! ...Show All

  • SQL Server Delete question

    I recently uploaded my old MSAccess database structure/information to the SQLExpress 2005 database. I now need to clean out the data of each table so i can repopulate it with the program i am trying to debug. The problem i am encountering is the same no matter what i do. I think it is just some sort of typo when it comes to the statment, but i am so new to Server that i am not sure. Table: OwnerInfo - fully populated/created SQL Statment: Select * From OwnerInfo SQL Error: Msg 208, Level 16, State 1, Line 1 Invalid object name 'OwnerInfo'. SQL Statment: Delete From OwnerInfo SQL Error: Msg 208, Level 16, State 1, Line 1 Invalid object name 'OwnerInfo'. Am i mistyping the table name or forgetting some sort of punctuation I have tried ( ), [ ...Show All

  • Software Development for Windows Vista CardSpace Use Case - Lost or Stolen Cards

    This may be in the documentation and I just have not found it yet. As we consider using Identity 2.0 for our IdM services (so we would be a relying party or resource website), we are reviewing our use cases that were based on the 1.0 model. We plan on supporting OpenId URLs and the self-asserted Cards in CardSpace from a client's machine. One of our analysts asked what happens in the case of lost or stolen Cards So the laptop is stolen or the hard drive crashes. With OpenId we don't see a lost or stolen problem as the OpenId is stored on a website. I suppose there is the possibility that that website would close its doors. We could see a client calling our support line and telling us they had lost their CardSpace on their Vista ...Show All

  • Windows Forms How do I duplicate the behavior of the [?] HelpButton feature in my own button

    I would like to display my own button instead of using the system's HelpButton to mimick the behavior of the HelpButton. The event that I would catch and handle when the system's HelpButton is clicked is Form::HelpButtonClicked event. I do not want to handle this event, I want to raise this event if it is the appropriate thing to do in order to mimck the system's HelpButton. Can anyone help put me in the right direction to mimick the system's button Thanks in advance, RhR OK, then more specifically, how can I raise the Form.HelpButtonClicked event I tried using OnHelpButtonClicked. When I tried to raise the event, nothing happened. What are my options so that I can mimick, with my own button ...Show All

  • Visual C++ New Thread can't update edit box

    I have a simple MFC dialog app with one dialog. I have 3 buttons and 3 edit boxes. When I click each button I start a new thread which increments one of 3 global variables - 1 counter for each edit box. I want to see the counters being incremented in the edit boxed but I have a problem. In the 'thread' function I cannot seem to get SetDlgItemInt to work: like so: UINT Thread1Proc( LPVOID Param ) { while (1) { count ++; SetDlgItemInt(IDC_EDIT1,count); } } The 'SetDlgItemInt(IDC_EDIT1,count);' works elsewhere but not in the code for the new Thread. I keep getting compile errors like error C2660: 'SetDlgItemInt' : function does not take 2 arguments etc... Why is this and how can this be resol ...Show All

  • Visual Studio Express Editions #include <fstream.h>

    I have a C++. It was originally for a Borland compiler, so may need some changes to compile I did compile it and there is a message fatal error C1083: Cannot open include file: "fstream.h": No such file or directory I did change it to fstream and there are more errors than include fstream.h Can u give me some advises to change Thanks The fstream.h header (and some other similar ones like iostream.h) does not exist anymore. It was part of the old iostream library and it was non standard. The replacement is fstream (without .h extension): #include <fstream> using namespace std; // you also need this because the standard stuff is declared in the std namespace ...Show All

©2008 Software Development Network