Amanda Jamin's Q&A profile
SQL Server Any other way but Cursors or While loop
Hi all, I have a bit of a challenging on my hands with this, i have a result set in a table which i am trying to iterate through the rows one by one i.e Values Values Dates 1.10 1.20 1.30 1.40 2006-03-31 00:00:00.000 2006-06-30 00:00:00.000 2006-09-30 00:00:00.000 2006-12-31 00:00:00.000 go to each row get the value and the date perform some calculation with the value and the date and insert it into another table(which sounds easy enough) my problem is how do i iterate through the result set one by one without using a cursor or a while loop do i have any other options at all Hi thanks for your reply, but i am not ...Show All
Smart Device Development Call VB external function from a DLL
Hi, I've developed a C++ DLL that process incoming SMS messages and an EXE VB application that run as a standard program. How can I call a specific function of EXE VB program from the DLL I'm trying to develop an SMS filter that receive only messages that come from a specific phone numbers. DLL (MAPIRule) intercept SMS message, call VB program function that check if the phone number is good and return a value to DLL. Thanks a lot You can not call functions in EXEs and you can not call any managed code from native. You can, however, call your C++ DLL from VB EXE. You also can do callback from native DLL to VB EXE in NETCF V2. ...Show All
Visual Studio Team System Build Information Record
Hi, Is there is any way that we can store and retrieve the file names and it's respective version which went in to Specific executable build. I found that one way of doing it in TF is by using Labels associated during build process by Build server. But I find it has a potential problem , because Labels can be moved to new version or delete from a specific file version. Clearcase has a powerful auditing functionality (Configuration record) which records all the files and respective revision went in to build and which can't be edited accidentally.Do we have similar functionality in Team System Thanks In advance Pramod d:\foo>tf properties foo.cs Local information:   ...Show All
Windows Forms Create a combobox in code
Hi im trying to create a combo box in code but im not sure what im doing wrong i am then trying to put the combobox into a datagrid cell to allow for a select list. If i use this code on a combox created using the toolbox and the designer it woks fine, but when i try to create it in code it does nothing, any ideas ComboEditor ComboEditor2 = new Controls. ComboEditor (); ComboEditor2.DataSource = customerListDataSet.Customer; ComboEditor2.DisplayMember = customerListDataSet.Customer.CustomerNameColumn.ToString(); ComboEditor2.Value = customerListDataSet.Customer.CustomerIdColumn; dataGrid1.Rows[0].Cells[2].Column.EditorControl = new Controls. ComboEditor (); dataGrid1.Rows[0].Cells[2].Column.EditorControl = C ...Show All
Internet Explorer Development IE7 Tabs
I am looking for a way using the SendMessage API or something along those lines to activate a different Tab from an external application, so I can detect if a URL is already open and restore that instance of IE and automatically switch to the proper tab. Hi, the SPYXX utility (VS.net>Tools menu) lists the windows heiarchy under the top container (in IE7's case classname="IEFrame") under which are the windows with a classname of TabWindowClass, so to count the number of open tabs enum the windows under the top IEFrame window and count those with a classname of TabWindowClass. You should be able to use the same method to locate and activate a non-active tab, though I have not tried this metho ...Show All
Visual Studio 2008 (Pre-release) Communication between applications in same machine.
Hi, I have a requirement to pass massages between windows applications developed on .NET 3.0, deployed on the same machine. The requirements are 1. 2 way communication between the applications. App # 1 should pass a message to App # 2 and in return App # 1 should get back response. 2. App # 2 should send a message back to the caller App (in this case App # 1). I was considering System.Diagnostics and win32 ShellExec. But recently i came across WCF. I was wondering if any one tried their hands in WCF for interprocess communication. Can some one please let me know if WCF is a good fit for my requirement and also, if there are any samples to demostrate it, please let me know. Note: I am planning to use WPF to develop the win ...Show All
Windows Live Developer Forums Define custom colors in Windows Live Writer?
Hi! I downloaded the Windows Live Writer yesterday and I've been practicing with it. I'm wanting to add text that matches my space, but the "Define custom colors" feature in the color palette is greyed out for me. Is it like that for everybody Is this just not an option yet If it is supposed to work, how can I fix it. Thank you! X http://x-evolutionist.spaces.live.com/ When will updates to the program be coming out X http://x-evolutionist.spaces.live.com/ ...Show All
Visual Basic Remotely Executing Command Lines and Command Line Compiling
Two questions here. I'm attempting to work on both at the same time. I'm creating a Visual Basic .NET 2005 application that should connect to a remote computer and install a Windows Service. I know the commands needed to install the service on the local machine, but I have some services that need to run on a remote server. I need to run installutil.exe on the remote machine as if I was actually there, as well as input the user and password for the service to run under. Plus, this install utility software should be able to take an uncompiled project, compile it, and then install it, and I'm having trouble compiling it. I don't know what file to use or fully understand the command line compiler. This compiling action will most likely occur l ...Show All
Visual C# Attributes
I just wanted verification on this. If I use custom attributes to document bug fixes in my code, will that effect run-time performance [ BugFix("01/01/07", "Fixed problem with calculation...")] [BugFix("01/04/07", "Added error-handling....")] public void MyMethod() { ................ I could use the XML comments, but I could also use the attributes, since they will generate with the SandCastle documentation. Also it allows the possibility of building a utility to pull the code modifications out into a report all by itself via reflection. ...Show All
Software Development for Windows Vista Major Problem - VISTA RTM / P5WD2-Premium / ICH7R SATA RAID
I have tried loading the x32 RTM version of Vista on my P5WD2-Premium with absolutely no luck. I have tried many different ICH7R SATA RAID drivers including the one that comes on the OS DVD. The OS installs but, upon first reboot, the RAID array becomes corrupt and will no longer boot (solid HD light). I have tried RAID0 and 1. Both have the same results. Anyone else seen this issue If so, is there a solution Thanks, Frank Hello ftlee, The MSDN forums are geared more towards developers, I would suggest posting your question over in the TechNet Hardware forums here http://forums.microsoft.com/TechNet/ShowForum.aspx ForumID=714&SiteID=17 as it is more of a technical conf ...Show All
Visual Studio Team System Performing a merge using the API
Hi, I'm writing an app which needs to perform a merge operation between two branches using the API. I could not find the way to do it. How would this be done is there a code snippet demonstarting this Thank You, shay Hello, you can perform merging using Microsoft.TeamFoundation.VersionControl.Client.Workspace class. It contains 2 Merge methods: public GetStatus Merge(String sourcePath, String targetPath, VersionSpec versionFrom, VersionSpec versionTo) public GetStatus Merge(String sourcePath, String targetPath, VersionSpec versionFrom, VersionSpec versionTo, LockLevel lockLevel, RecursionType recursion, MergeOptions mergeOptions) You probably want to use the second one t ...Show All
Windows Forms Binding Complex Business Objects to a DataGridView
Presently I have a Business Object Called Client as shown in incomplete form below. I have a DataGridView bound to a bindingsource which the bindingsources datasource contains a of List<Client>. Is there anyway to set the DataPropertyName on the DataGridView columns to items in the child objects public class Client : BaseBusinessObject{ private Person _clientContact; private Address _clientAddress; private string _clientName; public Person ClientContact{ get return _clientContact} public Address ClientAddress{get return _clientAddress} public string ClientName{get return _clientName} } public class Person{ //person properties} public class Address{ //address properties ...Show All
.NET Development Is there a functional interface to ilasm
I'm wondering if there is a way to invoke ilasm passing a pointer to a stream of cil text code and then taking the resulting assembly and working with it via Reflection.Emit Or is there something in Reflection.Emit itself that can take a whole section of cil text and assemble it all at once If there is, is it possible to also pass in a pointer to the memory address at which you would like the byte codes to be written And what about the metadata; can you also indicate a target location for this Does such an animal exist Any direction would be greatly appreciated. Mike Another option is Mono.Cecil ( http://www.mono-project.com/Cecil ) - it supports assembly creation/rewriting. ...Show All
Software Development for Windows Vista Application.ExecutablePath and non-english characters doesn't works in Vista
Hi experts. I have a Windows Forms application that makes an initial call to Application.ExecutablePath() . It is based in .NET Framework 1.1 and it works in Windows 2000, XP and 2003. It doesn't works in Windows Vista because this function returns strange characters with non-english characters in the path or EXE name (like "c:\Aplicaci o n\Aplicaci o n.exe"), and these characters are replaced by a square character. In the .NET Framework 2.0 I have the same problem. However, if I make a call to Application.StartupPath() , I get the path correctly, but I can't change this call and recompile it in all versions of the application. I think there is a problem with the .NET Framework and Vista itself, so I will appreciate ...Show All
Visual Basic How to change the font of specific items in a ListBox
Hi, Some help please. I have this code to add the font names to a listbox Dim FontCollection As System.Drawing.Text.InstalledFontCollection = New System.Drawing.Text.InstalledFontCollection Dim Font As FontFamily For Each Font In FontCollection.Families ListBox1.Items.Add(Font.Name) Next It adds the font names only. I want to show the style too. How can I do that. Like this: ListBox Items Arial Arial Black Times New Roman Courier New Algerian Broadway getting there...getting there..... try this, replace the code in the DrawItem event: e.D ...Show All
