nglow's Q&A profile
.NET Development Show Recieved Phone Number On PC?
Hello, What i am trying to do is make a program that comunicates with my adsl modem and gets the "line status(actually, only the phone numbers calling)". I mean, if someone is calling my home's phone number, this program should show who is calling(which number is calling). Is it possible in Visual Studio 2005 If yes, how Or should i connect the phone-line to a fax/modem instead of an adsl modem ...Show All
Visual Studio 2008 (Pre-release) Audit Trail with Linq and db.SubmitChanges()
Hi I would like to create a Audit Trail entity in my database. The idea to keep a track of all the inserts, updates and deletes in tables. This table will have columns like Tablename, fieldname, recordid, beforevalue, aftervalue, datechanged, changedby, action(insert,update,delete). I would like this to happen as db.submitchanges is called. Can anyone help me how to get this one working. Pardon me if I am not clear on my requirement. Please ask any question for clarifications. Thanks Anubhav Hi Petar, It helps... thank you! Protected Sub AddLINQBttn_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles AddLINQBttn.Click Dim db As New myDC Dim qry As New mytable With {.col1 = "test", .col2 = "test&q ...Show All
Microsoft ISV Community Center Forums combine 3 combo boxes values into one string
Hi all, I have a table of data which can filter out my desired information after i selected a range of date, for example 1-Jan-2006 to 15-Jan-2006, in a combo box. I can only choose date being stated in the combo box, not much flexibility. Now, i want to change the format of the combo box. Instead of one combo box which show the date, i want three combo boxes which show "Year", "Month" and "Day". I can choose any year, any month and any day i want and it will filter out. I am thinking of a solution by combining the values of the three combo boxes into one string, one line "1-Jan-2006", and start to filtering. Is this the only way to do it or is there any better ways to do this Below is my existing VB ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Include Directories on VISTA write protected
Hi, I have a strange problem here. I can not remove the write protection of the include files of the DX December SDK under VISTA ... is that the expected result or do I anything substantially wrong I know how to remove the read only attribute ... I can repeat this as often as I want they seem to stay write-protected == read-only. Thanks for your help, - Wolfgang i have the same problem i cant write, i can copy files but i cant move them also (obviously) help! thanks ant ...Show All
Visual C++ L"TEXT" macro recognized as const char* in MFC application
Hi All, I have a function X that takes LPCWSTR as it only argument. This X function, called many times by others like this: X(L"This is my text"); Recently, one of my colleages wants to use the function. He created a new MFC dialog base project and start using the X() function, but he gets the compling error: error C2664: 'X' : cannot convert parameter 1 from 'const char [20]' to 'LPCWSTR' What is wrong How come his MFC project recognizes the L macro but does not convert the text to const wchar_t[] Thanks If your program/ function needed to be supported both Unicode and Ansi characters, You could make use of tchar set of function and TCHAR as data type instead ...Show All
Visual Studio 2008 (Pre-release) Install Issue Orcas RC1
I have the following installed .NET Framework 3.0 (RC1) Microsoft Windows Software Development Kit (SDK) for RC1 Visual Studio 2005 But the Orcas RC1 tells me that i'm missing .NET 3.0 Runtime Files which are Installed..So i'm at a loss here,any help will be appreciated...Thxs OS: Windows XP Pro with Media Center 2005 I was using the June Build of Orcas and EID...I got all the Downloads from the links you provided above,I Un Installed Everything that had to do with the previous version...But when i went to install the RC1 it would tell me that the .NEt 3.0 Runtime RC1 was missing,Even thou i had the Sept Build of EID up and running and using the Application... So i ended up Formatt ...Show All
Visual C++ VS2K5 SP1 Beta bugs!!!???
I installed the beta to get around a merge problem with TFS and it worked. However, I create the installer for our product on that machine. When I released daily installer the code started breaking because the actual code was compiled with RTM VS2K5(this is expected) However, our previously released products running on MFC 8.0 all started breaking after installing the daily build. Why would already installed products on a system break if a product installed with the beta MFC merge modules start to break Is this what will happen when the SP ships And more importantly, how do I scrape the unwanted SP1 Beta DLLs from these now "infected" test machines Thanks, Hi, First, we need to understand why applica ...Show All
Windows Forms Displaying Database information in ListView
I created an address like database with first and last names and include a photo location in the database. Now I want to use ListView to display the photo and name of each row(person) in my database, but I don't know how to retrieve a string from a single cell in my database. can anyone help Okay, after entering the code that you provided, this is what I got. What am I doing wrong Me .ListView1.DataBindings.Add(ListView1, Firstdatabasedataset.Tables[ 0 ], FirstName ) ...Show All
.NET Development EBCDIC IBM037 encoding ignores line-feeds???
It seems as though using clsFTP with: Dim b As Encoding = Encoding.GetEncoding( "IBM037" ) doesn't work. It ignores linefeeds and the text doesn't wrap properly. Anyone else heard of this Any solution Thanks. Sorry, the last time I dealt with EBCDIC was 25 years ago. I found that article that pretty much suggests why you would have a problem with line breaks. From there, you're pretty much on your own, hope you can work it out! ...Show All
Visual Studio 2008 (Pre-release) WPF Application Caching
Hi, I am looking for a way to cache data in a WPF application. The process works like this: I make a call to a web service, and retrieve customer information. I want to be able to store this information at the application level so that the user has the option of retrieving it from the cache, rather than having to call the web service each time. Before calling the web service, I want to be able to check the cache to see if the information exists. If it does, the information is retrieved from the cache. If it doesn't, then the new infomation is added. I was thinking of doing this using a Dictionary or Hashtable, but I'm not sure how to make this object available at the application scope. Is this a good approach, or is there a ...Show All
Visual C++ fatal error C1083 in VS C++ 2005 express
Hi, I have previously created new windows console application with a precompiled header. At this point, I do not change any of the default settings in the project. I insert the following set of header files in stdafx.h #include <cmath> #include <fstream> #include <string> #include <conio.h> #include <iostream> #include <iomanip> using namespace std; However, I am now getting the following error message when I try to compile: c:\program files\microsoft visual studio 8\vc\include\cstdlib(13) : fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory I have looked in the directory and verified that the file exists and is located in the "..\include\" folder.I have alos che ...Show All
Visual Studio Xsd To DslDefinition.dsl transformation
Hi everybody, I'm wondering does anybody have XSLT which convert a XSD’s metamodel to a DSL’s metamodel I have some XSD’s metamodels which I really want to have as DSL’s. I don't really need designer for that DSL, I just need possibility to load model and use all features of it like: transactions, navigation, search and so on. I have created some simple and specific for me XSLT, but maybe somebody has more generic one I will be surprised if MS guys do not have one Evgeny. Yes, I totally agree - folks will have many XSDs, some of which might make interesting starting points for DSL models. I was just poitning out that internally we've tended to have DSL models around maybe a lot longer than our ...Show All
Visual Studio Express Editions Openfiledialog
Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.MyDocuments OpenFileDialog.Filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*" If (OpenFileDialog.ShowDialog( Me ) = System.Windows.Forms.DialogResult.OK) Then Dim FileName As String = OpenFileDialog.FileName End If But how can i change language dialog. Hi If you want to open files try this code Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using dialog As OpenFileDialog = New OpenFileDialog() dialog.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.Desktop ...Show All
.NET Development How to Save data from XML File to table
Hello everyone.. I'm trying to convert table to XML file.. My code like this.. n it's success!!! Dim ds As New DataSet Dim cn As New SqlConnection("Initial Catalog=PDA;Data Source=Maizatulakmal;Integrated Security=True;") Dim da As New SqlDataAdapter("select * from users", cn) da.Fill(ds, "users") ds.WriteXml("users.xml") Now I want to read the XML file back and save it to table.. Dim ds As New DataSet Dim filePath As String filePath = "users.xml" ds.ReadXml(filePath) What I'm suppose to do after this code to save the data from XML to my existing table Thanksss!! a lot okay here is the code ...Show All
Commerce Server CatalogSiteMap
Probably an easy question, but I've got a piece of code that worked fine in the StarterSite CTP, but isn't working with the final StarterSite. <asp:SiteMapDataSource runat="server" ID="RelativeSiteMapDataSource" StartFromCurrentNode="false" StartingNodeUrl="~/Browse.aspx Catalog=E-Store" SiteMapProvider="CatalogSiteMap" /> <asp:Menu runat="server" ID="FullCategoryNavigator" Orientation="Vertical" DataSourceID="RelativeSiteMapDataSource" MaximumDynamicDisplayLevels="0" StaticDisplayLevels="1" /> I'm using the same web.sitemap. On the CTP site, it would display every root category in the E-Store. On the final Sta ...Show All
