krackedude's Q&A profile
.NET Development Sending mails on a localhost IIS SMTP Server
Hi, I wrote a code to send mail and I want to test on my IIS server. I tried to set up my IIS SMTP server then I used Outlook to check my email but I had an exception Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'localhost', Server: 'localhost', Protocol: POP3, Port: 110, Secure(SSL): No, Error Number: 0x800CCC0F is there any tutorial for setting up IIS and Outlook to send and receive mails on the localhost server I saw in many WebCasts doing it but they didnt show how to set up the servers. Thanks in advance. Unfortunately I cannot give much in the way o ...Show All
Visual C++ Added an Event like OnTimer in VC++2005
Hello, What are the steps to add an event like the OnTimer function to cpp program Thanks in advance. Ok, I found the answer: Right click on the Class and goto properties and then to events and add the desired handler. ...Show All
SQL Server How to send a mail through a container loop?
hi everyone, I've created a Send Mail task which works properly and now I'd like to send that email n times. How do I such thing. I moved that task inside Foreach loop container and then I choosen "Foreach From Variable Enumerator" and then I've created a Int32 variable. And now, I don't know how to tell that increments that variable TIA, Use a For Loop container and not a ForEach container. Set the InitExpression to @[User::Counter]=0, the EvalExpression to @[User::Counter]<n, and the AssignExpression to @[User::Counter]=@[User::Counter] + 1. HTH, ...Show All
Windows Forms Making a scrollable panel scroll with mousewheel just by hovering mouse
Hi, I have a particular problem with a possible solution and I am interested in hearing peoples opinions if it is the right way to go about it (or not ) Some applications I have come across, such as Firefox, will allow the user to scroll the document window just by hovering the mouse over the display area and using the mouse wheel. You don't have to focus / select the display area first. With Firefox, the address bar can have the focus and the keyboard input but you can still scroll the document. Contrasting with IE and Visual Studio, you have to click into the document area before it responds to mouse wheel messages. In my winforms app, I have a tab control with several scrollable tabpages as well as scrollable panels in ...Show All
SQL Server how to rename files before send files?
I'm using script task to rename files inside foreach loop files,code like shown below Dim file As New System.IO.FileInfo(CStr(Dts.Variables("User::FileName").Value)) dim newname as string = Split(file.Name, "_")(0) & ".jpg" Dts.Variables("User::outputname").Value = file.DirectoryName & "\" & newname Then,i use ftp task to send files,but prompt "the variables User::outputname doesn't contains file path(s)" I tried to use file system task to perform that,but failed either Rename file operation in file system only can rename a file in a specified location,who can help me TIA Have you looked at what outputname do ...Show All
SQL Server Install and Uninstall problem
Mike, I am having the same issue, but a slightly different situation. I installed sql express...then thought I should uninstall and install sql express with advanced services...got the sa login error described in this thread but with error number 29521. the summary log says this...should I also send you the error log referenced in this log Microsoft SQL Server 2005 9.00.2047.00 ============================== OS Version : Microsoft Windows XP Professional Service Pack 2 (Build 2600) Time : Fri Jan 05 09:59:01 2007 Machine : myname Product : Microsoft SQL Server Setup Support Files (English) Product Version : 9.00.2047.00 Install : Successful Log File : C:\Program Files\Microsoft SQL Server\Setup Bootstr ...Show All
Visual Basic saving datatable to a new ms access table
hi,, i have a form that performs the function of doing customers search the dataset reads the data from ms access and stores it in its datatable with the data adapter now i want to copy the data which data adapter is filling in the dataset to a new table in the same database i am unable to do herez the codes Me .OleDbSelectCommand1.CommandText = "(SELECT * FROM Customers WHERE company LIKE 'A%')" Me .OleDbSelectCommand1.Connection = Me .OleDbConnection1 Me .OleDbDataAdapter4.SelectCommand = Me .OleDbSelectCommand4 OleDbDataAdapter4.Fill( Me .Testing1.temp) OleDbDataAdapter4.update( Me .Testing1.temp) i need to solve this prob urgently The link I prove ...Show All
Windows Search Technologies Protocol Handler: Open items from WDS Search Deskbar
Hello, I have a working WDS PH prototype. My SearchProtocol Class implements IShellFolder and IPersistFolder. Thus the WDS explorer window displayes my own icon (IExtractIcon) and i can open items (IContextMenu). But how can I interfere in the WDS deskbar quick results It seams that the IShellFolder.GetUIObjectOf is not called here. How does it work Thank for any help! Martin Ah, I thought that was probably the case. Unfortunately, WDS doesn't currently support opening items via 3rd party protocol handlers from the quick search window generated by the toolbar. We've run into this problem with a few of our own protocol handlers and are hoping to resolve it with a future release. For now, items ...Show All
Visual Basic Does a method for deleting Bytes exist? (System.IO, FileStream)
I learned very much thanks to you about FileStream Dim Fs As New FileStream(File, FileMode.Open, FileAccess.ReadWrite) ' Now i move the pointer to Offset &HA (10 in decimal) Fs.Seek(&HA, IO.SeekOrigin.Begin) ' Now i should write a byte Fs.WriteByte(Convert.ToByte(10)) ' Now i close the file stream Fs.Close() But if i want to delete a byte how can i do I think to use a Cicle For and using ReadByte and write all bytes except the Byte that i want to delete, but I think there is a method for deleting byte into file itself without creating another file and use a Cicle For. Ohhhh Sj.... Of course this can be done. For example if you have 450 bytes... write 450 files!! ...Show All
SQL Server Is there a way to add a Database Property?
I got to thinking how nice it would be if there was a way to add a new Database Property that was just a simple text field with a 'friendly' description of the database. Is there any way to add this Hi Sandy, Yes, you certainly can. Have a look for "Extended properties" in BOL. Otherwise, you can add extended properties via SSMS under database properties. Extended properties can also be bound to individual columns or tables. So, to add a property to YourDatabase you would: USE YourDatabase GO EXEC sp_addextendedproperty @name = 'DBDescription', @value = 'DescriptionHere' Cheers, Rob ...Show All
Windows Forms I use the print class of FotoVision to make a image print program, why doesn't it work?
The following code is from FotoVision, I make a image print program using the class, but it doesn't work. Only after I have installed the FotoVision (The name of setup program is " FotoVision Desktop.msi ") my program just work. I think that FotoVision have packaged some other components such as dll or registered photowiz.dll in its setup program, but I'm not sure. If so, how can I register photowiz.dll with C# Could you help me, thanks! // Uses the XP Photo Printing Wizard to print one or more photos. // The implementation of the photo wizard is in photowiz.dll but the // interface is not exposed. Instead, Microsoft provides the Windows // Image Acquisition Library (WIA). // // Use late bind ...Show All
Visual C# COMException: Cannot find the file specified?
I haven't touched or ran the program i've been working on for a few months, and all of a sudden I'm getting a strange error that I cannot figure out. Perhaps you .net geniuses out there have an idea ;). Here is the error: System.Runtime.InteropServices.COMException was unhandled Message="The system cannot find the file specified.\r" Source="Analysis Server" ErrorCode=-2147467259 StackTrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous) at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args) at Squirrel.ReportsViewer.setStopReport(DataSet ds) in C:\Documents and Settings\Mike\My Documents\Visual Studio 2005\Projects\Squirrel\Squirrel\ReportsViewer.cs ...Show All
SQL Server Datafields in report header
Hi. I want some information stored in the database to be shown on the top of each page in my report. But in the report designer I get an error message if I try to drop a table in the header, and if I try to assign the value of a textbox in the header to e.g. "First(Fields!sometable.Value)", I get a runtime-error in the preview that says "... Fields cannot be used in page headers or footers". How can I do this Regards, Tomsi I have a few clients who love SRS but almost dropped it because of this. We have found ways around it by using a table and putting a subreports into table headers so we could control if they displayed on first page only or all pages or not at all. Or for simpler s ...Show All
Visual Studio How to display Barcode in crystal reports.
I have to generate a barcode for a set of characters and I need to display it in crystal report. How to do this Murali, I just read a similar thread on another forum. The person responding there suggested a number of third party resources for barcoding. I've listed the links below (please note, I have not used any of these and I can't recomend anything one way or another). http://www.idautomation.com/fonts/tools/crystal/ http://www.morovia.com/font/support/crurfl.asp http://www.morovia.com/font/support/crystal-reports-ufl-pdf417.asp http://www.neodynamic.com/nd/search.aspx s=crystal http://www.azalea.com/CrystalReports/ http://www.bizfonts.com/crystal/ http://www.ciax. ...Show All
Visual Basic How to retrive from a databbase using vb.net
i want to make a search box and when the user for something i want it to search it the databse and show the resultat. can someone help me how we do this with the code. tanks Check out the SQL Server start kits. The kits are fully functional applications once built and are targetted to help people learn via example. Here is the link to the Starter Kits . Choose the one which best fits your needs. Good luck. ...Show All
