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

Software Development Network >> hailong1977's Q&A profile

hailong1977

Member List

JimTan
shmulik_segal
prog.gabi
amnonman
Murali Krishnan
Shauliz
Mindaugas Lukošius
Alinushka
Peter D.252325
Crane101
Goran _
dxp232
exal
Richard Meijer
LouArnold
Syri
geo2000
Arda Cetinkaya
Juan Carlos Ruiz Pacheco
DigitalFusion
Only Title

hailong1977's Q&A profile

  • Software Development for Windows Vista How to start process in session before user logs on?

    I have a need to start a process in a session before the user logons on. On XP I used a Windows Logon Notification Package to do this. When a new session was created, Winlogon.exe in that new session called my WLNP and it was able to start the process before the user logged on. The process is used to support smart card logons for that session. I'm trying to find out how to do something similar on Vista. I know logon notification packages are no longer supported. I know how to write a service to get session creation notification, but I don't know how to start a process in the new session before the user logs on. Is there a function I can use to start a process in another session If so, I could have my session tracking sevice start th ...Show All

  • Software Development for Windows Vista A compiler error in developing a "Master volumn control"

    Dears, I want to develop a program to control the master volumn in Vista ,but got some problem. My development environment as bellow: OS: Windows XP SP2 Tools : VC++ 6.0 with MFC SDK: Vista Ver.6000 The VC++ setup: "Tools\Option\Directoies\Include files" as bellow: C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\MFC\INCLUDE C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\INCLUDE D:\MICROSOFT SDKS\WINDOWS\V6.0\INCLUDE D:\MICROSOFT SDKS\WINDOWS\V6.0\VC\INCLUDE Precompiler headers: use stdafx.h The example code: #include "stdafx.h" #include "MasVol_Ctl.h" #include "MasVol_CtlDlg.h" #include <MMDEVICEAPI.H> ... BOOL CMasVol_CtlDlg::OnInitDialog() { IMMDeviceEnumerator *pEnum = NULL; ... ...Show All

  • SQL Server Adding Entity after model creation

    I'm woundering if and how it is possible to add a entity to a report model that is directly associated with a database table after the model has already been created Thanks for the help if there is any. You will need to refresh the Data Source View (.dsv) first to pull in the schema for your new table. You can then right-click on the root node in the Model Designer and choose New->Entity. Set the Binding property of the new entity to the new table. ...Show All

  • SQL Server OLE Db Source and Variables

    I created a OLE DB Source, and created a sql command text. The issue is with parameters, I have to use the ' ' to identify. What if I have multiple variables of the same type scatter around, how can I define that Somthing like this would be good... Declare @month set @month = select blah,@month where month=@month or How could I use the ADO Syntax and just put @month Thanks, Mardo Hi Mardo, OLE DB only supports ' ' style parameters. You can use ADO style named parameters if you define an ADO.NET connection manager. Ensure you set the ConnectionType property of the Exec SQL Task to ADO.NET in order to reference the new connection manager. Cheers, Nick http://nickbarclay.blogspot.com ...Show All

  • Windows Forms Reduce the height of textbox control

    By default the height of the textbox is 20, I try to change to 17 but it back to 20 again, do you know a trick to reduce less than the minimun of 20 thanks in advance for your help, Edward do you know where I can find a free textbox control that handle OnPaint, and get control's border to any height and width base in control's size thanks for your help, but I don't like to use a multiline instead one-line textbox, I choose use OnPaint but I don't have the expertice to do it. ...Show All

  • Visual Studio Express Editions URL?

    I have been asking about this a few times and gotten no answer to my question. I have a tabbed browser with no url textbox(for input). I want to however display the url of the current tab in a textbox or a label. So I can use for instince. If URL = "http://" then Webbrowser1.navigate("http://") EndIf well you get the value from the address bar the user types in the url if Me.theUrlTextBox.Text.StartsWith("http://") Then Me.theWebBrowser1.Navigate(Me.theUrlTextBox.Text) end if does this help ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. texture2d problem...?

    Hi All, i'm new to XNA programming (and directx programming altogether). having a lot of fun with XNA and most things are pretty straight forward for a simpleton like me. here's a problem i'm having that i'm hoping someone can shed some light on. I'm using a lot of photos in my application (a slideshow!). I'm testing with 1 Texture2D and every few seconds loading another image into it using Texture2D.fromFile, etc... Here's what i'm experiencing - if I don't call dispose() on the texture before each new fromfile, it's a memory leak... this makes sense. the problem is that the texture seems to get confused on it's size. I'm using a mix of different sized non-square images. it's like the texture only reads the first texture size called and t ...Show All

  • .NET Development WSDL/XSD/.Net Serialiation Questions

    Ok, I'm hoping someone can clarify some behaviour for me. I'm attempting to start with WSDL & XSD file to perform contract first style development in VS 2005/.NET 2.0. The web service contract is SvcReponseType svcResponse Execute( SvcRequestType svcRequest) The xsd created and referenced by wsdl is: < xml version = " 1.0 " encoding = " utf-8 " > < xs:schema xmlns = " http://www.ipdsolution.com/ultera/ipd/2006/10/xsd " xmlns:xs = " http://www.w3.org/2001/XMLSchema " targetNamespace = " http://www.ipdsolution.com/ultera/ipd/2006/10/xsd " elementFormDefault = " qualified " attributeFormDefault = " unqualified " > ...Show All

  • Software Development for Windows Vista Using VB6 on Vista

    Is VB6 support on Vista as a development language I have a VB6 application (which is pretty big), but when I come to compile it on Vista RC2 is fails to register all the activeX dlls that are build as part of the application. I did manage to get round it, but only by running VB6 as Administrator. In a day to day dev environment I don't want to do this every time. I am a local admin so why doesn't this allow VB to register my dlls. Does this behavior have something to do with UAC Thanks for your help Graham I know most of you will probably know this already, but... On further reading for some Vista docs it appears that UAC means that all interactive users run as a standard user, even if t ...Show All

  • SQL Server changing a primary key in a replicated table

    Hi We have a merge publication - I want to change the primary key for one of the tables (add another column to the primary key) How do I do it Currently there is no data in the table - which I guess might help.. thanks Bruce you can try to run the snapshot agent after change the PK to generate the latest snapshot and reinitialize the subsciption. I'm not sure if it will work. Cheers, Justin ...Show All

  • Smart Device Development Get rid of/disable X

    I'm developing an MFC app for a Pocket PC type device. Most of my dialogs were automaticly given an OK in the upper right corner that caused that dialog to close and I disabled it but replacing the void OnOK() function with one of my own. However the main window is given an X in the corner that causes the window to close (and dosn't even stop the program), i've tried replacing OnOK() OnCancel() OnClose() OnDestroy() without any sucess of intercepting/detecting when the user pressed the X. How can I do it Why would you want to do that What benefit do you get by making your application's experience different from all the other apps on the device ...Show All

  • Software Development for Windows Vista New xp pro machine, MSDTC not installed or configured?

    Hello everyone, I purchased a brand new shiny development machine last weekend (one of the new dual core 2 processor machines...two thumbs way up!). The operating system on the machine is XP Pro. I am coding a C# 2005 winforms application which requires MSDTC and after opening my C# project and running it I noticed that MSDTC is not installed on my new machine. I thought MSDTC was installed on every windows machine but apparently that is not correct. So when I go to component services to look at the Distributed Transaction Coordinator the "my computer" icon has a red arrow over it instead of a green arrow which makes it look like there is a problem. If I click on the "distributed transaction coordinator" folder under co ...Show All

  • Visual Basic Tableadapter.update with auto-increment on SQL column problem

    Hello, I'm using databound textboxes to display data from a database on VB.net 2005. I have an "add new" button, which does this: BindingSource.AddNew() - and then once the user has entered the details, they click a button that updates the database: Try Me.ChildrenBindingSource.EndEdit() Me.ChildrenTableAdapter.Update(Me.Main_databaseDataSet.Children) Catch ex As Exception MsgBox("Update failed") End Try I have a primary key field on the database (I'm using MS SQL express) called "ID". I've tested all the above with the user entering their own ID, and all works fine, but I want this to be auto-incremented instead. So, I set my MS SQL "ID" column up with these pr ...Show All

  • Visual Studio Team System Power Toys for Modeling Tools

    1. I cannot load the Modeling Enhancements - I'm using Team Suite. Error is : The Add-in 'Modeling tools design enhancements' failed to load or caused an exception How can I get these tools to work Jean-Pierre Fouche I can repro this error. I'll get with the developer of the tools to get a fix posted. Thanks. Please accept our apologies for any inconvenience... Phil ...Show All

  • .NET Development Read Value in xml type

    Is there a way to read the value of a specific type in c# example: XMLFILE.xml <Employees> <Employee empID='0000'> </Employee> </Employees> Is there a way to return 0000 as a string or something that is parse-able with c# My knowledge of XML is rather limited, I know how to get the inner text of a field but not much more. Thanks Thomas No, what I am trying to do is read that number what ever it is from a program. The file I posted was an abridged version of the file. Which has multiple Emloyee structures with multiple empId='NUMBER'. All I need to know is how to read that number so I can feed them into a string array and use them as needed. I hope this clears up my inte ...Show All

©2008 Software Development Network