rravech's Q&A profile
Architecture Windows service not running from installer
I am attempting to create a Windows Service by following the instructions at http://msdn.microsoft.com/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp. I can build the service and run it from the debugger, but if I run it from the installer it does nothing. That is, the installer runs and reports it was installed sucessfully, but no messages are ever posted to the event log from my service. I even tried putting System.Diagnostics.Debugger.Break() in my service and this never gets called. After installing my service, it appears in the Add or Remove Programs control panel, but does not appear in the list of services from Programs > Administrative Tools > Services. Also, I can install the service ...Show All
SQL Server Odd FMTONLY statements
Hi, I recently started using ADO for connecting to a remote SQL Server from Delphi. Prior to this I used BDE (Borland Database Engine). I noticed that all SQL communication seemed slow – only half the speed of using BDE! I ran a trace using the Profiler (from MS SQL Server) and noticed that ADO generated roughly twice the amount of traffic compared to BDE. Every SQL statement (SELECT, INSERT and UPDATE) send from my application was preceded by the exact same statement encapsulated in ‘SET FMTONLY ON/OFF’. -Example Start- SET FMTONLY ON SELECT * FROM TabelVersion SET FMTONLY OFF SELECT * FROM TabelVersion -Example End- Why are these odd statements being passed to the server ...Show All
SQL Server Server Backup & Restore
Hi, Any help will be appreciated. What I’m doing wrong. I have the following code: Private Sub Button4_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click SaveFileDialog1.Title = "Database Backup" SaveFileDialog1.Filter = "Backup File (*.bak)|*.bak" SaveFileDialog1.FilterIndex = 1 If SaveFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim conn As New ServerConn ...Show All
Visual C++ I know that i can use LoadFromResource in CHtmlView to load resource in the web browser, but when I embedded a browser in the di
I know that i can use LoadFromResource in CHtmlView to load resource in the web browser, but when I embedded a browser in the dialog how can i get the .htm file in the resource I appreciate your help. Maybe you simply have to adjust your string using "\\" or "/" instead of "\" ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Im new to XNA
I bought the creative club membership off xbox 360 and downloaded everything on my pc. But Im having ahard time creating even the simple things. So I decided to keep my membership and keep renenwing it until I learn how to make a game and most importantly to play other games. Is there anyone out there making a First person shooter My goal is to make one battlefield 2 modern combat style with xbox graphics but I know I have to start very small before I can achieve that. This evening I'll be posting the second series of my XNA tuts online, where you can learn how to program a 3D flightsim, which is in fact a 1st person shooter (ok, 2nd person if you wish). Maybe you can start there. ...Show All
Windows Forms Maximum width of a panel
I find that the maximum value I can assign to the width property of a panel is 32,767 which implies that the parameter is a type short and not int . I have tried in both the designer and at runtime. Does anyone know how to make a larger panel This is probably to keep the framework compatible with Windows 98/ME, it cannot handle GDI coordinates and sizes larger than 16 bits. Why would you want to make a panel that large ...Show All
Visual Studio 2008 (Pre-release) PeerChannel Instant Messaging
I am considering developing a PeerChannel Instant Messaging system, however everything I have read suggests WCF P2P only supports Multicast messages. When using PeerChanel what is the best practise for this situation As such multiple users will be able to join the same chat session so the multicast messaging is quite suitable for this situation. However something as simple as determining a list of currently connected users when a connection to the PeerChannel is established is not as easy. Any suggestions Ravi Rao wrote: We will post a blog entry on hopcount next week, and will notify you once available. Is this blog entry available yet Thank you in advance. Regards, Luke ...Show All
Visual Studio How to Pass a Variable to an Expression in the ReportViewer
Hi everyone, I'm not sure if this is possible, but I want to set an expression for the Visibility tab of a table that I have in a local RDLC report to check the value of a variable. Basically, I have a boolean variable, PrintSysInfo that is set in the Public Module of my solution: Public PrintSysInfo As Boolean = False I refer to it in another form where it can be set to True or False. When my report runs, I want to have this particular table show up only if PrintSysInfo is True. I was hoping to be able to go into the Visibility tab of the table, set it to Expression and then put in something like: =iif(PrintSysInfo = True, False, True) But if I put this in there and then try to run my code, I get the following e ...Show All
Visual Studio Support for Setup/Deployment projects
Does MSBuild support building VS setup/deployment projects (VDProj files) We are trying to use MSBuild to build MSIs using vdproj files and can't get MSBuild to work; we get an error from MSBuild saying it is not supported. Is that the case If so, is there a way to workaround Thanks -Munjal No it does not. You have to use devenv.exe with /Deploy option to build them. You might also want to check-out the Wix toolset as an alternative to deployment projects. Here'a post discussing it. ...Show All
Visual Studio How to change MetaData for a Reference before build
Bacially, I want to search the references using a custom task for a specific reference and set that reference to SpecificVersion = False. I have tried this... < SimpleTask References = " @(Reference) " > < Output TaskParameter = " References " ItemName = " Reference " /> </ SimpleTask > where SimpleTask alters the metadata on the items passed in however it seems as though now I have a list of duplicate references Any Ideas Thanks, Jim Hi, I have a need to change this as well. Any news on how the change for <SpecificVersion>False</SpecificVersion> on the fly can be done Than ...Show All
Visual Studio Express Editions enter code in richtextbox then run (PLEASE HELP!!!)
i made a form with a richtextbox and a button im wanting to make it so that i can type a vb code in the richtextbox then run that cody by clicking the button... i need the simplest code there is please Thanks If you are talking about calling an already defined property or method then look into the "CallByName" function... http://msdn2.microsoft.com/en-us/library/chsc1tx6.aspx If you are talking about being able to run any VB code from the rtb...then it is not a simple process ...and it is not something that will be explained or taught in a thread! But you can start by looking into the reflection namespace and becomming familiar with the command line compiler! ...Show All
Windows Forms .net 2.0 visual style
Hi, I am using winforms .net 2.0 It seems that the visualStyle does not have any effect on the controls looks. for example a button looks as if you are using .net 1.0 Any thoughts please With VB.NET: Project + properties, Application tab, turn on Enable XP visual styles. With C#, ensure your Main() function in Program.cs looks like this: [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } ...Show All
Visual Studio Team System SharePoint Services Upgrade KB924881
Microsoft has an update for Windows Sharepoint services ( KB924881 ). This fix addresses issues regarding 2007 Daylight Savings Time . Can someone tell me if I can apply this fix to my Team Foundation Server without it affecting TFS in any way. Thanks in advance, Dave I updated my system with KB924881 and now I have an HTTP 500 error. I used the command line for the stsadm as described in KB841216. No luck. It will work using the private IP but produces the HTTP 500 error trying to access it from outside the office. I tried republishing the site in the ISA and even reverted back to the pre-update export of the firewall rules rules. System: SBS 2003 Premium, ISA 2004 (fully patched), SPS 2.0, CRM 3.0, EX 2003 Cheers ...Show All
Visual Studio Team System stored procedures with temp tables
Hello everyone, I created a database project by importing a schema from an existing database. Some of the stored procedures in the database use temp tables. Since the tables are created and deleted on the fly, when I build the project, I get errors saying that it cannot find the table and its columns. Is there a way to get around this Thanks. Hello Tom, You can download one of the stored procedures that are causing the errors from here http://www.wessamzeidan.net/proc.txt I solved the problem temporarly by excluding this procedure from the build. ...Show All
Visual Basic How to connect to Server Database (Remote Acccess)
I using VB2005, and I would like to create same simple program that related to the Access or SQL database. The problem is, I want My database is store in server, and i can remote access to the server's database for Inserting, Deleting, Editing and updating the database that store in server. And i also can access the database using my VB2005 program to edit the record in the server database through Internet Connection. Can VB2005 solve above problem Can someone HELP HELP HELP me up asap. Thank Thank Thank ... Thanks for replying .... BUT .... I see that someone using <MS Remote> provider to doing Remote Accress in ADO connection String. what about this Can it connect to database (Access Database ) throught Intenet Thanks ...Show All
