Toby Buckley's Q&A profile
Windows Live Developer Forums Messenger Plug Inn Question
Hi I wrote a plug in for messenger, it is very simple. It is compile ok, and i install in Messenger. All seems to be ok but it doesn't work. What's wrong I use strong name assemblie Thanks Here is the code: using System; using System.Collections.Generic; using System.Text; using Microsoft.Messenger; namespace AnswerMachine { public class AnswerMachineAddIn : IMessengerAddIn { public MessengerClient m_client; public void Initialize( MessengerClient client) { m_client = client; m_client.AddInProperties.FriendlyName = "Answer Machine" ; m_client.AddInProperties.PersonalStatusMessage = "Envia un mensaje" ; m_client.AddInProperties. ...Show All
Visual Studio Team System Adding Team Foundation Licensed Users to TFS Workgroup Edition -- Help...
I just spent several hours installing a fresh copy of TFS Workgroup Edition on its own box (as single server deployment). In addition, I already had VS Team Suite on a second box. Both installations have SP1 installed on them and work on their own. However, I cannot seem to add users from my 2nd box to the list of Team Foundation Licensed Users on my 1st box, where, when I click Team | Team Foundation Server Settings | Group Membership | [Server]\Team Foundation Licensed Users Properties Windows User or Group Add... ... the "Locations" button only enables me to see the TFS box itself. Like a moron, apparently, I assumed that it would be possible to connect my VS client to my TFS server in a situation where ...Show All
SQL Server Extra column in destination
I have worked with straight-forward simplistic SSIS up to now, so I apologize if this is a simple question. I have a SQL table destination that accepts daily data from an AS400 table. We now have a need to datestamp the incoming data so I added a new column to the destination table where I want today's date. Is there a data flow transformation that I need to use to default the destination column to today's date Time is not a consideration and not needed, just the date. Thanks for the information. guyinkalamazoo3 wrote: Thanks again for the help! Yep, no problem. There are a whole host of other dates available for your use as well, if you look in the system variables list. System::ContainerSt ...Show All
Visual Basic Check Whether The Barcode Reader Read A Barcode
May i know how to check the barcode reader has read a barcode and display the numerical value of the barcode and retrieve information accordingly from time to time. Must i use timer or is there any better way of doing it Thank you. As barcode readers are not standardize I would guess you should contact you specific barcode vendor to see if they have any components/libraries to interact with there hardware. I wouldnt have thought you would have to use a timer to read a bar code, but your not really that clear on the actual specifics of what your trying to achieve (I'm not sure what the time to time comment is all about). Either way contact hardware vendor first, you'll often find that they are pretty ...Show All
Visual Studio Express Editions Inet?
Can console apps have an Inet If so whats code to add and use, or if there is none whats an alternative well VB6 and .NET are different. the other thing I can suggest is to use WebRequest/WebResponse classes to get your stream of data. http:/ / msdn2.microsoft.com/ en-us/ library/ system.net.webresponse.aspx http:/ / msdn2.microsoft.com/ en-us/ library/ system.net.webrequest.aspx looking at your VB6 code etc... I think this would be what you are after. ...Show All
SQL Server ALTER DATABASE MODIFY NAME but
Leave the file location/directory the heck alone! How do I do this Just issuing: ALTER DATABASE Old_Name MODIFY NAME = New_Name moves the mdf and ldf files to a new, unwanted location (apparently the SQL Server default as it's under program files) with the new name. Is this possible or do I have to issue the additional ALTER DATABASE MODIFY FILE statements for this Yeah, turns out it's not that part of the script but rather the Copy Database wizard that is to blame. (I've got a post in tools on it bu gtno replies yet.) ...Show All
Windows Forms specialfolder
Hi, How can i get the folderpath of an application from where its being executed I need to know this in order to save a file in that path. And i mean the folderpath of the application im writing myself. Thanks in advance! Application.StartupPath would give you the directory your application is running from. To access other special folders, like my documents etc... string thePath = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); //for example program files ...Show All
.NET Development Microsoft.Samples.Runtime.Remoting.Security.SecuritySinkMessageHeaderException
Hi, I have a service that receives calls using .NET remoting (1.1), it is published as a singleton. When the server is under load I receive the following exception: RemotingException - An error occurred while processing the request on the server: Microsoft.Samples.Runtime.Remoting.Security.SecuritySinkMessageHeaderException: An attempt was made to retrieve the message envelope from the header array but it does not exist. The client or server channel sink may not be installed. at Microsoft.Samples.Runtime.Remoting.Security.AuthenticationManager.GetMessageFromHeader(ITransportHeaders headers) at Microsoft.Samples.Runtime.Remoting.Security.ServerAuthenticationManagerList.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage ...Show All
Visual Studio 2008 (Pre-release) launching a WPF window from a windows forms app
I have an exisiting winforms app and I want to open a WPF window. So I tried: Window1 wpfWindow = new Window1 (); wpfWindow.Show(); and I get the exception "The calling thread must be STA, because many UI components require this" . So I did some reading and found out why WPF needs to run in STA, but I can't find an example on how to launch my window so that is does. The way I did get it working was to do this: public static void button_Click ( object sender, EventArgs e) { Thread thread = new Thread ( new ThreadStart (CreateUIInAnotherThread)); thread.SetApartmentState( ApartmentState .STA); thread.Start(); } private void CreateUIInAnotherThread() { Window1 wpfWindow ...Show All
Visual Studio Team System best practice for storing 3rd party libraries in version control
Does anyone store their third-party controls and library DLLs in a shared spot in TFS version control Instead of having to install these DLLs in the GAC on the local machine, we'd like these to get checked out in their own ThirdParty folder, organized by vendor and then version. But I don't see a way to add them to source control if they're not part of a proper Visual Studio solution. Within Source Control Explorer, I don't get an option to Add New Folder. Is this possible Thanks! Dan We have problems with keeping references valid. I can set a relative path, make sure it's relative, and then I'll check it in to version control, someone else checks it out, and now all of the references are messed up and h ...Show All
.NET Development Associate custom serializer with class?
After looking through all of the XMLSerializer stuff out there, I'm starting to think that it is not the way to go. The lack of good support for collections makes it fairly useless. There does not seem to be any easy way to get XML which looks like this: <House> <Windows> <Window> <Height>6</Height> <Width>4</Width> <Type>Casement</Type> </Window> </Windows> </House> When Windows is a member of House which is of type WindowCollection not Window[] Can you elaborate on your scenario a little Implementing IXmlSerializable on your class will give you complete control over how it is de/serialized. Thank ...Show All
Visual Studio VSS 2005 install not installing VS 2005 plugin.
Hello, Not sure what's going on but has anybody successfully been able to get the VSS 2005 install to complete successfully and when finished, have the VSS plug-in available in Visual Studio 2005 I have enabled the IIS compatiblity. I right click and run the vss setup as administrator. I get no error messages but afterwards, if I click on file there is no source safe option. Also, when I try to open a website, source safe isn't an option. My database server is on a remote W2k3 server. I need the add-in for Visual Studio to open projects from databases on remote servers. Also, I have tried installing VS 2005 SP 1 beta. (Not that I could see how it would make a difference but tried none the less.) Any ideas of how to get this ...Show All
SharePoint Products and Technologies Problem in Document conversion
Hi, is it possible to convert .DOCX file to web page. I am running RTM version of MOSS and when i was trying to convert word document to webpage it always give me ERROR: "Converting the document to a page failed. The converter framework returned the following error: CE_OTHER" Anyone could help me out of this. OK, so the CE_OTHER problem is indeed as suspected, you have a policy set that prevents non-Admins from logging on to your machine directly. Fire up Local Security Settings" from Administrative Tools, go to "Local Policies" - "User Rights Assignment" and add the HVU-* user to the "allow log on locally" setting (you can verify by trying to log on ...Show All
Visual Basic Should I use a List, Arraylist or something else?
I am writing a scientific datalogging program and have created a class which stores and handles all the actual data as it arrives from the various instruments. On a timer_tick I want to take a snap shot of the data. I have tried this using Public Class DataSet Public DataTime As Date Public ElapsedTime As Double = 0.0 Public Temp_T0 As String , Temp_T0_dbl As Double etc... Public CurrentData As New DataSet Public Shared LoggedData As New List( Of DataSet) however on the timer_tick I use LoggedData.Add(CurrentData) the whole list is overwritten by the CurrentData values. The LoggedData.Count increases but all the items become the same as CurrentData ...Show All
Visual Studio Tools for Office suppressing web properties from a word save as command when saving to sharepoint library
Does anyone know if there is a way to suppress the web properties dialog box that is display when you save a document from word to a sharepoint site. I have a macro that is saving a number of documents to a sharepoint site and the macro fails because under certain circumstances a dialog box is shown prompting for the web properties. Note I am using words displayalerts = wdalertsnone but this does not seem to suppress the dialog. Sub HandleWord(ByVal filepath As String, ByVal copyto As String, ByVal fname As String, ByVal htmlflag As Boolean, ByVal copyfrom As String) On Error GoTo werr eoffset = 24 Set odoc = doc.Documents.Open(filepath, , True) odoc.Fields.Update NewFile = copyto '& fname odoc.Application.Dis ...Show All
