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

Software Development Network >> Michael Bachar's Q&A profile

Michael Bachar

Member List

bluejay_2006
Philippe Cand
nizmo
Michael Klucher - MSFT
Chris Jobson
_JJ
NiklasECG2
JpLindgren
Son_seph14
Fiddel
Giber
KyentC
Buddhist
Sweeps78
jtaylor42
hunb
Alastair Q
Deac910
Tommi S. Laukkanen
powerteh
Only Title

Michael Bachar's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Any scripting support?

    I haven't found any info on scripting support in XNA. And the disccussion on supported languages seems to mean only C# is usable with XNA. So we cannot incorporate any script engine What about the DynamicMethod class As written in another thread the necessary methods are currently not supported on the XBox 360 version of the framework yet. ...Show All

  • SQL Server Executing SSIS packages in order

    Project => New SSIS package => Execute package task and in this many more Execute package task with connectors. When we execute the master package how it will decide which is the first package. Hi Murli, You can connect n number of Execute package task with each other sequentially or parallely by connecting them in the control flow. Just make another package which will be your master package and add your execute package task on the control flow of the master package. Connect the tasks in sequence you want them to run. Regards, Vikram Kansal ...Show All

  • .NET Development Delayed send with smtpclient in .net 2.0

    Is there any way to force the smtpclient to send mail immediately with the .send method in system.net.mail 2.0 Right now it takes anywhere from 90 secods to two minutes before the mail is actually sent once the .send method executes. I've tried setting the object to nothing immediately after the .send method call, but no luck. The real issue for me is the send delay is also causing the smtpclient  to hold a lock on attached files that are being sent for that same 90 seconds to two minutes. I need to move the file immediately after emailing it, and right I get an exception telling me two processes can't access the file at the same time - obviously the smtpclient holding onto the file until it's ready to sent it. BTW, this app was usi ...Show All

  • Visual Basic Math Questions

    This is my code I'm working with. I'm trying to use the sum from the lhGal to show in lhGal2.Text. Dim FirstNum, SecondNum, ThirdNum, FourthNum As Double 'Intial Fuel Add FirstNum = lhPounds.Text SecondNum = lhDensity.Text ThirdNum = lhGal.Text FourthNum = lhPounds2.Text lhGal.Text = FirstNum / SecondNum - 0.4 'Additional Fuel Added to bring to 1200 lhGal2.Text= FourthNum / SecondNum - lhGal   Spidermans_DarkSide wrote: Hi, '   As long as the numbers are right in the textboxes this should work!! '   This is your original code only altered with CDBL and CSTR   '   instructions added into the c ...Show All

  • Visual Studio 2008 (Pre-release) Cider support for local assembly references?

    Am I doing something wrong Or do i possibly have an bad interaction between Cider and ReSharper (my guess). every time i make a reference to the local namespace in the same assembly... e.g. < Page x:Class = " MyNameSpace .TestPage " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:local = " clr-namespace:MyNameSpace " Title = " TestPage " > < Page.Resources > < local:MyConverter x:Key = " myConverter " /> I end up getting all sorts of errors, even though it all compiles fine. In just the snippet i've pasted here, I get three errors: Assembly '' was not found. Th ...Show All

  • SQL Server join several fields to create new field

    What would be the recommendation/approach in creating a seperate field in which joins several differate fields together. I have a table with field name a, b, and c. I want the information in those fields to be populated in a seperate field, d. So instead of: a 122 b joe c st I would have: d 122 joe st Thanks! Possibley a better way of doing this is in the view because I don't need to store the actual data. I just need a way to present it in an application. So if there's a sql statement that I could add to my existing view, that would work as well. One caveaet in the current view is that I still want the a,b,c fields to present themselves in the view. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Using own data-exporter.

    Hi, we are a team of programmers and graphic artists, wo work on a kind of an instant messaging system in 3D. We use C# and managed directx and are in a decision process, if we shall develope our system for XBox 360, too. Because we work on a commercial project, we have no time to wait for the content managment system. We must work and decide now. Indeed we need a kind of a content system and want to develope our own system with collada as intermediate format and some own formats, which will be only a image of the data, we will hold in the memory after loading, so that the loading process will be very fast - perfect for streaming data in the background. Will it be possible to load our models with the storage system on the XBox 360 Will it ...Show All

  • Visual Basic Efficient programming of repeating tasks. Possible?

    Dear all, I have a form with picturebox (picInput1) and a number (say, 20) of radiobuttons rbLut1...rbLut20 that, when clicked, will impose 20 different LookUpTables (LUTs, or palettes) onto that picturebox. Luts are derived from other picture boxes that exist: lut0....Lut20. What I made (see below) works but it is typing-inefficient AND I don't like it because it is not elegant: '***Start current code:------------------------------------------------------- Private fyCurrentLut As String = "Lut1" Public Sub rbLut0_CheckedChanged(ByVal sender As Object, ByVal e As _ System.EventArgs) Handles rbLut0.CheckedChanged, rbLut1.CheckedChanged, _ rbLut2.CheckedChanged, ............ rbLut20.CheckedChanged 'KJ aug 2006. Det ...Show All

  • Visual Studio 2008 (Pre-release) RTSP streaming

    I've written a RTSP streaming server that streams live television by saving a .ts buffer file and then stream it using the RTSP protocol. However, when I try to watch the stream with a MediaElement or even WMP 10 or 11 it's just black, or it says that it doesn't support the protocol. So my question is, isn't there any support in the MediaElement for RTSP streams Not sure who the manufacturer is here... they should provide you a DShow filter to enable playback in WMP (and likewise it should work in WPF then). ...Show All

  • Visual Studio VS2005 intallation fails - MSXML 6.0 Parser "Fatal error during installation."

    I am trying to install VS2005 Beta 2 on an XP Pro SP2 box. Nothing was intalled on this box before (no Framework, no VS). VS2005 setup has only installed succeffully .NET 2.0 Beta 2 framework. The next component it tries to install is MSXML 6.0 Parser. And this is where it chokes. The log shows the following: [06/02/05,16:41:01] MSXML 6.0 Parser: [2] Error code 1603 for this component means "Fatal error during installation. " [06/02/05,16:41:01] MSXML 6.0 Parser: [2] Setup Failed on component MSXML 6.0 Parser [06/02/05,16:41:05] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InstallManagerHelper() with HRESULT -2147023293. [06/02/05,16:41:05] setup.exe: [2] Component error string not specif ...Show All

  • Visual Basic How to display distinct rows from a filled datatable

    Hi, i have a datatable with 1000 records i want to display only distinct city from the table. can i directly get the rows from the datatable without using distict clause in sql query. Thanks Atanu You can create another datatable based on the first using the following Dim d3 As DataTable = dt.DefaultView.ToTable(True, "City") Where dt is your existing datatable and city is the field name - this will create a datatable of unique cities. ...Show All

  • Visual Studio 2008 (Pre-release) How to dispose a ServiceHost?

    I start ServiceHosts from dynamically added assemblies, but can't unload them (dll still locked) since I'm not able to dispose closed service hosts. Here's some code (simplified) AppDomain appDomain = AppDomain.CreateDomain("AppDomainName"); Assembly contractAssembly = appDomain.Load("NamespaceOfContract"); Type ImplementedContract = contractAssembly.GetType(ContractImplementationNamespace + "." + ContractImplementation); Type ContractInterface = contractAssembly.GetType(ContractInterfaceNamespace + "." + ContractInterface); Uri[] baseAddress = new Uri[] { new Uri("http://localhost/test") }; ServiceHost serviceHost = new ServiceHost(ImplementedContract, baseAddress); serviceHo ...Show All

  • Visual C++ C++/CLI C++ Interop and FxCop/Code-Analysis warning CA2122

    I've purposely been ignoring a CA2122 warning in some C++ interop code I've been working on for quite some time.  I've just recently had the cycles to investigate the warning  The warning message is as follows Warning CA2122 : Microsoft.Security : MyClass.Method():Void calls into Marshal.GetExceptionPointers():IntPtr which has a LinkDemand. By making this call, Marshal.GetExceptionPointers():IntPtr is indirectly exposed to user code. Review the following call stack that might expose a way to circumvent security protection: ->System.Runtime.InteropServices.Marshal.GetExceptionPointers : IntPtr ->MyClass.Method : Void ... MyClass is a managed class where Method calls a native static (for readable illustration purp ...Show All

  • Visual C# toolStrip with Database connection

    i have a combobox on my toolStrip How can I populate with data from a database ok i see, its different to what I thought it would be. I guess you would have to add the items using a loop, something like perhaps:   SqlCommand theSQLCommand = new SqlCommand("SELECT  ColumnName FROM tableName "); theSQLCommand.Connection = someConnection;   //create your SqlCommand the above is an example. Then...   theSQLCommand.Connection.Open() SqlDataReader theReader = theSQLCommand.ExecuteReader(CommandBehaviour.CloseConnection); while (theReader.Read()) {    theToolStripComboBox.Items.Add(theReader.GetValue(0)); } theSQLCommand.Connection.Close();   &nb ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Record Audio Output

    Hi all, I want to record audio output, mean the audio stream from the speacker not the mic. For example I start Media Player and then record it's output. Can you help me cheers Thx for the reply! By the way , you can tell me HOW to choose which channel can I record (programmatically) If it's offtopic thx for the help! :) cheers ...Show All

©2008 Software Development Network