rksinghal's Q&A profile
Visual C++ Win 32 Wrapper Class
I was looking around for a while on different forums and sites and couldn't find any help to my problem. I'm trying to make a windows wrapper class. I'm using VS 2005 and doing it in visual C++. I'm declaring my handle as a private variable inside the class. private : hWnd; Then in my functions I have HRESULT cWindows::WinCreate() { hWnd = CreateWindow( "wndName" , "" , WS_OVERLAPPED, 0, 0, 600, 480, NULL, NULL, hInst, NULL); if (!hWnd) {return E_FAIL;} return S_OK; } hInst is a variable that I keep stored in the privates of my class and pass it in through the constructor. The WNDCLASS is registering itself fine, but whenever I try to create the window, I keep getting a a NULL ...Show All
SharePoint Products and Technologies Custom List
I am trying to setup a custom list in sharepoint 2007. I would like to have a custom column that is automatically filled with the logged in users manager property from the user profile when a new item is created in the list. Also viewing the list would only show items where the logged in user is the manager in that custom column. I would appreciate any responses on how best to set this up or what the best approach is. Thank you. I think you can use an event handler for ItemAdded/ItemAdding event.In this handler put your LOC to read the user profiles. You can refer the SDK on how to fetch data from User profiles. Using SPD you can create a view of this list so that its filtered on the Manager column. ...Show All
Windows Forms DropDownList value not matching after DataView filter
Hi, I have a DataGrid that has a column with DropDownList. The value is populated thru DataGrid ItemDataBound. It works fine if I just load the DataGrid. But if I use a DataView to do a RowFilter and bind it back to the DataGrid, the value of the DropDownList will be wrong (It will still be populated, but it is not populated according to the filtered rows). private void dgEditGrid_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { int intRow = e.Item.ItemIndex; if (intRow != -1) { if (Session["DataGridData"] != null) { DataSet dstTempData = (DataSet)Session[" DataGr ...Show All
SQL Server Number of records in table
Hi! How I can calculate number of records in the table which has filtering E.g., DataSet "dsABC" return 1000 rows. After filtering table contains 300 rows. Function: = CountRows("dsABC") return 1000. How I can get 300 Alexey, I'm not sure I completely understand your question. Do you want the number of rows to show up on the report Is this correct ...Show All
Visual Studio 2008 (Pre-release) Providing alternate styles for a control
involved_Mike_Brown wrote (at http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=490249&SiteID=1 ): "What you want to do is create two named styles within your control's generic.xaml. After your control is initialized, set its template to one of the styles. If you want to change the style, load it from the resource dictionary and set the control's template to the new style." Hi Mike, Could you explain this step a little more fully Practically all of the examples I have seen relate to themes rather than skins. The only skin example I have seen is the format outlined in the Programming Windows Presentation Foundation book, but it seems like having default visuals and multiple skins for a custom control ...Show All
SQL Server SQL 2005 Standard from "Ready to Launch". Is it x64?
I just set up a server with Windows 2003 Standard x64. I have a copy of SQL Server 2005 Standard Edition that I got from the Microsoft Launch event. On the back of the case, it gives version requirements for both the x86 and x64 versions. When I went to install it, it didn't ask me which one I wanted to install. When I look on the CD, I see different installers for x86 and x64 for various pre-requisites, like MSXML. As I'm installing SQL Server I see that it is installing most things to "C:\Program Files (x86)" which is where 32-bit programs go.. I decided to let it finish. Most of the binaries and everything, include sqlservr.exe, are in the Program Files (x86) folder, but it did install a few things in Program Files, so it must ...Show All
Visual Studio Express Editions Retrive MAC-ID using Visual Basic 2005
Hi All, I have a Button and a text box in a form.On Button click it should retrive the MAC-ID of the system and should display the value in the text box.How can this be done http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=845110&SiteID=1 ...Show All
Visual Studio Team System Unlike Mercury Load Runner, Visual studio 2005 does not replay the correct filter search
Unlike Mercury Load Runner, Visual studio 2005 does not replay the correct filter search Does anyone know why Visual studio does not pick up filter searches. My Automation script when played back does not a perform a filter search that was incorporated during the recording process. Instead it returns the result set of filter search based on default settings. However, when I ran the Loadrunner script, it replayed the events correctly. (Correct filter search results were returned) yes..on playback it is still displaying default information.. Also during the recording process Visual studio crashed a few times- could have a bearing on the data recorded. I had to us ...Show All
Smart Device Development smartphone
How do i know what a smartphone is And is it possible to deploy a program through vb 2005 to smartphone via BlueTooth Mitch In this forum SmartPhone usually a device running Windows Mobile for SmartPhone. For more generic definitions you can ask the web . Yes, you can if SP is active synced via BT and RAPI is enabled on your particular SmartPhone. ...Show All
Visual Studio Express Editions print web page without viewing it
I tried this but it does not work for me. I get the message box at the end from the program that says " Printed Web Page" bu tnothing comeout of the printer;. Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click ' Create a WebBrowser instance. Dim webBrowserForPrinting As New WebBrowser() ' Add an event handler that prints the document after it loads. AddHandler webBrowserForPrinting.DocumentCompleted, New _ WebBrowserDocumentCompletedEventHandler( AddressOf PrintDocument) ' Set the Url property to load the document. webBrowserForPrinting.Url = New Uri( "http://www.google.com" ) End Sub Privat ...Show All
Visual Basic Configuration.Add() throws exception...
Having a pretty annoying problem. I figure it has to be something obvious, but I have tried everything, and I am getting nowhere fast. Here is the main code I am using to save a config section to a file: Dim MC As System.Configuration.Configuration Dim filemap As New ExeConfigurationFileMap filemap.ExeConfigFilename = configObject.GetConfigurationFileLocation MC = ConfigurationManager.OpenMappedExeConfiguration(filemap, ConfigurationUserLevel.None) MC.Sections.Remove(configObject.GetSectionName) MC.Sections.Add(configObject.GetSectionName, configObject.ConfigurationSection) MC.Save(ConfigurationSaveMode.Full, True) This will work on a simple config section save. However, I ...Show All
SQL Server Deployment 'utility' script using sqlcmd
Hi all, I'm looking at creating a sample utility script that will invoking scripts to deploy some SQL code. For example, a utlity script that will run a SQL script, and on successful completion, execute the next script. Having not used SQLCMD at all before, and being very new to SQL2005 (< 1 month) please guide me if there is a better way of invoking this... For example, a way of avoiding the xp_cmdshell invocation! The following code invokes a script, but I'm trying to find a way of getting a return code back from sqlcmd, so I can progress and do the next, or fail if the return code <> 0 (success). [code] --Process to create DB, Tables, and Stored Procedures set nocount on DECLARE @Error i ...Show All
Visual C++ programming to Auto logon Windows XP
Hi, I have to run many applications in computers in a LAN. so I developed a console client and a server as a windows serivice application run before logon to shellexecute the applications. but some of the applications can not be running well before logon, is the reason that they use the windows GUI facilitys SO MY QUESTION IS How can the serivice application logon Windows (XP professional) and show the desktop automatically That is, the server computers can not be logon if the user has no valid user name and password. But the administrator can make it been logoned remotely. Some applications running on server computers use GUI and GDI facilities, I want the administrator can sending some commands include user name and password to the win ...Show All
Visual FoxPro ComboBox Question - Load field from
I have a form that has fields from my transaction.dbf database. I want to add a combo box that lists the customer numbers I have setup in the customer.dbf database. What I did was to set the RowSource to Data\customer.dbf, and set the RowSourceType to "6 - Fields". I keep getting "Field Phrase Not Found" error message when I run the form. I've read through this forum and read the Visual FoxPro 9 help text and I'm still confused. Any advise Derek You should open the Customer table in the dataenvironment for the form. Right click the form's background and select dataenvironment. ...Show All
Windows Forms Numeric Only Cell/Column in DataGridView
I need a numeric only cell/column for the DataGridView. I'm guessing that I'd need to create a custom column inheriting the DataGridViewTextBoxCell. Are there any examples of this or has someone already created it Thanks, Kyle The is a sample numeric updown control column here . ...Show All
