Uncle Sam's Q&A profile
Visual C++ Creating views for static splitter
I have a working shell namespace extension with a listview in the shellview window in the windows explorer. Now, I want to make a static 2 row,1 col splitter in the shellview with the previous list in a top row and another CWnd derived class in the lower. The problem occurs later, read on. Here's what I have in the CreateViewWindow: STDMETHODIMP CIsdShellView::CreateViewWindow(LPSHELLVIEW pPrevView,   ...Show All
Windows Forms ADO.net Connection Error
I am unable to register a SQL Server in Studio.net. I am SA on my SQL Server. However, when I attempt to register the server I get a DBNETLib (Connection Open) error. I need this to do some ADO.net with my Windows& ...Show All
Visual J# Object reference not set to an instance of an object.
I'm writing an SQL querier, that allocates grants and revokes. I programmed the first draft in Java, then converted it into J# in Visual Studio, to add a nice front-end to it. But, i recieve an 'Object reference not set to an instance of an object.' error with this line of code - stmt = con.createStatement(); Where the related statements are - Statement stmt = null; private Connection con = null ; this .con = ...Show All
.NET Development How to Modify Codebase Path for New AppDomain
I would like to know if there is a way to change the probing directory used by the Loader to locate assembly dependencies. What I am interested in is a way to create a new Appdomain, and modify the path used by the loader to locate assembly dependencies (I would be satisfied if I could do this in the default AppDomain). The final result would be an application that hosts an appdomain (named NewAppDomain for the purpose of the illustration). ...Show All
SQL Server Inserting custom data
Can html be inserted into a report. For example if you generate an html page that has Chart image and table data is there a way to insert the html int the generated report. Could this be done by a accessing a custom assembly or some other way CA No, you cannot "inject" HTML into the output. You would need to implement your own custom rendering extension (which is a lot of work). -- Robert&nbs ...Show All
.NET Development Updating record in database (Access)
While attempting to update a datarow in a database i recieve "Data type mismatch in criteria expression." Code: dim ValueID as string = "7" Me.TableAdapter.Fill(MeDataSet.table) Dim _AssetRow() = DataSet.table.Select("ID = '" & ValueID & "'") _AssetRow(0).Col1 = "2" TableAdapter.Update(_AssetRow(0) ...Show All
Visual Studio Team System Error while using the SDK Work Item Object Model
Hi, I'm using the SDK Work Item Object Model Sample to create and edit a new WI. The only thing that i couldnt find on the code is how to give the program the parameter of the name of the Team Project ,I mean by default the WI is creating on the first alphabetical project name. When i tried to edit the workitem.project to be some other team project name i got an error. Thanks in advance. shmuilk. ...Show All
Visual Studio How do i invoke the NewProject wizard from code
hi , i am writing an application in which, one of the intermediary steps is to create a .net project(ex. c# consoleapplication). for this i would like to bring up the new project wizard that is built into Visual Studio. also i am working in VS2005 Beta2. does anyone what has to be done as an alternative i tried using the LaunchWizard(DTE object) method for the project creation. this worked fine with VS2003. however since 20 ...Show All
Visual Studio Team System Is there a way to abort a web test if it encounters errors?
Hi, all. This is probably simple, so I apologize if this is too much of a newbie question. What I am seeing in my web tests is that if one step fails, the rest of them continue on. So, let's say my web test has 10 steps and step # 7 failed. Then steps 8, 9, and 10 are still executed. Is there any way to tell the web test to stop/abort once it encounters an error Thank you. What if you test the webtest ...Show All
SQL Server Join problem
hi I have got two tables and each table has about 8000000 rows.. the format of the tables is as follows.... Table 1 Comnpany_name Id Year Volume_jan Volume_feb....... Volume_dec ABC 1 2000 12 34 44 ABC 2 2000 222 50 44 .................................................................................................................... ...Show All
Windows Forms Windows Forms Designer Bug?
I created a custom combo box which extends the standard Windows Forms combo box. In the constructer (Sub New), I set certain properties such as the Items collection. For example: Option Strict On Public Class ClientCategoryComboBox Inherits ComboBo ...Show All
Smart Device Development Suggested method to send binary data via webservice?
Whats the suggested method to send binary data via a webservice Appreciate any feedback/ideas... Thanks! MTOM is the best way to send binary data. Even large files can be sent. You just have todo 2 things 1) Install wse 3.0 2)Right click sol to enable mtom in wse prop after that all byte arrays will be sent via mtom. it uses xop to send binary data within a soap header you can also use dime but is slower and less secur ...Show All
Visual Studio Express Editions Inventary Remote Control Software - Visual Basic 2005 Express Edition
Hi everybody! I'm new here. I 'd appreciate if someone could give me a link of a web site where I can find a code about Inventary Remote Control Software in VB 2005 Express Edition connected to SQL Server 2005. This is a desk software that it's used to controlling stock of products, but the special feature is that it can be used to do that from different departments of an organization which doesn't use a LAN or WLAN. This software has to incl ...Show All
Visual C++ VCbuild and multiprocessor builds
I'm trying to do a multiprocessor build through vcbuild by following the format given in MSDN (C:\vcbuild /M2 "C:\MyExamples\MultiprocExample\Console1\Console1.vcproj" Debug "C:\MyExamples\MultiprocExample\Console2\Console2.vcproj" Debug) The problem is that vcbuild doesn't recognize the second project as a valid option and ignores it. Is this a known problem or is there a better way to do this (This is being done from the Visual Stu ...Show All
Visual Basic Inheritance run amuck!!!
I use CodeDom classes and VBCodeProvider to generate code and create assemblies. After the upgrade to Visual Studio 2005 Beta 2, I started getting the following error. Class '[ class name ]' must either be declared 'MustInherit' or override the following inherited 'MustOverride' member(s): Note that there is no member name following the error message. If I create a project and add the generated files to the project, it compiles fine. Is th ...Show All
