Software Development Network Logo
  • Visual FoxPro
  • Microsoft ISV
  • Audio and Video
  • .NET Development
  • Windows Forms
  • VS Team System
  • Visual Basic
  • Visual Studio
  • Smart Devicet
  • Visual C#
  • SharePoint Products
  • Windows Vista
  • Game Technologies
  • IE Development
  • Visual C++

Software Development Network >> Info-Minister's Q&A profile

Info-Minister

Member List

abcdefgqwerty2
Paps
Ed77
airwalker2000
Altoids
forrestcupp
jawosis
Yash Purohit
corbin
roychoo
John_Mac
soni_ace
Andreas Asterlund
mobigital
filson
mike11d11
Denvas
Raghunc
edenxiii
bessermt
Only Title

Info-Minister's Q&A profile

  • Visual C++ communicating with a command shell

    I need to use a command line executable in my application and act accordingly based on its output. I could use the system() call to execute this .exe with the required options. But, how do I obtain the output from the cmd shell I was thinking of re-directing the output to a text file, then reading the file to obtain my information. But I feel this may be a dirty way of doing this. I was wondering if there was a better way thru code, maybe somebody has a better idea than mine. Thoughts What you need is called piping. You can redirect an exe's (the one spawned) stdio and stdout to your file handles belonging to the main executable (the one spawning). Look up _pipe in MSDN for a sample. Note that thi ...Show All

  • SQL Server SQLExpress database file auto-creation error

    Hi, I'm not sure this is the right location to post ... I got some issues with VS 2005 BETA 2. I done full install except for SQL Express and full install of the SQL server disc. Now when looking at the starter kits or building app / sites using sql connection i get the following error: An error occurred during the execution of the SQL file 'InstallCommon.sql'. The SQL error number is 5118 and the SqlException message is: The file "R:\DATA\VS2005\SAMPLES\PWSSK\APP_DATA\ASPNETDB.MDF.MDF" is compressed but does not reside in a read-only database or filegroup. The file must be decompressed. CREATE DATABASE failed. Some file names listed could not be created. Check related errors. Do i need the Express version or is there other way to s ...Show All

  • .NET Development Can class instances be reflected without giving reflection a reference to the object?

    If I have a program in which I've declared a few instances of a class, is there some way I could write a reflection component that could be plugged into this program and read instance information off of the class(es) without reflection being passed a reference to the instances I can already read all the information off public properties and fields of a class instance when I pass a reference to the instance to my reflection code, but I don't want to have to pass an instance, I want reflection to discover what instances exist in a program and read their public property information off of them. This won't be possible using managed code due to the architecture of the CLR. The only point at which you can know where all of the objects a ...Show All

  • Visual C++ Separator in a context menu

    Hi all, How do I add and locate a separator in a context menu (of the mouse right button ) E.g. I wish to separate (between two lines) my own menu items (in the context menu) from all the others. Best regards. Neil Tippett wrote: I had a little look into this issue yesterday, but couldn't find an exact c++ solution. If you do a search on google for adding a context button into Visual studio you shoud find sufficient information to allow you to proceed. As both VS and office use the same extensibility interface, the code should work for both. Within 5 minutes I found a c# and vb solution for adding separators ;p My apologies, I didn't check the replies to my posts until this morning. ...Show All

  • .NET Development Exceptions in Timers.Timer.Elapsed

    Hello .NET gurus!!  I have attached a sample of code that demonstrates an issue I am running into.  An unknown exception occurs in the Elapsed event of a System.Timers.Timer.  I would like to catch these exceptions globally for logging, etc.  I would 'like' to avoid creating a generic exception handler in the Elapsed event.  In the past I have used the AppDomain.UnhandedException event for global exceptions, but in this situation the exception never falls into that event. Ultimately the app will be running as a Windows Service.  I am developing as a Console app. Here are some of the things I have been thinking about but don't know the answer to.  Does the AppDomain.Unh ...Show All

  • .NET Development Dataset Scalar query - riddle you this.

    Hello all. I am struggling with datasets and the disconnected data architecture and hoping you kind folks can help me out. My question today is how do you create a scalar query from the information inside your datasets. For example, I have a datatable inside my dataset called customers. I want to create a calculated query which returns the number or count of the customers I have in my customer datatable and bind that value to a textbox so when a customer gets deleted/removed from the dataset, the calculated value will change in the textbox. I am trying to deploy the same concept as using a bindingsource. So, basically, when the customertable gets modified the scalar query will refresh the value of the textbox to show the appropria ...Show All

  • Windows Live Developer Forums Wished functions (brainstorming)

    Hello everybody and specially MsVE programmers! In this thread I invite you to post your desired VE functions and talk about the future versions of VE API. All you want, or imagine for VE can be possible (if programmers do it). Please, you must write clearly and with some examples. Thus all we'll be able to understand you. If a function is very popular and demanded, we can open another thread to speak on its viability. I hope that this brainstorming be interesting, and with the collaboration of all we improve the features of Ms VE. Thanks in advance to everybody and specially to programmers team! Happy ideas summer... How about 3D terrain Just like Google earth or NASA Worldwind use the elevation information to distort the aerial vie ...Show All

  • Visual C++ Problem trying to uninstallk microsoft business 2003

    When I go into control panel and add/remove programs and I go to uninstall Microsoft business 2003 I get this Error message. MICROSOFT VISUAL C++ RUNTIME ERROR. THIS APPLICATION HAS REQUESTED THE RUNTIME TO TERMINATE IN AN UNUSUAL WAY. PLEASE CONTACT THE APPLICATIONS SUPPORT TEAM FOR MORE INFORMATION. Then I also get this pop up. THE EXCEPTION UNKNOWN SOFTWARE EXCEPTION (OX40000015) OCCURED IN THE APPLICATION AT LOCATION 0X7813461A. All I want to do is uninstall this program as well as Microsoft Visual Studio. Can anyone help I would drop a line to the Microsoft business support area, If you go to the product home page on Microsoft you will find a link to the support area for the product in question. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. 3D Modeling

    What is the best free/cheap 3D modeler out there By best I mean a good combination of capable and easy. I have used Maya while playing with UT2004, but the free version won't export .X files. I have a copy of 3DCanvas pro, but I find it lacking somewhat. One of my favorite combinations is D GA CGA and Metasequoia (all free depending on which versions you get.) D GA CGA is a dirt simple to use 3D modelling tool based on a parts bin metaphor. Metaseqouia or Milkshape (shareware) can be used to convert the D GA models into a game mesh. -- TAZ D GA CGA English page ...Show All

  • SQL Server ParallelPeriod that never returns null

    I'm sure this is easy, but I haven't been able to cook up the secret sauce:  I need a function like ParallelPeriod that will always return a member (unless I'm asking for a member that predates the oldest member in the dimension, when null is perfectly fine). For example, ParallelPeriod([Month],1,[2006].[December].[31]) returns null.  Instead, I want to get back [2006].[November].[30] (the last day of the month). What's the secret   OK, I see the pattern. The solution you propose above won't quite work (think of March), but it's close enough to something that will work to see where to take it. If I decide that I really need this function, I'll probably go with the first suggestion you made, since I can stil ...Show All

  • SQL Server Left outer join query?

    Hello all, I am stuck in a bit of a mess, and i really don't know how to get out of it. I am a dot.net developer, working with MS SQL server 2000. I am trying to write a query which essentially gives the amount of stock available for a particular stock_code. select Stock_code, description from stock Now what i want to do is, for each one of the stock_code that apears in the table above i want to look into another table called pop_item, and get the closest delivery_date for that particular stock_code. So i have top 1 and order it by delivery_date desc. Individually for a particular stock_code, i can do this no problem. And here is my code for stock_code='E0016/6' select top 1 stock_code, delivery_date, order_number,qt ...Show All

  • .NET Development Trouble with SoapExtension not firing.

    I have a Class Library (dll) that calls a web service and includes a form where a I am trying to implement a progress bar using the code in "Adding a Progress Bar to Your Web Service Client Application." The web service executes fine, but I can't get the SoapExtension to fire. The code for the soap extension is similar to the sample code: ' ' Progress bar - C# to VB.NET hack ' Class ProgressClient Inherits webapp.MyWebServiceWSE Public Progress As ProgressBar Public Transfersize As Integer Dim MyForm As ServiceForm Public ProgressDelegate As ServiceForm.UpdateDelegate = AddressOf MyForm.ProgressBarUpdate End Class ' ' SOAP Extension - C# to VB.NET hack ' ...Show All

  • SQL Server composite stored procedure

    Hi, I am trying to write a procedure in SQL which will composite values in a table. I have an increment list, which increments by 0.1, I need to average values so I produce composites for 0-1, 1-2 etc grouping by id. The script below produces a table then a procedure, but I'm stuck on the syntax and get the error Column 'Increment.increment' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause The script will run on the master database. The end result should look like the following: thanks for any help id inc_from inc_to comp_val ---------------------------------------------------- 1a 0 1 4.6 1a 1 2 4 1b 0 1 3.9 1b 1 2 ...Show All

  • Windows Forms Changing the data in a datarowview column

    Hi, I have a datagridview that amongst other things displays a date of birth. Is it possible to display this in the view as as age You can use the CellFormatting event for that Imports System.Data.SqlClient Public Class Form1 Dim bs As New BindingSource Dim dt As New DataTable Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim strConn As String = "Server = .\SQLEXPRESS;Database = Northwind;Integrated Security = SSPI;" Dim conn As New SqlConnection(strConn) Dim da As New SqlDataAdapter(" Select LastName, BirthDate from Employees", conn) da.Fill(dt) bs.DataSource = dt.DefaultView ...Show All

  • SQL Server Questions about the Matrix

    I'm new on Matrix but I created it anyway. I have a few problems I need to ask from you. 1. Is it possible to hide rows in Matrix In table it's possible but I didn't find visibility-property in matrix's row. 2. Can I limit the columns to the page width E.g. 10 columns fit in page but not 11 so if there are more than 10 can I start a new row for the leftovers or sth like that Thanks in advance! This forum is my salvation :) 1. Yes. You can right click on the row header and select "Edit Group" to bring up the group properties dialog, then go to the visibility tab to set visibility properties. 2. In HTML and designer preview, the column will grow beyond the page width. In PDF/Image rend ...Show All

©2008 Software Development Network