doener's Q&A profile
.NET Development how to using visual studio 2005 (by C#) to send Mail please?
I used to learn Visual studio 2003,I've imported namespace system.Web.Mail to finished this work (sending e-mail) But now I'm just new in VS2005 and find out I've no idea how to creat a progrm which can help user to receive an e-mail from me when they forget their login password (user will enter their accout and the registered e-mail so the password reminder mail will sent to their e-mail address. could anyone their teach Me how to finish this work step by step thank you very much Hi~ SvenC and ahmedilyas thanks you all , your suggestion has been very useful. ...Show All
SQL Server Where the hell is LIMIT like in MySQL?
If you ask ANY developer that has worked with both MySQL and MS SQL, every single one of them will say why hasn't microsoft given MS SQL the capability to do LIMITS as such in MySQL. I'm not impressed by any of the stupid work arounds either... they run heavy and crapout under a large record load. Of course there are several other attributes that MS SQL has that MySQL can't offer, but again, MySQL is FREE and PAID tools should have all that a free competitor has plus some. Is there any planned action to remedy this absurd oversight you have to roll your own sproc logic to do that in SQL Server. That would be a very nice to have feature for future releases. MySQL definately has some nice advantages. ...Show All
SQL Server sys.sp_testlinkedserver
According to BOL extended stored procedure sys.sp_testlinkedserver returns 0 on successfully connecting to linked server and 1 when it fails. But I tried this Created a linked server to default instance of 2000 called TEST and used following script to test the extended stored procedure and instead of printing my PRINT statement it generated error -- CHECK LINKED SERVER CONNECTION DECLARE @ServerName sysname DECLARE @a int SET @ServerName = 'TEST' IF EXISTS( SELECT 1 FROM master . dbo . sysservers WHERE srvname LIKE @ServerName ) BEGIN EXEC @a = sys.sp_testlinkedserver @servername = @ServerName IF @a = 0 print 'LINKED SERVER ''' + ISNULL ( @ServerName , '' ) + ''' IS CONNECTED.' ...Show All
Smart Device Development Supplying name for incoming call
Hi, when a call comes in, the device's phone application will - somehow - try to display the name of the caller by using the addressbook. How could I add my application as a primary resource for that, i.e. how can I supply the caller's name for an incoming call (WM2003/WM5 both PPC and SmartPhone) I've been looking at the RTC documentation, but it is unclear whether this will work. Thanks in advance for any pointers, Daniel Michael, thanks for your help. I think I will have to evaluate which of the two options is better. Not sure about rewriting the phone app, I am concerned I would have to make a lot of changes for new devices or if a user misses a special functionality. Daniel ...Show All
Smart Device Development Embedded Visual C++ using Visual Studio 2005 running on VISTA RC1: Linker errors
I'm using Visual Studio 2005 running on VISTA RC1 to create a simple Smart Device application. *using Embedded Visual C++(Windows CE and Platform Builder are both installed) *to access the RIL(Radio Interface Layer) of WinCE. The target device is a PPC phone (HTC with an OMAP ARM processor). I have an eVC++ source program, the RIL.h and RilClass.h headers, and Ril.lib(to import the ril functions from the ril.dll) When I 'build solution' I'm getting a ton of unresolved external symbols. I suspect that I have not sucessfully included the ril.lib into the build process, and that that is causing the unresolved externs: 'error LNK2019' and 'error LNK2001'. How do I specify that the .lib is to be used when linking my eVc++ pr ...Show All
Visual Basic printing
i have a form with a header page and one or more information pages. I want to print it in VB ...my problem is that setting "ev.hasmorepages=true" doesnt seem to fire off the event again... Protected Sub DoPrinting( ByVal sender As Object , ByVal ev As System.Drawing.Printing.PrintPageEventArgs) If FirstPage Then PrintMainHeader(ev) 'print the first page / header FirstPage = False Else : PrintNewPageHeader(ev) ' subsequently print the information page End If If Not (AlreadyPrinting) Then PrintMyForm(ev) ' being printing on the page End Sub 'ThePrintDocument_PrintPage Private Sub PrintMyForm( ByVal eventE) Dim Tabs As Control For Each Tabs In Me ...Show All
SQL Server I can't install SQL Server 2005 Developer Edition
I copied the error I received. SQL Server Setup cannot install files to the compressed or encrypted folder: C:\Program Files\Microsoft SQL Server\. To continue, make sure that your installation directories are not compressed or encrypted, or specify a different directory, and then run SQL Server Setup again. C:\Program Files\Microsoft SQL Server\ is not an compressed or encrypted folder. I don't know what it is talking about. I just installed a fresh new copy of Windows XP Professional with Service Pack 2. There are two things to check: 1) Open up Windows Explorer, right-click on the main drive (c:) and select properties. On the General tab near the bottom you'll see a check box l ...Show All
SQL Server Access SQL Conversion Issues?
Hi there, apologies if i have entered this into the wrong forum. I am currently building an application using microsoft access and coding in VBA (what i can!) When i have got it working as i like after user testing i would like to create an MDE file to distribute to users and i would like to convert the access database held on a file server to a SQL server but have no experience of doing this. In what order would i do this and would i suffer a loss of functionality in changing from access to SQL i.e. would some of the VBA code not work in SQL Thanks for your time, Rhys. Yes, you are right, if you do not use the GUI "only", you *could* get into problems after migrating. If you alrea ...Show All
Visual Studio Express Editions VB Express (INKEY$) function.
I have just finished writing my first VB Express program (Sub Search). I often found myself wanting to do an INKEY$ function as I used to do in Quick Basic. I want the program to pause, and wait for me to hit a keyboard key... then to analyze that keystroke, and branch-off to various points. I have seen references to such a capability (keydown & others) but have not been able to decode the directions to the point that I can apply it to my program. The point is, VB.NET is very versatile, and the 2005 edition includes enhanced Console features. I teach a college course in programming for beginners and we are currently using VB.NET for Console applications. The GUI gets in the way of programming concepts. If a beginner can ...Show All
SharePoint Products and Technologies SharePoint Services 3.0 stops working after Windows 2003 Server 'dcpromo'
Dear sirs, My SharePoint Services 3.0 was working fine on Windows 2003 Server R2 Standard. It is a standalone machine not connected to the network. But SharePoint stops working after I installed Active Directory on this same machine. I did that executing dcpromo tool. Please, can you help me Thank you very much, Marcos Tito. Marcos, You will require creating domain accounts and modifying the accounts that SharePoint runs as. Typically best practice is not to run a web application of any sort on the domain controller as you are opening a security hole. Now, in your case, I would backup my content databases, create two domain accounts (one for core service account and one for search). ...Show All
Visual Studio Express Editions Win32App Wizard can be edited--is this legal?
When I run my VC++ Express 2005 Create Project wizard and choose to create a win32 console application, it has four options in the Win 32 Application Wizard: Windows application, Console application, DLL, and Static library. Two of these are normally disabled: windows application and DLL. Something I found online said that you can change the html wizard file and comment out the lines that disable these options--I tried it and it works, but I changed it back because the lines to comment out are within an if statement that checks to see if it is the Express version, and if so, then it disables those two options. Is changing the wizard to enable the windows application and DLL options legal If not, then why is it so easy to do so Also, if i ...Show All
Windows Forms Excel Automation from within Forms application deployed with ClickOnce
I'm just now "finding my feet" with Windows forms application development and I'm wondering if a specific task is possible within the Forms application architecture. I would like to control Excel for custom purposes from within a Forms application that is deployed using ClickOnce. I've searched and found some posts about exporting data to Excel through a database interface, but this is inadequate for what I would like to do. I want to use Excel for rich presentation (perhaps even a chart) and want to allow users to cut-and-paste into Excel, and save the resutls. My needs suggest that I would want to use the Excel Automation Object model but I'm stumbling in the dark about whether this is possible using a Windows forms ap ...Show All
Windows Forms ClickOnce update to deployment manifest
Hi all, I have a Smart Client app that uses the Composite UI block. There are multiple "modules" that the application uses that are not directly referenced by the main .exe project. As a result, the publishing process does not recognize these as dependencies. Since I cannot directly manage (i.e. add) the dependencies in the project properties, it appears that I have to create a post build event or work through the "AfterBuild" and "AfterPublish" targets to update the manifests once accurate dependency list is present in the publishing directory -- they will be copied after they are built. I have tried a couple of permutations of the following code by either calling targets out of Microsoft.Common.Targets or ...Show All
Smart Device Development Shift F5: need to dispose of resource from VS stop. Where?
I've overridden form's OnClosing to dispose of barcode scanner object .. and it works fine when I close my form with the X button on the device.. however if I hit shift F5 (stop button) in VS2005 the application won't close and crashes the device because I haven't disposed of the scanner object.. Anyway I've tried disposing of it in dispose and other ideas but I cannot get it to call any code to dispose of my object when I end the program through visual studio (which crashes my device and is annoying).. how can I make it run this code when I click stop or press shift + F5 in visual studio. // code to dispose of Symbol's scanner object... Where to put it so Shift f5 // and form X button calls this What happens when I sto ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PC deployment in a single download. (Minus framework download)
I have not seen this posted since the 1.0 release. I really want to be able to get games into peoples hands with the least number of steps.. Downloading the framework is one more step I do not wish the less technically inclined to have to deal with. Has there been any more information released on the future prospects of being (PC SIDE) able to have a deployable game that does not require the download of external libraries ( The XNA framework ) Thank you and sorry if I missed a post on this. Easiest is to use the re-distributable installers for .NET 2.0 and XNA and DirectX, and put those installers into your game installer. Then chain out to those installers, in "/silent" mode, to make sure the pre-r ...Show All
