knji's Q&A profile
.NET Development C++ Web Service
Hi Folks, I'm writing a small web service in C++ (apparently a foolhardy endeavor). Basic operation looks OK. However, I'm having the darndest time getting FindWindow() to work. Possibly making matters worse, I'm using multibyte strings, not Unicode. #define CLASS_NAME "Game Player" ... f_hPlayerWnd = FindWindowA(CLASS_NAME, NULL); Everything compiles and runs, but FindWindow keeps returning 0, even passing NULL for lpWindowName. When I call FindWindow from within the app I'm looking for, it works fine, so I'm thinking it's not a typo in lpClassName. Any help appreciated. Chuck Bueche Craniac, Inc. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=303691&SiteID=1 http://www.codep ...Show All
Visual Studio Team System Context menu - GetLatest (should have Server and workspace)
I think the context menu should have GetLatest (Workspace) and GetLatest(Server). This will make it easier for people coming from VSS to understand that get latest (Workspace) will only get files relative to their workspace and the server will be obvious that it will force download. If you are concerned people will too easily overwrite their workspace versions make it an option to whether the server menu item is displayed or not (or put lower on menu). People used to GetLatest from VSS don't expect that they need to do GetSpecific version, Latest version, Force get in order to get the latest files. In terms of the Compare function, it brings up a dialog box asking for the version to compare to ...Show All
SQL Server Report Paramert problem
I am trying to put a parameter on my report to select a field from my query but keep getting this error. What am I doing wrong [rsInvalidReportParameterDependency] The report parameter ‘Program’ has a DefaultValue or a ValidValue that depends on the report parameter “Program”. Forward dependencies are not valid. Build complete -- 1 errors, 0 warnings mr4100. Parameters are evaluated and executed before your data is return from the dataset, so I would suggest on your parameter "default values" - do a returnset of all avaliable problems. Also, you should be able to pass this parameter value into your stored procedure to filter only for the "programs" selected. Hint, go to data tab, select "..." ...Show All
SQL Server Date parameter format incorrectly interpreted
Hi, I am using SQL Server 2005 Reporting Services. I have a report with a Startdate and Enddate parameters setup through the report parameters box. The datatype is datetime, so I have the date pickers. My machine regional settings are set to Ireland for datetime format dd/mm/yyyy. The database field being queried is storing the date as dd/mm/yyyy. My problem is when I type in the values Startdate = 01 aug 2005 and Enddate = 31 aug 2005. The report runs correctly, but it refreshes the parameter boxes and if I try to run it again I get the following message "An error occured during local report processing. The value provided for the report parameter "Enddate" is not valid for its type" If I choose the same dates from the datepickers I get t ...Show All
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
Visual C# public get, protected set
How can I declare a property with a public get and a protected set accessor Since what you really get from the base class is one virtual method called get_MyProp there will not be any setter to override which you try to do. Unfortunatly the compiler only makes that distinction for overrides, if you try to just add the setter and ignore the getter, it hides the original property get method, which is really silly :) ...Show All
Visual Studio Tools for Office Excel cut and paste problem
I have a problem with Excel Cut and Paste in my VSTO application. I have implemented a solution for a financial system where I have model component modelling a complex financial system, holding all the financial values, relationships etc., and an Excel interface to the this model displaying the figures in tabular form. I have layer between the Excel interface and my Model connecting the two, which is implemented using VSTO 2005, i.e. Excel 2003 Interface ------ VSTO 2005 Layer ------ Financial System Model, C#, .Net In the connecting VSTO layer I have registered an event handler with the Microsoft.Office.Interop.Excel.Worksheet.Change event so that I can propagate the updates to my model, which causes the financial ...Show All
SQL Server Can not connect to server Error ????
Hi all, I just installed the reporting services with named instance DEV. It is not showing any error message in reporting services configuration tool but when I try to login through SQL server management studio as <myserver name>/DEV windows authentication it always shows this error message TITLE: Connect to Server ------------------------------ Cannot connect to <myservername>\DEV. ------------------------------ ADDITIONAL INFORMATION: Client found response content type of 'text/html', but expected 'text/xml'. The request failed with the error message: -- <html><head><title>Server Application Error</title></head> <body> <h1>Server Application Error</h1> ...Show All
Windows Forms Control visiblilty of main form component after the close of pop-up win form
Dear All, My problem here is that first I have a combo box. Upon selecting a value of the combo box its visible set to false. Then at the same location the visible value of a text box is set to visible=true. The problem is that if the value which is keyed in the texbox is below a certain range then a pop dialog or winform will appear for confirmation of acceptance of the lower value. Upon making the confirmation via the pop-up win form the control gets back to the main form. Now I want the combo box to be visible=true and textbox visible=false when the control is pass back from the pop up winform to the main winform. Thanks. Hi, what you should be doing is this: Form1 f = new Form1(); i ...Show All
Game Technologies: DirectX, XNA, XACT, etc. vc++ 2005 express want to build dxsdk sample usp10.h missing
Hi, its me another time So I installed vc++ 2005 express and did set up the include/lib file directories for the sdk and tried to build a sample of the newest dxsdk (december 2005). But now I get the message Compiling... dxstdafx.cpp c:\programmieren\dxsamples\configsystem\common\dxutgui.h(12) : fatal error C1083: Cannot open include file: 'usp10.h': No such file or directory Build log was saved at "file://c:\programmieren\dxsamples\ConfigSystem\Debug\BuildLog.htm" ConfigSystem - 1 error(s), 0 warning(s) I did not even try to change the settings because there simply is no usp10.h file in the sdk directory. Nor is it in the Visual Studio 8 directory or the directory where I installed ...Show All
Windows Forms Add a bitmap to a richtextbox.
Hi, I am attempting to print a results page to a printer. I have set up a .RTF file with a header and can load it into a richtextbox and add additional text to the file. I can save the new contents to a .RTF file, and using a wonderful utility I found embedded within the Help system, I can print the richtextbox to a printer. What I can't do, is add an image object to the richtextbox before I print it. I want to do this so that I can add a graph to the results page. Does anyone out there know if this is possible and if so, how to do it I am still struggling to understand C#, so any code would be more than welcome!! Many thanks John Woodiwiss Hi, Sorry for the delay in ...Show All
Visual Studio Express Editions Help with argumentOutOfRangeException
Hi Can you check my code for errors, because when I run this code I get this error. Public Class Encrypt Private send As String = "" Private chatclient As Chatclient Private Sub btnSend_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click Dim var As String = txtTekst.Text MsgBox(var) If txtNick.Text = "" Then MsgBox( "Geen gebruiker ingevoerd" ) Exit Sub Else While var IsNot "" If var.StartsWith( "a" ) Then send += "01" ElseIf var.StartsWith( "b" ) Then send += "02" ElseIf var.StartsWith( "c" ) Then send += "03" ElseIf var.StartsWith( "d" ) Then send += "04" ElseIf ...Show All
.NET Development Limiting the Virtual Servers which start on Debug
Hello, I have a solution which contains a number of Web Services as well as a Web Application. When I want to debug just the web application Visual Studio starts up a new Virtual Server Process for every web service in my solution (around 15). Is there some setting somewhere which will allow me to only start up a virtual server for the one service/application that I intend to debug at that moment Thanks for any answers, Matt I don't see that option when right clicking on a web service. Is it something that I have to somehow add to my rightclick menu Matt ...Show All
Visual C# Problem using a app.config dont work
hello, I am Using the code described in the following link http://msdn2.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx private void button2_Click( object sender, EventArgs e) { ConnectionStringSettingsCollection connections = ConfigurationManager.ConnectionStrings; // Loop to get the collection elements. IEnumerator conEnum = connections.GetEnumerator(); int i = 0; while (conEnum.MoveNext()) { string name = connections .Name; string connectionString = connections[name].ConnectionString; string provider = connections[name].ProviderName; listBox1.Items.Add(name); listBox1.Items.Add(connectionString); listBox1.Items.Add(provider); ...Show All
.NET Development Tracking Incoming Call
Hi, I have a hp iPDA using windows mobile 5.0. I would like to write a program than catches the incoming call. IT will be able to displpay on a text file and every incoming call a pop-up box will appear on the pda. I dun know where to start so in need of help asap. Thanks worried ...Show All
