GavH's Q&A profile
Software Development for Windows Vista Cannot link to ChangeWindowMessageFilter(..)
I am trying to implement the ChangeWindowMessageFilter function. I have presumed it is found in the new Vista SDK release 3.0. At this point I cannot link to it --I have even moved User32.Lib from the ...v6.0\lib folder to my project folder. The documentation says it is in that lib file. Any ideas thanks so much, george It's definitely in the Vista SDK user32.lib file (I opened it up in binary to make sure). Double check the paths you are using for in tools-options-projects and solutions-directories (or if using command line make sure your include path has Vista SDK lib folders first) ...Show All
.NET Development How to dispose TcpListener's holding port?
I am developing a chat programme using TcpListener and TcpClient.. In the server side form, I have two buttons one is "Start Listening",the other is "Stop Listening".. Now the problem is : when I re-enter the "Start Listening" button after stop listening ,i will get this error : the same port can only be used once, but i 've stop the Tcplistener after I enter the "Stop Listening" button, i don't know why who can help me thanks Two other point should be raised: 1. Are you closing any accepted connections too If the TcpListener has returned N connections via AcceptSocket/AcceptTcpClient, then all the N connections must be closed too. 2. TCP (the protocol) mand ...Show All
Software Development for Windows Vista XAML Based WF Linked to Assembly
I am trying to set up an XAML based workflow where all of the activities are either common activites or defined in a custom assembly. I am loading the xoml file at runtime using an XMLReader to load the xoml file, then calling CreateWorkflow with the XMLReader. After working with this a bit I was finally able to get the workflow to load correctly. The workflow starts with a While Activity. The While activity calls a member of my custom SequentialWorkflowActivity class named 'ContinueLooping'. 'ContinueLooping' sets args.Result = true; This should result in a continuous loop, however, the workflow always completes right away. If I put a message box in the 'ContinueLooping', I never see the message box. If I change the name of the 'ContinueL ...Show All
.NET Development how to edit a satellite assembly
hi, i have created a satellite assembly for a culture "de-DE". I ran the application with the culture setting of "de-DE" inside the application. My application starts displaying all the text in german language. Here i like to modify some german text without exiting from the current running application.Actually i tried to replace the satellite assembly ,in the folder /de-DE, with the modified satellite assembly but it is showing some windows error message saying "cannot copy : it is being used by another person or program. close any programs that might be using the file and try again" . My intension is to replace the old satellite assembly by the new one while the application is running. Is it possible to do th ...Show All
Visual Studio Express Editions Form.TomMost Property didn't work correctly on visual Basic 2005
Hi every body in visual basic 2005 ,the form.TopMost Property didn't work correctly in visula basic 2005. I set TopMost property to ture,but my form lost focus when user clicks on another form. I Need this information to complete my job. I have a few items which are always on top (ObjectDock, for example), which sometimes disappear to the background. Usually I have to 'reset' it to be back on top. It doesn't use the .NET framework, so I guess the issue is that always on top is unreliable. I believe that there are probably some applications which use the always on top mechanism to bring a form to the foreground, which messes up forms which truly need to be always on top. I guess you can simply ...Show All
SQL Server Query Cube using SQL Select instead of MDX Select
In Analysis Services 2000, you can query cube using regular SQL Select command. http://msdn.microsoft.com/library/default.asp url=/library/en-us/olapdmpr/prsql_70e0.asp Does Analysis Services 2005 support this feature Right now, I am using OpenQuery with MDX query to return Cube data into a SQL table: select * FROM OPENQUERY (Olap_Linked_Server , ' select [Measures].[Sales] on columns, [Accounts].[Hierarchy].Members on rows from SalesCube' ) But the result SQL table has long column names. How can I rename them Thanks, Bo Do your first insert into a temp table(TSQL) and rename the columns when you do the next insert to a second table, by using standard 'as', for renaming. ...Show All
.NET Development detailsView and/or tableAdapter data manipulation
Hi! I have the following problem: Theres a detailsView that I use to let users enter data. This data then gets published on a website (think simple CMS). But the users that enter data are not tech-savvy, therefore I need to replace CR and LF with <br />. This isn't difficult as is, to perform this all I need to do is "string.Replace("\r\n", "<br />")", but the problem lies in the data access. the detailsView is fed from a tableAdapter that gets a whole table from a DB. This code is not written by me, so I'm not into the technical details. All I am looking for is the right moment and way to let my replace do its work. I tried to access the data within the detailsView (programmatically) usin ...Show All
Visual Studio Express Editions problem with comboBox1 and the Enter key
Hello. I am on my second project, a web browser, and I have aproblem with ComboBox1 and the enter key. Here's the code: Private Sub ComboBox1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ComboBox1.KeyDown If e.KeyCode = Keys.Enter Then WebBrowser1.Navigate(ComboBox1.Text) End If End Sub It works fine, when I press the Enter key WebBrowser1 navigates to the url in the i type in the comboBox. The problem is (anoying) every time I press the enter key the Windows Error Event Sound sounds. any ideas Your help will be very much apreciated. Thank you. Thanx Andreas Johnsson. I did that: Private Sub Com ...Show All
Windows Live Developer Forums Error Message while in Video Call
Ok, I will try this since I have yet to get an email back from MSN windows live messenger. For several months I have been getting this error message while in a video call: "Windows Live Messenger has encountered a problem and needs to close. We are sorry for the inconvenience." then in that same box it says A "if you are in the middle of something, the information you were working on might be lost. PLEASE TELL MICROSOFT ABOUT THIS PROBLEM! I get the problem and not my sister who is who I am on video call with. I freeze with that message and she can still hear me and see me, but I am completely frozen on my screen! I did everything I was told to do, but it still is happening. I have sinced emailed them with the answers ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Depth of GameComponents?
Hey, I've been trying out some features of XNA and I noticed that one really necessary feature is missing... there is no way to set the order in which game components are drawn in the existing framework. I would really appreciate a Depth or ZOrder property of the GameComponent class and a Sort() method for GameComponentCollection. Maybe there is another way to do this, but I would find it a lot easier than using the Insert() method, since developers may want to change the order after adding the component. This is probably a pretty crude explanation as I haven't given that much thought to it, but it still seems that some sort of solution to this would be very useful. Please tell me what you think or plan to do - thanks. ...Show All
SQL Server Accessing MSDB shows "client unable to establish connection... Encryption not supported" error
Hi, I currently have SQL2005 Std, using 2 separate domain accounts for both SQL server and SQL agent. When accessing the MSDB stored packages folder from mgmt studio, I get the following error: Client unable to establish connection. Encryption not supported on SQL server. I did google for this error, but have tried all suggestions, including updating the MsDtsSvr.ini.xml file with the servername. I am using a default instance. Also, I am only able to access the MSDB folder if I set the SQL service account to the local admin account. I have also set the SQL service account to be part of the local admins group, but without any luck. TIA. After trial and error, somehow this problem was resol ...Show All
Windows Forms Displaying Good Quality Graphics in a large Simulation
Hi Guys and Gals, My first forum post here so lets hope I get a good solution :D. Im a 4th year student at SLIIT (Sri Lanka Institute of Information Technology) and Im doing my final year project right now. Our group decided to build a traffic flow simulator that simulates real life scenarios (100 vehicles heading in one direction, the roads getting jammed, etc. etc) using AI agents (cars mostly). Now the question I want to ask is, I will have to show all these entities moving around, and since we plan to model a large area there will be lots of objects moving around and interacting with each other. Im pretty new to C# (I used mainly Java) and I doubt the best way to show all this graphics is to just dump them on the main form . So whats t ...Show All
SQL Server dynamic diagrams and data trees
Hi, there is a tool that I would like you to know. With it you can build trees with a record and its related records. It's called Nautilus, its open souce and I hope you'll like it. Nautilus (sqlserver) v1.0.4 Navigate your SQLServer 2000 database http://sourceforge.net/projects/nautilus/ WHAT ---- Nautilus is a tool for developers, advanced users and auditors. The main objetive is to navigate information and structure in a SQLServer database. User can search tables and records with no SQL typing required. You can also browse related data following the foreign key links or search any value on any table. Static structure can also be navigated with it's dinamic diagram around a selected table. ...Show All
Smart Device Development PreferredRowHeight of DataGrid for NETCF
How do you increase the hight of a row in a datagrid since PreferredRowHeight doesn't exist in NETCF (system.windows.forms.datagrid) You don't - there's no good way for you to change row height. There’s an unsupported unofficial way to do it through reflections, please run a search to find it. ...Show All
Visual Basic Visual basic and blank pages
Is there a code in Visual Basic that allows for automatic detection and deletion of blank pages in a MSWord document Karen VM, Thank you for your question with this post. However, this forum doesn't support VB6 and VBA question. I suggest you to post your question to the following forum in order to get the satisfied answer :-) Visual Basic Interop and Upgrade Visual Basic 6 Newgroups Visual Basic 6.0 on MSDN Library MSDN Visual Basic 6.0 Resource Center VB City VB-Helper VB Forums CodeGuru Code Project Planet Source Code ...Show All
