GBez's Q&A profile
Visual Studio MsBuild & VCBuild task setting /useenv
I'm replacing our Nant scripts with MSBuild for building all our projects. We rely on LIB & INCLUDE being set in the environment when building VC projects. When building these projects via the MsBuild task (i.e. building the solution), vcbuild gets invoked without the /useenv parameter, so the environment gets ignored. The VCBuild task doesn't include a Useenv property either. Is there a sneaky way to do this For now I can work around it by using the Exec task to invoke VCBuild directly, but it would be nice to write: < Project DefaultTargets = " build " xmlns = " http://schemas.microsoft.com/developer/msbuild/2003 " > & ...Show All
.NET Development Cannot create ActiveX component with word.apllication
Exception Details: System.Exception: Cannot create ActiveX component. Source Error: Line 278: Dim docType As Object = 0 Line 279: Dim isVisible As Object = True Line 280: oWord = CreateObject("Microsoft.Office.Interop.Word.Application") Line 281: Getting the above error when moved to production IIS server. It works fine from Visual Express Developer 2005 which is on the same machine. Some solutions indicates, its the server error and need to confgiure IIS. But doesnot provide specifics on how. Cheers Hi! Thanks for asking! I'm a member of the ASP.NET team, and was ...Show All
Windows Forms error: null is not valid value for stream
Dim strm As System.IO.Stream = Me .GetType().Assembly.GetManifestResourceStream("fullbuttonface.bmp") _buttonFace = New Bitmap(strm) May be the bitmap file is not part of the assembly, how do I put it in the assembly Thanks u re so right Chris, u save my life with your idea: MyWindows.fullbuttonface.bmp That s perfect. Thanks to karthik as well. Thanks a lot guys ...Show All
.NET Development slow loading data
I am trying to build a treeview that loads data from a database. The parent nodes hold the car make (approx 30 makes); The child nodes holds each car make model(approx 5000) The grandchild node holds each model engine type(approx 32000) The greatgrandchild node holds each part that can be fitted on each engine(approx 125000) I have tried both approach using loading a DataSet with a DataAdapter And I have tried the DataReader and both are very very slow I have clocking approx 2 minutes wait that way to slow. I am using access database (its not a choice is a must as the data already exists) ...Show All
SQL Server The transaction log for database 'mydatabase' is full. To find out why space in the log cannot be reused, see the log_reuse_wait
Every time I get this error, at different points of testing inserts and deletions on my table: The transaction log for database 'mydatabase' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases Why do I keep getting this All I'm doing is deleting several hundred thousand records and inserting them into a couple of tables. i shouldn't have to truncate my log every time or my application bombs out! sys.databases only gives me this info for log_reuse_wait_desc which does nothing for me: LOG_BACKUP Why don’t you specify a the log bigger, that this message won’t come during the mod ...Show All
Visual Studio Team System Delete files from local folder
Hi, We have the following problem: When Developer A deleting files in his local folder (which mapped to Workspace), and Developer B makes changes in the same folder and checked in the changes, Developer A is trying to Get Latest Version but get no files at all. The solution is to create a new workspace and then Get Latest, but it's makes us a lot of problems. Thanks, Michael Quite true- the user should get the changed files from source control, though not downloading the unchanged files is expected. Apologies for the misread of the scenario. One question which could help pinpoint the issue- what folder does D ...Show All
Smart Device Development Device Emulator and connection to Desktop
Can somebody please explain how connection to the desktop is supposed to work, reliably I've tried to get the emulator to connect to the desktop and have gotten it to work, but it's really, really inconsistent. I get it to work and next time I start the emulator it no longer works. Then after futzing around with cradling and uncradling for a while it starts to work again. I'm trying to debug an application with a Web Service which is calling the local machine and I'm unable to work with these inconsistencies. Environment: Network is set to Installed network adapter ActiveSync to the Desktop is working IE connection settings are set to Work ...Show All
Visual Basic Array Of Classes Problem
Hi, i am having a small problem with an application that i am developing. the problem is that i need an array of classes: [code] Friend Class Connector Public aNodes() As Point Public iNode As Integer End Class Public Class frmMain Private Lines(20) As Connector ... ... End Class [/code] The problem is that when the code that accesses the array Lines, the program halts, with the error "Object reference not set to an instance of an object", and tells me that i need to use the NEW keyword, but when i change the line to: Private Lines(20) As New Connector ...Show All
Visual FoxPro How to use the tables of a Form
I am having problem using the tables listed in its data environment, I would like to zap the records, append some data and replace some records but when I used the zap command it says that the table should be used in exclusive mode, what should I do Hi, When you use a temporary cursor, it's created on each person's machine, for the life of the program or until it's closed. Since you were Zapping your table each time you use it I assumed you did not need the data beyond the life of your application. You will need to create this cursor in code each time you want to use it. You can do this in the Load() of your form. I'm not sure what ...Show All
SQL Server Using SMO to backup / restore a SqlExpress database
Hi all, I have seen several threads on using SMOto backup & restore sqlexpress databases but am having trouble getting my code working. Does anyone have a snippet available Current problem is connecting to the sqlexpress database file Thanks, Nick I am having the same problem with regards to the initial connection throwing an error.... Did you resolve this If so can you post the solution ...Show All
Smart Device Development Serial Port DataReceived Event in .Net 2.0
Hi there, This is driving me crazy, I cannot seem to get the DataRecieved event to work on the Pocket PC using the new serial port class in Visual Studio 2005 with C#. The DataRecieved event just never seems to be called. I can write data to the port just fine. Here is some very simple sample code that reproduces the error:. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace SerialTest { public partial class Form1 : Form { ...Show All
SQL Server How to run only certain tasks
If I'm in the Data Flow tab in VS 2005, how can I select only certain components to run to test I tried highlighting the ones that I want to run but it's running all of them in the tab...some of the components I want to take out for testing then maybe put back in later. If I delete the tasks I don't want to run, then I end up having to recreate them First of all, you need to be clear that the objects in the data-flow are called components. Tasks are in the control-flow. The lowest unit of execution in SSIS is a task. It is not therefore possible to execute a component in isolation and to be fair, why would you ...Show All
Windows Forms CSS
it is so easy to use CSS (external file) for pages, textBoxes, .... in a webForm is there an equivalent possibility to do the same with webForm, to apply a style to elements and my second question : in CSS you can set width and height unit.percentm is it possible to use percent in a winform This is winforms, they do not a ...Show All
Visual Basic Open an excel file with 'auto_open' macro
I have a Visual Basic application that opens a specified excel file upon clicking a command button. This works fine using the following code: Private Sub cmdCurrent_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCurrent.Click Dim pi As System.Diagnostics.ProcessStartInfo pi = New System.Diagnostics.ProcessStartInfo() pi.FileName = "test.xls" System.Diagnostics.Process.Start(pi) End Sub My question is, is it possible to ad ...Show All
Visual Basic Connect to an Access 2000 database stored ONLINE from VB
Hi! Being fairly new to VB, I am trying to develop a software 'activation' service using a Visual Basic application and an Access 2000 database stored online. NOTE: The database is 2000 format, but it was created in Access 2003! Does anybody know how I can connect to my MS Access database stored online (via HTTP) in Visual Basic Express Edition 2005 I need to verify the user's details (e.g. Serial Number) online before they can run the program etc. The database is in Access 2000 format. Using a DataSet's TableAdapter, I keep getting an irritating 'Not a valid file name' message box. This is when I use the standard HTTP file format (e.g. ' ...Show All
