Mark_Davies's Q&A profile
Visual Basic MCE2005 Refreshrate
By developing a MCE-Plug-In we have following problem with MCE. When switching from desktop to MCE fullscreen the display refreshrate switched to 60 Hz. This is OK for NTSC-TV but European PAL-TV needs 50 Hz refreshrate. How can we stop the refreshrate-change produced by MCE. ...Show All
.NET Development Cannot find a Datatable
It s C# .NET project on VS2005. I have a DataSet. At one point it is filled with Tables, 15 in all. A few moments later a TabPage MAY be generated and a graphics control object is set up on that page. The DataSource for the graph is one of the DataTable(s) in the DataSet. The graphic comes out OK. The trouble is , the situation is dynamic and I have a stream of records coming from a server which a portion of my app sorts out and distributes between the tables. At the moment the graph was created the DataTable in question may have let say 10 rows. I see all the values on the graph. A few seconds later a new record may arrive that logically belongs to this table and my code begins to look for the DataTable with this index and I get Mes ...Show All
Visual Basic What's the difference
Ok folks, so I've got a program that runs code that has a FOTRAN dll that (thank god) I finally have working, for the most part. At least it does when I pass it the path/name of a file that I've created using notepad. Buuuut, that's not gonna cut it when it comes down to it. What I've done is created a GUI that creates an input file for FORTRAN and all it does is write a line of text for each input in FORTRAN. But when this VB written file,written using streamwriter or FileSystem.AppendText (I wondered if there might be a problem with the streamwriter making hidden characters but no), is passed to my FORTRAN dll and the methods native to the FORTRAN code attempt to consume the data, I run into an interesting problem ...Show All
Gadgets Digital Signature
Hi, Sorry if this is a total newbie question. But I am, and I didn't find anything about it in the forum yet. How can we add digital signature to a Sidebar Gadget TIA, Eric Package the Gadget into a CAB file, then sign the CAB. To create a CAB with a directory structure, use (as per this thread ): cabarc -r -p n <GadgetName>.gadget * See this article on how to sign the cab. If Tom's reading this, perhaps he can post all the steps he's used to sign his Gadget's as I'm sure there's an easier way. ...Show All
Visual C++ How do I draw to a DCcompat Bitmap then BitBlt to screen to reduce screen flash while scrolling?
Hi guys, I'm a grad student in cognitive psych with a decent background in C++. I've post here before and you guys were very helpful, which I greatly appreciate. Anyway, I've got another issue. I'm designing a program for a study that involves using a CView class and drawing several things using the dc in the OnDraw function. What I draw usually goes greater than the screen height and I've implemeted a vertical scroll bar to scroll up and down to see it all. The problem is that when I scroll up and down there is alot of screen flash due to redrawing as the scroll bar moves. I need it to be smooth or otherwise it messes with the perception rules for the study. What ...Show All
Visual Basic How add code to the close button (title bar)
I'd like to display a msgbox when the user clicks the close button (X) at the title bar. An option to the user is to save data or not. I tried to use the event .disposed, but the frame was already closed before the msgbox is shown. This will work, but it would be more 'fancy' if the form was still visible. Is there any form event for the close button Thanks I found that I could add an event to the form: Private Sub frmDBView_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing MsgBox(...) End Sub Why is this event not shown in the IDE (Where you find the other events .. click, onchange, etc...) ...Show All
Visual C++ C++/CLI InteliSense from XML comments breaks with generics
When creating C++/CLI classes to use in C# applications, the InteliSense information created from XML comments fails to appear for a method if any of the parameters to said method use generics. Example: Say I have the following C++/CLI class: /// <summary> /// Stuff about Class1 /// </summary> public ref class Class1 { public : /// <summary> /// Does value stuff in the first class /// </summary> /// <param name="a"> The lone value parameter </param> static void DoStuff1( int a) { return ;} /// <summary> /// Does reference stuff in the first class /// </summary> /// <param name="a"> The lone reference parameter </param> stat ...Show All
Windows Forms ClickOnce + Native x86 Executables
I am using a program called Xenocode PostBuild to generate an obfuscated assembly of my C# program. Xenocode also allows me to generate a native x86 executable (with the .Net 2.0 Framework embedded) meaning that the .Net Framework does not need to be installed on the target machine. This greatly simplifies and eases the installation of my application. I was trying to use ClickOnce technology in conjunction with the native x86 executable and ran into a problem when publishing my application with VS. I integrated the Xenocode obfuscation/native x86 executable generation into the VS build process by editing .csproj file manually (modifing the BeforeBuild and AfterCompile targets). This seems to work fine when I was only obfuscating, but ...Show All
Visual Studio integrated help/search nonsense
What is up with the search inside of Visual Studio I was starting a new web site, went to New->Web Site and from the dialog, I hit the "search online templates..." I was shown a bunch of empty fields (I would've thought it knew what to search for at that point, y'know, since I said I clicked to search online templates for a web site) So, in the search field, I put in "templates," and in the three options in the box below that I check off: Language: C# Technology: Web Development Content Type: Templates and Starter Kits All I got back from that search was a bunch of DirectX C++ X file templates! NO RESULTS pertaining to the search parameters I entered! I eventually got what I needed.... ...Show All
Visual Studio 2008 (Pre-release) Using Network Load Balancing NLB with WCF - Failover to another cluster results in CommunicationException
Hello, I'm trying to create a simple sample WCF service that is hosted in an NLB cluster on IIS. I have created the cluster successfully, and have a simple WCF client that prints out the name of the machine it is connected to when you click a button. If I goto the cluster node the client is connected to, and disable its LAN connection, then I can see the fail-over occuring: If I browse to a simple "Hello World" html file containing the machine name, I can see that the IE browser is successfully redirected to the other node. Unfortunately for my WCF client when I click the button to print the machine name, instead of getting the machine name of the 2nd node, I get a CommunicationException: The underlying connection was closed: A ...Show All
Visual Studio 2008 (Pre-release) Two questions about IQueryable<T> - Expression{get;} and CS0310
Dear group - I am prototyping a Linq provider for Mysql and have some questions. 1) The first point of entry on my IQueryable implementation is "Expression {get; }". I saw in Hartmut Maennel 's Linq provider for RDF that he returns a ConstExpression. I copied that, and it works. But what is the meaning of that Is that documented anywhere 2). My second question is more of a basic question about generics. I have my generic class, MySqlProvider<T>, and it calls into other generic classes. I get error CS0310 because the outer class can be anything, and one of the inner generic classes calls 'new()'. Code snippet below. The question - how can I cast for a 'newable' class to prevent CS0310 Thanks, George public class MysqlLinqP ...Show All
Windows Live Developer Forums suggerimento
mi date un consiglio x risolvere un problema con la msn toolbar mi dice che ho una vecchia versione che nn puo essere rimossa e quindi nn mi installa neNCHe la nuova. grazie ...Show All
.NET Development The best way of storaging images on server
Hi i am beginner in net developing, and since what have a common question. Supposed what my web page have an set of images, which will be displayed in browser for user. Also intended what to this set will be supplied other images enough frequently. And the question is in which manner i should store this images on server part - in database, or simplesmente in separated files together with pathes to those files in database. What is the best solution. And other question if i yet sorage image data in database, what the best practice for one retriving from database and showing one for user (best for me supposed more convenient and rapid for developing). I mean is existed an asp control, which admit to show image from database directly (w ...Show All
Visual Studio Tools for Office Word Marshal.ReleaseComObject
Can anyone tell me why should I use System.Runtime.InteropServices.Marshal.ReleaseComObject(WordObject) I My example was for dealing with Word objects in general, not the application object itself. In your circumstance, you are dealing with the actual Word Application object, you might want to refer to the following MSDN article on the subject: Quiting Office Application ...Show All
.NET Development SoapExtensionAttribute at the client proxy side
Hi, I try to create a SoapExtensionAttribute, but when I try to add a web reference the SoapExtensionAttribute don't be inserted in a client proxy side, what I have to do to add the SoapExtensionAttribute in the client proxy side when I add the web refenrece. ps.: I can't put the soapExtensionTypes in the app.config because in the current project has another web services from third-parties, and I implement a SFDE (YML Class) but don't work. Any ideia Att. Walter Sorry by english I try a new way, aparentyly works fine. 1) I put the soapimporter, soapreflector and soap SFDE on machine.config 2) put the dll in the gac 3) Restart machine .... voala works, now I try to do whi ...Show All
