cplusplus1's Q&A profile
Visual Studio Express Editions Connect vb express to existing sql2005 developer??
have searched all around can't seem to see how to configure a SQL2005 developer ed so I can use vb express to develop a local front end. keep getting "the user instance login flag is not supported on this version of sql server" I have configured the .net framework via aspnet_regsql.exe. Also I configured the "Machine.config" file. but so far no luck. Selecting sql2005 as the server thru the add new database connection in advanced area yields the error message surely there is away. Ok here is what I have behind the clik button on form one Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ...Show All
Visual Basic Service Events Issue - Not Firing.
Hi, I have a service that has a timer that will kick off every 5 minutes. The code withing the first try method works fine and executes correctly. The problem is that the code within the second try never fires. I do not understand why. The machine also has McAfee antivirus running on it. Below is the code: Imports System.Diagnostics Imports System.Timers Imports System.ServiceProcess Imports System.Net.Mail Public Class RebootMon_Service Inherits ServiceBase Private tmr_Check As Timer Private tmr_FileCreate As Timer Protected Overrides Sub OnStart(ByVal args() As String) Try tmr_FileCreate = New Timer(300000) AddHandler tmr_FileCreate.Elapsed, AddressOf FileCreate_Check With tmr_FileCreate .AutoReset = True .Enabled = Tr ...Show All
Visual Basic Creating Stored Procedures Via Server Explorer
According to the book I have... it says: 1. Expand the tree under Data Connections to show a SQL Server data connection that points to the Northwind database, then the Views node of SQL Server. 2. Right-click the Stored Procedures node and select New Stored Procedure. There is no "new stored procedure" option when you right click.. There is only Refresh & Proporties... One thing I did do prior to doing this is... I had VS2K3.NET Standard on this machine. I installed VS2K3.NET Professional over it. Can anyone tell me why I'm not seeing create stored procedure when I right click on the stored procedure node Thanks Shug in VS2K5.NET I see the "Create Stored Proc" but can't ...Show All
Visual Studio 2008 (Pre-release) Error log for svcutil?
I am trying to use svcutil to create datacontracts and service code for a service defined by a wsdl and associated schemas. When I try to do this, I get the error: C:\Program Files\Microsoft SDKs\Windows\v6.0>svcutil c:\a\dws\MFPDevice.wsdl /ou t:newclient.cs /dconly /ixt Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4324.13] Copyright (c) Microsoft Corporation. All rights reserved. Generating files... Warning: No code was generated. If you were trying to generate a client, this could be because the metadata docu ments did not contain any valid contracts or services or because all contracts/services were discovered to exist in /reference assembl ies. Verify that you pass ...Show All
SQL Server Transaction in trigger
Hello, I have one insert and one update in my insert update trigger. Is there any problem if I use Begin Transaction, Rolback transaction or Commit Transaction if both insert and update do not succeed If youi want to rollback something that you do in the trigger, and you don't want to affect anything other than the trigger, then you need to use SAVE TRANSACTION. A normal rollback in a trigger will end the batch: create trigger... as begin begin transaction save transaction something if some condition rollback transaction something commit transaction end go Of course, if an error is caused by the actions you call, the trigger may abort your batch anyhow, so if you are using 2005, using try catch to c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using windows forms components with XNA?
Is it possible to use windows forms components with XNA For instance... what if I wanted to add a menu bar to my game I realize that most games have their own interface, but it would still be very useful to have (especially for setting up quick temporary interfaces). Any ideas Mitch Walker - MSFT wrote: Providing a full featured GUI solution is one of our top priorities for the next version. Is there anymore information regarding this Any list of expected features I am a Windows developer (not expecting to do anything with XBOX) and find XNA a bit too limiting. Having to use bitmaps for fonts, buttons, TextBoxes, etc., is a little frustrating at times. But THANK YOU to Garykac for his extrem ...Show All
.NET Development DataAdapter.Update is not updating the source database
Hello all, I have a dataset that contains new rows. But these rows are not been added to the database table when I call the update method. The program runs without any errors but there is no data when I view the table. Thanks. The code is below: public class MemberFileReader { private MemberFileReader() { } // Parse the given positional data file. public static void ParsePositional(string FileName) { Member member = new Member(); int numOfLinesParsed = 0; string fileLine = ""; string[] fileLines = FileReaderUtil.SplitFileByLine(FILE_NAME); bool tableHasData = false; //Determine if there is any d ...Show All
Visual Basic Trying to connect to ODBC
I am trying to connect to ODBC database but i am getting a wierd exception....I have the Imports.Data.OdBC and the Imports.Data.SqlClient....it breaks on my insert method for some reason....does the version have anything to do with it "System.TypeLoadException: Could not load type System.Data.Odbc.OdbcConnection from assembly System.Data, Version=1.0.3300.0 , Culture=neutral, PublicKeyToken=b77a5c561934e089. at Registrations.RegistrationClass.Insert() at Registrations.RegistrationClass.SaveMethod() in C:\Documents and Settings\shiraz\My Documents\Visual Studio Projects\WebApplication3\Registrations\RegistrationClass.vb:line 329 at WebApplication3.WebForm1.btnRegister_Click(Object sender, EventArgs e) in c:\inetpub\wwwroo ...Show All
Visual C++ Get active window
Hi, Im writing an application which needs to get a handle to the active window and its content. It needs to work like the "Babylon (TM) " translator - get the active window, retrieve the text at mouse location and open its own dialog. It is not as simple as it seems ..., may be someone can give me a clue/link or a snippet. Best regards. Yes, it sounds useful . . ., but how can I get informed when the foreground window has been changed (e.g. destroyed), do I need to test it all the time by calling GetForegroundWindow and compering to the previous wnd Regards. ...Show All
Visual C++ CUBE Sample: Demonstrates an OpenGL Application
I'm trying to compile and run the OpenGL sample, CUBE, from MSDN ( CUBE Sample: Demonstrates an OpenGL Application) without any luck. I've tried it in Visual Studio 2005 and Visual C++ Express Edition. Clicking build does nothing in 2005 and gives a skipped message in Express. Selecting Project -> Properties does nothing. I suspect the project is MFC and so won't build in Express. However, I would expect it to build in 2005. Could the project be corrupted, or is it intended for an earlier non-compatible version of VS Is there a fix or workround TIA I have tried running this example as well, but it doesn't matter if I change it from Itanium to win32, or x64. It still won't compile. Here is the build ...Show All
Software Development for Windows Vista Graphic Driver(s) Problem
I am having a problem with Vista Build 5536 RC1 . I have installed the beta OS to a secondary (slave) hdd. It was a "clean," installation and went fine, no problems until the final part of the installation. After Vista notifies that it is about to "Start for the first time," it progresses to the setup screen where you select your login picture, background wallpaper etc., etc., and it slowed down horribly. At the point where it is checking my pc performance the progress bar freezes about a 1/4 of the way through. I then reboot and after 15-20 minutes I end up at the desktop. The mouse cursor moves quite freely, however every application I launch takes forever to open. Eventually, I navigated to the Device Manager folder ...Show All
Visual Studio Team System Unable to see information when user added to project administrator group
I add three user to Builtin Project administrator group and try to loging with that user, i am not able to see any information of project and it give error that u not have enough permission on TFS. Then i made custom group and give all permission for project then everything goes fine. Can some one guide me what would be wrong Thanks for taking interest and reply. But the problem is different now I am writing in detail what I did. For more Granularity in permission we perform following steps: Create Global group on Team Foundation Server according to different role given for CMMI in the Visual Studio Team Foundation Administrator Guide. We give permission according to role on Server, P ...Show All
Visual Studio Properties window cleared/disabled/disappears
When using Visual Studio Team Edition for Software Developers IDE with Visual Studio SP1 and ASP.NET AJAX RC installed, the Properties window becomes empty (completely blank) when viewing an ASP.NET control or any <tag> in Source View for a web app. Everything works fine when viewed in Design View. I've only recently installed SP1 & AJAX RC. There are no "extras/add-ons" installed for VS2005 IDE as I've just reinstalled Window Server 2003 EE last week. Just curious to know if there's a "user error" or a "ID10T error" (on my behalf) or if it's just a bug in the SP1 or AJAX RC installations. Note: Before the SP1 & AJAX RC install, everthing worked fine as before and am not sure if it's SP1 or AJAX ...Show All
Visual Studio Express Editions A question of semantics
Hello, this is my first post here so go easy on me :-) ... I am writing a program that receives input from COM1 serial port and displays the data using DirectX 9. Borrowing from a serial port class that I downloaded from www.codeguru.com/Cpp/I-N/network/serialcommunications/article.php/c2503/ I inserted it into my existing program and had only one problem compiling it. I will list my fix here, but my question is why the original code would not compile(im assuming im missing a header file, so I will list the relevant ones ive included already) #include(ing) <Windows.h> , <commctrl.h>, <mmsystem.h>, <stdio.h>, <stdlib.h>, <malloc.h>, <crtdbg.h> //------------------------------------ ...Show All
Windows Forms Threading Problem
Hi I have a winforms application which does some database processing and updates a progress bar. As it does the processing, it also writes to a log file using log4net. I would like to add a Multiline text box to the application which can be used to display the a "tail" of the log file. How can I do this After you've appended characters to the TextBox' Text property, call its Update() method to force it to repaint itself. Using a BackgroundWorker to execute the database processing is possible too, use its ProgressChanged event to update the text. ...Show All
