Stuck29430's Q&A profile
Visual Basic Help!!! Send Email with Authentication
Hi. I need help!!! I'm trying to send a email with smpt basic authentication (username and password) with Visual Basic 2005... but...!i can't! Can anyone please help me I need to use ICredentialsByHost Thanks a lot and sorry if my english is not very good! Maybe this will help someone. I had the same problem with Kerio mail server and this fixed it. It was the UseDefaultCredentials property that fixed it for me. mySMTP.UseDefaultCredentials = False mySMTP.Credentials = New Net.NetworkCredential( "username" , "password" ) ...Show All
Visual C++ .NET Exponential function "WITHOUT" using MATH class methods
I am trying to do a simple exponential equation without using the math class. For example, IntegerPower(3,4) = 3*3*3*3 I need to use a while or for to control the calculations. I am not swift in .NET, can someone help I need to read two inputs from the user (base and exponent). The calculate. Easy enough right NOT FOR ME!! I have trouble with an infinite loop. (I tried to decrement the count for exponent) Here is what I have: int base, exponent,number; Console::WriteLine(S"Enter Base "); base = Int32::Parse(Console::ReadLine()); Console::WriteLine(S"Enter Exponent "); exponent = Int32::Parse(Console::ReadLine()); ...Show All
SQL Server Logging from a custom source adapter
I'm having alot of trouble figuring out the proper way to log from inside my custom source adapter. I couldn't find my useful information in MSDN, it mostly applies to logging from inside a script task. I'd like to log my messages along with all the other SSIS package log entries, which I have going to the dts log table. I'm assuming I should be using some functionality from Microsoft.SqlServer.Dts.RunTime, probably the LogProvider. Can anyone advise Try ComponentMetadata.FireError() ComponentMetadata.FireInformation() ComponentMetadata.FireWarning() etc... -Jamie ...Show All
SQL Server Batch invocation of Drillthrough action
Does anyone happen to have an example of a batch invocation of a drillthrough action Essentially, what I'd like the ability to do is use the results of the drillthrough to feed into another process (i.e., to use as input to an SSIS package or load into a relational table.) However, I've found no examples of what the action settings would need to be in the Application field, for example. Maybe drillthrough isn't the proper action to define it (although it would be the easiest.) Maybe a regular action returning a dataset or rowset Any help or idea is a appreciated. JGP, you're situation is another aspect of ...Show All
Visual C# Execute Specified Form
Hi i have easy question if my application has many Form as: Form1 and Form2 and Form 3 How i can appear Form1 when i execute the application and when i execute it again i want to appear Form2 Thank you ...Show All
SQL Server UPDATE statement via stored procedure
Hi, I have a question regarding updating a record with SQL 2000 or SQL 2005. Imagine the following scenario: - A database table "Customer" with the following fields: id, firstname, lastname - A stored procedure : ..... @Id uniqueidentifier, @LastName varchar(20), @FirstName varchar(20) UPDATE Customer SET ID=@Id , firstname=@FirstName , lastname=@LastName WHERE ID=@Id .... Imagine that in the parameters passed in only the LastName has truely changed, is SQL Server intelligent enough to notice that only that field has changed, so that it would internally only execute UPDATE Customer SET lastnam ...Show All
Visual Studio Tools for Office Made a mistake...unable to uninstall!
When I was trying to find a right SolutionCodeGroupName, I forgot to change it into the right UninstallCutomActionData... So, I've been able to install it (I found the error, there was a space missing)...but I cannot uninstall it, even using the Add/Remove program of the Control Panel... What can I do I tried however to develop it again, using another name...it gets installed, but it gets an error on runtime so the AddIn isn't loaded! But, when I tested the adding using VS it worked perfectly... What can I do in order to find why it doesn't get loaded Bye LastHope Yes, it did help indeed ...but I'm forced now to open a new topic Stil ...Show All
SQL Server All possible combination in a where condition
Dear all, In the dataset of a report in the Reporting Services 2000, I need to write an SQL statment with a Where condition which makes all possible combination of 10 conditions. Could that be done by any way except by ORing and ANDing all the conditions For example, If I have three conditions, A, B, and C, I need all possible combinations in a WHERE condition as follows SELECT * FROM table WHERE A = @A OR B = @B OR C = @C OR A = @A and B = @B OR A = @A and C = @C OR B = @B and C = @C OR A = @A and B = @B and C = @C Note: @A, @B, @C are Report parameters I need to do the same with 10 conditions, I think it's too much to do it that way. ...Show All
Visual C++ How to Copy form CDC dcMem1 to CDC dcMem2?
Hi! I defined a public CDC member(dcMem1) and I Have 2 Function that must used this member.but when I compiled show this error : Debug Assertion Failed! what should I do I think that must to define another member(dcMem2) and Copy from dcMem1 to dcMem2! is this allRight (maybe I'm stupid) I have no problem now! that was very simple(I was so Stupid!!!!!) in my print's function.. void CDatabaseDisplay::OnPrcurpic() { CPaintDC dc(this); memDC.CreateCompatibleDC(&dc); oldBitmap=(CBitmap*)memDC.SelectObject(& m_bmpBitmap ); dc.BitBlt(0,0,myRect.Width(),bm.bmHeight,&memDC, b ...Show All
Microsoft ISV Community Center Forums How do i use an addin in WORD?
Hi all, i wrote few macros in WORD and put it in a module. I want users to be able to install and uninstall it to their NORMAL.DOT Template. i saved the module in a special template. the module include a commandbar with 2 butoons, which execute macros when are pressed. How do i add in the module Pls advise S Hi Shay, Here's some info from our support engineer: I am sorry for the delay response. Base on my understanding, our partner wants to add buttons onto Word toolbar by VBA. Here’s my update regarding the partner’s issue. 1. Please ask our buddy refer to f ...Show All
.NET Development vs2005 Professional and Web Applications
I just installed VS2005 Pro from MSDN and it appears I can't create a web application. It is not an option. IIS is running on my web server (a Win 2003 box). Did I miss a step Thanks I had the same problem myself when I first installed VS 2005. I thought I screwed up the installation somehow =) ...Show All
Visual Studio 2008 (Pre-release) An Existing Connection Was Forceably Closed by the Remote Host
I've just gotten WCF to begin working. I have about 15-20 different services - all of these were previously running as web services without a problem and I've just finished converting them all to run under WCF. All of the services except one are running fine under WCF. The one that is not running is giving me an error that says: System.ServiceModel.Communications Exception: An error occurred while receiving the HTTP response to 'http://....' Unable to read data from the transport connection. An existing connection was forceably closed by the remote host. All of the other 15-20 services are working without error and all use e ...Show All
Visual C++ Setting up VC++ 2005 express beta 2 to compile win32 dll's.
How is this done In Beta1 there was a possibility to change a win32 console application into DLL or GUI application in the project wizard, but those radio bottons are grayed out in Beta2. How do I set the linker options to do this Could I reuse or download new project templates, and if Yes how are they installed Best regards. > How do I set the linker options to do this In the project properties dialog, select the 'General' tab in 'Configuration Properties' and set 'Configuration Type' to 'Dynamic Library (.dll)' instead of 'Application (.exe)'. Thanks, Tarek ...Show All
Visual FoxPro VFP and SourceSafe 2005?
I haven't tried it yet but does VFP's VSS integration "talk" to VSS 2005 ok (at least as well as 6.0d did ) Also, how well does the conversion from 6.0d to 2005 on the server side go Yes, it does. You can also use VFP with Team Foundation Server using the recently released MSCII provider. You can download the beta here: http://www.microsoft.com/downloads/details.aspx FamilyID=87e1ffbd-a484-4c3a-8776-d560ab1e6198&DisplayLang=en ...Show All
Visual Basic Tabbed Browsing - favicon's, link contextmenu's, copy & paste
Hi everybody, Question #1: I have struck another problem in my tabbed browsing adventures and now need to develop a way to get the icon that appears in IE (siteroot/favicon.ico) and add it to an image list. I looked in the webbrowser namespace but could only find WebBrowser1.Document.Images(index). Would the favicon be loocated there or would i need to download the favicon from the website first Question #2: When you right click in IE the contextmenu is different depending where you click. I have a contextmenu ready but i dont know how to make it appear ONLY when links a right clicked or text is selected as i need to ma ...Show All
