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

Software Development Network >> Andy R26's Q&A profile

Andy R26

Member List

arcoant
krishna16
Marcus J
Vivek Varma
Nickolay Vasilyev
Young K
BilalShouman
lsb_lsb
Demonslayer
Surezsu
Le Saint
yanivpinhas
yaron-ct
crazy_boss
Karim Hemani
seco
tnsgod831
allpdoff
Agent00
Jeff Weber
Only Title

Andy R26's Q&A profile

  • Visual C# InvalidCastException with Windows Media Player / IWMPPlaylist

    I'm working on an audio application that makes use of the Windows Media Player COM Component. I'm using my own Playlist class because I want to be able to provide some additional functionality that the built-in WMP Playlists do not support, like the Playlist determining the Play Mode (shuffle, repeat, etc.) instead of the Player. After hitting some walls using my own Playlist class, I realized I need to use WMP's IWMPPlaylist interface, so I decide to make an Adapter class to implement all the methods that IWMPPlaylist defines without muddying up my own Playlist class. I'm not entirely sure Adapter is the right pattern name here, but that's what I'm calling it for now. My class is defined as such: class PlaylistAdapter : IWMPPl ...Show All

  • SQL Server Help me convert date.. Urgent please

    Hi... I'm with a problem here... I need to convert a date in a string like dd-mm-yyyy to yyyy-mm-dd in a SQL Query... How can i do that I need to use that in a query like this : Select CodeID, Name From Exams Where ExDate Between @Date1 And @Date2 This is urgent... someone help me please If the "ExDate" in your "Exams" table is a dateTime field I don't understand why the code you've given won't work. Is "ExDate" datetime or some other datatype ...Show All

  • Visual Studio 2008 (Pre-release) Dll not found.

    hi friends, in my project I have to use BindingElementExtension for which I need to use System.ServiceModel.Extension namespace whose dll I am not able to find on the machine. Can anyone tell me where I will find this dll. There is no such namespace or dll that i found in the class library on msdn. There is however System.ServiceModel.IExtension i haven't delved into extensions but i imagine you just need to implement IExtension in your BindingElementExtension object. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Not Understanding Game Components

    I'm new to XNA - I'm making a 2d version of pong (nothing exciting, but it's a start). I'd like to be able to do something like.... foreach(gameObject myObject in AllObjects) Sprites.Draw(myObject.Texture,myObject.Vector,myObject.color) It seems resonable. I was going to create my own 'gameObject' class to encapsulate all of the logic and drawing and what not for every sprite in the game. Isn't that what a gameComponent is supposed to do From my broad understanding, you just add a gamecomponent into your collection and the Draw and Update will be called automatically. Is that what I should be using here; if not when do I use the gamecompoent Any help would be greatly appreciated. You might find the X ...Show All

  • Visual C++ how to add activex control to toolbar?

    i have a activex control,i want to add it to toolbar! like the sina ddt tool! http://www.sina.com.cn/ddt/ http://ticker.sina.com.cn/ticker/setup.exe thanks! For such issues, the newsgroups at http://msdn.microsoft.com/newsgroups is a more appropriate location. OTP Thanks, Ayman Shoukry VC++ Team ...Show All

  • Visual C# Why Modifier can't be set like C++

    I am using C++ Language and learning in C#. But I used to set Public modifier as class cls { -----param public : -----method and param } Why C# don't have this. I think all modifier should be able to set as this method like C++. And can set like Java too. Or Microsoft has some reason Why it can't is syntax. Why it was designed that way has already been pointed out: to clarify member modifiers and to increase quality (by avoiding accidental and un-obvious modifier changes because a declaration's class offset was changed resulting in a different modifier). ...Show All

  • Visual C++ Q: How to disallow users to terminate my program?

    Hi, I'm building an application to monitor users so as to prevent them from abusing the PC. This program must not be stopped. How can I disallow users to terminate my program I found out that if I want to terminate ZoneAlarm's vsmon.exe from Windows Task Manager, I'll get an error message "Unable to Terminate Process: The operation could not be completed. Access is denied." Can I make my program like that The users are running on a limited account (I have access to the administrator a/c). Is there a simpler way that I can solve my problem I am using C++ w/ MFC on Visual C++ 2005. Sam is right. This issue really has nothing to do with C++ itself. Here is the security newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx d ...Show All

  • .NET Development Data provider could not be initialized

    Hello, I'm using OleDB provider to connect Access 2003 database. My connection string is: "Provider=MSDataShape;Data Provider=Microsoft.Jet.OLEDB.4.0;Data Source=MyDb.Mdb" After my application is executing about 200 commands one by one I get the following error: System.Data.OleDb.OleDbException: Data provider could not be initialized. Unspecified error at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection) at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection own ...Show All

  • .NET Development Uploading DIME attachments from client to server

    Hi, Just learning about web services so I'm kind of a newbie. All of the expamples using DIME I have seen so far (both online and in a book) have been examples of downloading attachments from server to client. Can anyone point me to a good code example of using DIME to send attachments from client to server Thanks in advance for your help. -Mark Use this code ws.MyWS myWS = new ws.MyWS(); System.IO.MemoryStream ms = new System.IO.MemoryStream(); Microsoft.Web.Services2.Dime.DimeAttachment dm = new Microsoft.Web.Services2.Dime.DimeAttachment("image/jpeg",Microsoft.Web.Services2.Dime.TypeFormat.MediaType,ms); myWS .RequestSoapContext.Attachments.Add(dm); myWS .UploadFile(key, filename);   ...Show All

  • Visual Studio Express Editions Reading, Converting, Writing a Hex file?

    I am learning C# in Visual Studio Express. I am trying to re-create a program like I had in VB6 (which was originally from QBasic). What it does is ask the user for a filename (I have this part figured out and it works), opens the filename and reads it into memory strings: The file consists of hex data, So I would guess that means using the BinaryReader But I can't read the data into a string defined field in C#. How can I do this example VB6 code:    Open fi For Binary As myfile   'read entire file into buffer    buf1 = Input(109120, #myfile)    buf2 = Input(4, #myfile)    buf3 = Input(97000, #myfile)    Do Until EOF(myfile)     b = Input(1, #myfile)  &nb ...Show All

  • .NET Development How to bulk insert in .net 1.1

    I have the following code to insert values from dataset to db How can I bulk insert following records in .net 1.1 OdbcConnection odbcConnection1 = new OdbcConnection(@"dsn=Mydsnname;uid=mydsnid;pwd=mydsnpasssword"); OdbcCommand cmd = new OdbcCommand(); cmd.CommandType = System.Data.CommandType.Text; cmd.Connection = odbcConnection1; odbcConnection1.Open(); for(int i=0; i<ds.Tables["Book"].Rows.Count; i++) { DataRow sqlRow = ds.Tables["Book"].Rows ; cmd.CommandText = "INSERT into TestBookTableTemp (Bookcode, Title,Description,sourceid) VALUES ( , , , )"; cmd.Parameters.Add(" ", (string) sqlR ...Show All

  • .NET Development Extracting public exposed methods from a dll

    How can i extract the exposed method signatures from a dll assembly Can anyone help me out.... You can use reflection to examine an assembly. For example: //this is a class from the dll assembly MyClass test = new MyClass(); //get all public, non static methods System.Reflection.MethodInfo[] methods = test.GetType().GetMethods(System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public); //display them in the debug window foreach (System.Reflection.MethodInfo method in methods) { System.Diagnostics.Debug.WriteLine(method.Name); } For a complete example, check out http://msdn2.microsoft.com/en-us/library/4d848zkb.aspx ...Show All

  • Visual Basic IDE annoyances

    While i absolutely love the new visual studio, there are a couple of things that drive me nuts!!! when i right click on a symbol in code (such as a variable or procedure name), i can choose "Definition" and jump to that location. unfortunately, the "Last Position" menu item (that was available in VB6) was removed so now i cannot jump back to where i was previously. when i want to save my file with a different name, i would normally choose "File->SaveAs". this has now been changed to include the file name, which i find to be reallly annoying, especially since i will not be using the same name. opening visual studio is really quick, but closing visual studio takes forever. opening the design (GUI) view takes forever. switch ...Show All

  • Windows Live Developer Forums Accessing MSN Search Web Service from Perl

    I've been trying to build a MSN Search API client with Perl using SOAP::Lite to interface with the SOAP server.  I'm not an expert using Perl or SOAP so any help would be appreciated. Perl Code use SOAP::Lite +trace; my $appID = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; my $msn = SOAP::Lite->service( 'http://soap.search.msn.com/webservices.asmx wsdl' ); my $response = $msn->Search( (    'Request' => (       'AppID' => $appID,       'Query' => 'xbox',       'CultureInfo' => 'en-US',       'SafeSearch' => 'Off',       'Requests' => (   &nbs ...Show All

  • Visual FoxPro Setting up session defaults.

    Hio all; I would like to set default session settings (Like talk, excl, etc) in all my forms. I am not sure if I should do this in the init of my baseform class, or somewhere else Thanks. The Init() is too late - you need this code in the LOAD() and the first command in the list should be SET TALK OFF But yes, your base form class is the place for it. ...Show All

©2008 Software Development Network