Neal D. Gupta's Q&A profile
.NET Development Persisting events in a SingleCall Remoting server
Hi All How to persist client’s event subscription to server in a common class. Basically I need to notify the client from server. In order to do this I tired by having a event in a common class where client and server can access and the client will subscribe it to that event and in-turn it’ll subscribe it to server, when I invoke a server method call from client the particular event will raise and it leads to call the common class’s event and in turn will raise the client’s metho ...Show All
SQL Server jdbc and java 1.5?
I'm using the SQL Server 2005 jdbc connector beta, sqljdbc_1.0.419.102_enu.tar.gz, because I read somewhere that it's necessary if you're using java 1.5. Is that true If I can use the SQL Server 200 jdbc connector with java 1.5, where can I download it The "problem" I'm having with the beta driver is that the documentation is rather sketchy. I'm using the connection pool and I'm trying to figure out how to set the parameters so that my application doesn't die when the database becomes unreachable or goes down temporarily. Thanks We have not revised the SQL Server 2000 JDBC driver specifical ...Show All
Visual Studio Express Editions Syntax coloring for user keywords/types
In previous versions of VS one could designate user keywords by creating using usertype.dat in the IDE dir and change their color using the 'Fonts and Colors' settings. This still works in VS2005 however I noticed that it has an additional color entry: User Types. How does one define user types Nick I thought it should mean that but I'm using C++. Any plans on extending that functionality to C++ ...Show All
Visual Studio Express Editions Build questions
Hi, i wrote an app that I want to publish. I'm selecting build from the menu, I can adjust couple of thing from the publish wizard like the publish directory and the other standart things. If I run the published app with setup the setup process will start. But standart the apps that you publish will be installed in C:\windows\prefetch or something like that. I Want to be able to publish for example in C:\Program Files with a .exe file. My published app does not have a .exe extension. Why is my app in prefetch directory Where can I select a installation directory Can anyone tell me more about this issue, thank you guys. ...Show All
Windows Forms Using Windows Control in IE
Hi I use Visual Studio.Net 2003 to design a windows control, ctlBookList on Windows Server 2003. In this control, I use a DataGrid, dgBookList. In the control's construtor, I use SqlDataAdapter to read data from a database, LibraryDemo: public ctlBookList() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); & ...Show All
Visual Studio Team System Reporting Services Error in Project Portal in TFS RC
After creating a new project in TFS RC and doing a Show Project Portal..., I get the error in the IE web page: Reporting Services Error This report requires a default or user-defined value for the report parameter 'IterationParam'. To run or subscribe to this report, you must provide a parameter value. (rsReportParameterValueNotSet) Get Online Help This is in the Remaining Work section of the report. I can successfully run the Remaining Work report in TFS explorer. Anyone know what this is about The problem is probably with the URL used from the portal to access the report. ...Show All
Visual C# Process & WaitForExit & OutputDataReceived
. Rob, This is from a larger project so I've tried to cut and paste the relevant bits. This took ages of trial and error to get working. Hope you can make sense of it. Cheers Steve The process is started from a class that also has a Windows form (to show progress). The sendclip method starts the commandline process which returns as soon as the process is started - as then events take over. The show dialog displays the form and kind of forces a 'wait'. I use events to close the form when the process finishes and things carry on this.sendclip(clip, clip.Partialcommandline, Qsyst ...Show All
Software Development for Windows Vista Why does delay cause a new thread
I have been looking at the SDK sample 'WorkflowThreading' and I notice that whenever I put 'Single' 'Delay' into the command line parameters, a new thread gets created. With 'Single' "WaitForMessage', its just one single thread like you would expect. Why does the Delay shape cause a new thread to be created I see where the timer is started and all that but just don't understand the delay/threading thing. Thanks. Matt, Looking back at the code again, that actually make sense. I guess what confuses me is that WaitForMessage is used to represent a HandleExternalEvent, which waits for an event, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. to David Weller and tom miller
Hello . Please fix before xmas Microsoft.DirectX.DirectInput; Version beta 2 december 2005 no mouse or keyboard support SystemGuid.Keyboard or SystemGuid.Mouse SystemGuid is gone. We have to release a sdk for game engine cos money problem it is hard to wait 4 month with no income in the firm and 4 peoble on the payrool we have been programing for allmost 1 year now prepering for net framework 2.0 of directx and mobile directx that is a lot money we have blow off for wat. we cant not even release a sdk becource no mouse or keyboard support we are a microsoft partner in EMpowered program and has sign up fra beta teste ...Show All
Visual C++ help with getline() bug
Ok im using visual c++ 6.0 and the getline() has a bug in it : The Standard C++ Library template getline function reads an extra character after encountering the delimiter...... The resolution given at http://support.microsoft.com/default.aspx scid=kb;EN-US;q240015 calls for me to: Modify the getline member function, which can be found in the following system header file string, as follows: else if (_Tr::eq((_E)_C, _D)) {_Chg = true; & ...Show All
Windows Forms Application.exe.config file disappears on compile
I have added my application.exe.config file to the bin/debug folder for the application in which I am building. The problem is everytime I compile it deletes from the folder. I am runnig VS 2003. Instead of adding to your bin/debug folder, add it to the root of your project and name it 'App.Config'. Visual Studio will automatically rename and deploy it to the bin/debug when you compile. ...Show All
Visual C++ SITELOCK for ActiveX Control - HELP Please
Hey All, The Main Idea of me doing this is.. I want my ActiveX Control to be domain specific. I found an article for this in the microsoft MSDN site (go to the msdn home page and search for " sitelock ".. the second link which says sitelock 1.04 for activeX control is what I am talking about) There they have source code to do this (sitelock.h). So I created an ActiveX Control and added an ATL control obj to it. There are some simple procedures like implementing the class from Ibojectsafty and so on..to be followed to link the sitelock with out contol. (The procedures are given as comments in sitelock.h) There is a function InApprovedDoma ...Show All
Visual Studio SolutionDir macro in post build event
Hi, I have a project with a post build event that looks like: copy $(SolutionDir)$(ProjectName)\$(OutDir)*.dll $(SolutionDir)DestFolder My MSBuild file lookes like: <Project DefaultTargets="Build" xmlns=http://schemas.microsoft.com/developer/msbuild/2003> <PropertyGroup> <SolutionFile>MSBuildIssue.sln</SolutionFile> </PropertyGroup> <Target Name="Build"> <!-- Clean, then rebuild entire solution --> ...Show All
Visual Studio Express Editions downloading a webpage...
Hello, How do I download a small file from the web like if I need to download www.google.com then how would I do it and I think it can be in the temp directory... but it would be good if you can tell me both in temp and in desktop incase temp has some problems... Thank You! Keehun Nam http://www.vbdotnetheaven.com/Code/Jul2003/2107.asp This code snippet shows how. You can use Environment.SpecialFolder ( from memory ) to get the desktop location, but once you have the data, you can write it where-ever you like. ...Show All
.NET Development New Controls
Does Microsoft have plans for adding an IP Edit box control into VS 2005 Many developers have been looking for one with the same functionality used to change your IP address in the Windows Network Settings for many years. It would be helpful for one to be included so we could drag and drop onto our forms. -Jason David, You said that maskedTextBox allows you to move to the next component, could you clarify upon this. I am setting a custom mask as 99999.99 , for a decimal number. Its possible that a user wants to enter only 356.50, so he has two move till the decimal by using space which is of ...Show All
