Todd Thomson's Q&A profile
Visual C# changing table names
I have a bound dataset, with tables (2000,2001,2002,2003 etc). all these tables are the same, just different names. Because these names will change over time I want to be able to add them within the program. If I design the form around the table 2000, can I change it to display the information from table 2003. The table 2000 would have a tableadapter and bindingsource. If this is possible can anyone show me in c#. Thanks in advance. Hi, is there any special reason for using different tables How about using the same table, just loading it with different (filtered) data You could perform filtering either by loading the whole table and filter records by the year (this might be a ...Show All
.NET Development C or C++ call to identify a component as a .Net assembly?
Does anyone know of a system call that can identify a dll/ocx/exe as a .Net assembly. I am currently using ::LoadLibrary and ::GetProcAddress to determine if the component is a com server, but I need to start checking for .Net assemblies as well. I am not aware of any simple system call that will solve this problem. However you certainly can parse the file's PE header and determine it that way. It's a bit more complicated that you're probably hoping for, but it's not too bad. A good resource I've used before for this is this blog entry from Kris Stanton: http://blogs.msdn.com/kstanton/archive/2004/03/31/105060.aspx . Brian Stern [MSFT] ...Show All
Windows Live Developer Forums The following message could not be delivered to all recipients
"The following message could not be delivered to all recipients" I keep getting this error msg everytime i try talking to one of my contacts. It was all working fine until all of a sudden i cldnt communicate with them no more.. Also i'm having the same problem on both windows messenger & Windows live messenger.. can someone pls address this issue for me. I too am getting this same problem. My contacts can NOT start conversations with me. They just get the "could not be delivered" message. I tried signing into Web Messenger - same thing. I tried signing into Xbox360 Messenger - same thing. It definitely seems like it has to do with my account on Microsoft's servers that it ...Show All
Visual Studio 2008 (Pre-release) Subject: Path animation in resource dictionary
Hi, I have all my styles and application visuals in a resource dictionary and at this moment I'm trying to do a path animation with an ElipseGeometry the problem is that in the PointAnimationUsingPath I need to put the object name, the problem is that in ResourceDictionaries we can't use the x:Name attribute. Is there any way to implement this kind of animation in a Resource Dictionary Thanks Bruno Silva Hi Lee, Sorry, but that won't solve my problem because in this case what I'm trying to do is a application background with some rays of light doing some path animations, but I want to have it completely in the resource dictionary and only call it to the window with a ContentPresenter. At this stage my background ...Show All
Silverlight (formerly WPF/E) Does media control support captions?
Hi, I wish to know if the MediaElement control support or it will support captions (subtitles) like the Windows Media ActiveX control. Thanks, Gabriel Do you have any info if subtitling will be supported on the release build Is it possible to get the subtitles from the media player object, just as you would if you embedded the ActiveX-object in a HTML-page Do maybe also know if the subtitles are displayed on a media extender (XBox360) /Olof ...Show All
Visual Studio Install Error...
Error message during installation is: Please insert the disk: Microsoft Visual Studio 2005 Professional Edition - ENU Disk 1 I'm not sure what this means. The error popped up while using the first disk and now the error indicates need of ENU Disk 1. Any idea what this means toxicorange wrote: Copy directory VS2005Pro to your c: drive. Move all the files from the DISK2 folder into the DISK1 folder overwriting any matches. Run Setup.exe in the Disk1 folder. This worked well for me, with one additional step - to get the "automatic" product key, I copied the DISK1/Setup/Setup.SDB back over the one that came from from DISK2. ...Show All
Windows Forms How to enable "Auto Repair" for com add-in
Hello There I have created a setup project for Microsoft Office 2003 using VS 2005 tools for office runtime. All is fine with this except Auto Repair functionality is not working. Application is using one XML file. I want that if that XML file is deleted then setup will again install that file automatically. I have added that file into setup project also. I am using VS 2005 Setup project for creating setup. Thanks Vipul The repair should kick in if (and only if) you are using a Windows Installer shortcut. If you create the shortcut in the File System Editor of a setup project, then that will create the special Windows Installer shortcut. ...Show All
Software Development for Windows Vista Auditing / non-auditing IP ?
Hi all, I'm looking for some information about how to setup a CardSpace demonstration where the security token is not encrypted by the IP with the public key of the RP. I've read about auditing / non-auditing IP, which do or do not encrypt the security token for the RP, but I was wondering, is it only up to the IP to encrypt or not the token I mean, does the RP has a way to say "hey, don't encrypt the security token when you send it to me" For example, with some kind of tag on the web page in the <object> tag (like "requiredClaims") or in some XML config file Thanks, for a browser based scenario, if the .crd file for the managed card has the <RequiresAppliesTo> element set ...Show All
Visual Studio Search for comment in Visual SourceSafe 2006
Hi, I am actually new to VSS Tool. I am ussing VSS 2006 version and I need option (in VSS Explorer) where I can search for comment that entered before, for example when a file or proejct checked in. And according to this comment I would like to have a list of all files or projects that reference to this comment. I would be very gratefull if somebody has any idea how this could be possible Is there already such option in VSS Explorer Or do you know any tool like VSS that sopports this option regards Sheila Hi, thanks for suggestion. I've already tried this tool, ist helps a little. Actually I found out that Surround SCM Tool supports this option perfectly. br Sheila ...Show All
Visual C++ Unrelated! error LNK2019
Hi everyone I've started new project (a binary search tree) I've created these files TreeNode.h (containing node header file) Tree.h (containing tree header file with #include "treenode.h") Tree.cpp (containing tree's definition, with #include "tree.h") main.cpp (containing the main's body with #include "tree.h") when I write the main body inside the main.cpp file, I get the linkage error, but when I cut the main and paste it into the tree.cpp file everything's ok! I've got this error a few times for other projects like this! Please help me on this! Thanks in Advance hi, Alireza re: Unrelated! error LNK2019 your have this Link error because there is something different betwee ...Show All
.NET Development What Privilege Do I Need for Low-Priv Server to Listen on Port?
I am trying to follow Keith Brown's recommendations in his book "The .NET Devloper's Guide to Security". I have created a server app using HttpListener. The server app runs fine when logged in as Administrator, but when I created a user account and assigned to the Users Group I get an "Access Denied" on the listener.Start() method. I am not sure how to determine what level of security I need to perform this operation. Thanks M.D.A I'm looking to try this as well...implement an HTTP listener class, but grant the proper permissions through code so our end-user doesn't have to run the httpcfg utility. Thanks! Jonas ...Show All
Visual Basic Printing directly
I have in the past created a way to print by creating a file and using writeline methods create the content and then in the end send the file location to a print method that would print the file... but now, I want to print directly to the printer but after I create/format the output. However I am pretty sure the program will run over a network with not enough privileges to create a file, is there a workaround to creating the output and then sending it to the printer thanks, johnp Thanks Tall Dude, I did the search you said to do and found this. This is all I need so now all I have to add additional lines to the drawstring method with adjustments to the x, y values so that I can kick out a whole page of specified t ...Show All
.NET Development Permissions problem running from IIS
Web application uses old style ASP pages at the front, and a vb.net 2005 DLL at the backend. The IIS web is setup with Integrated authentication, and Anonymous is turned off. One option in the app involves running through the shell command a .NET EXE. That .NET EXE attempts to do some WMI stuff but it doesn't have the permissions to do that. The Shell command is inside the vb.net 2005 DLL. I log into the browser as Administrator, and the winapi username shows up correctly as administrator in debug sessions. So why doesn't my shelled application have all the permissions that administrator has ------------------------------ more info.. ASP Page > x = createobject("mydll.myclass") c = x.shellthatEXE () In My ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GameServices
Hi, could someone please explain simply how to turn a GameComponent that I've written into a GameService that can be accessed by any GameComponent. i.e. What class needs to implement IMyGameService What should it expose How do I go about registering my service with the Game. A link to a thread/article or a new explanation that explains this would be great. I've seen a few half-explanations around, but nothing full. Still, a concise but thorough summary would be the best. Thanks a lot... Ok, it's a way of doing things, but I was modeling my service after the IGraphicsDeviceService that is shipped with XNA, because I agree with the principle that adding a layer of abstraction to certain services is beneficial ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin Thank you for sharing the solution to this msvcr80.dll problem. I had the exact same problem as everyone else and when I followed your instructions, my Norton Win Doctor found no more probems, and my machine is back to normal. You have really helped some people with your posting, including me! Sincerely, John Allen ...Show All
