Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 5th, 2006, 04:03 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to rudaba
Default Help through solving problem

Hi everybody,
I want to send emails with more than one *.xls attachment by using vb6 and outlook 2000.

I wrote some code. Part of my code is given bellow
'**************
Private Sub Command1_Click()
Dim gCdoSession As MAPI.Session
Dim CdoFolder As MAPI.Folder
Dim CdoMessages As MAPI.Messages
Dim CdoMessage As MAPI.Message
Dim CdoRecipients As MAPI.Recipients
Dim CdoRecipient As MAPI.Recipient
' Establish a MAPI Session
Set gCdoSession = New MAPI.Session
gCdoSession.Logon
' We must have a folderin whicj to create the outgong messages
Set CdoFolder = gCdoSession.Outbox
End Sub
'****************

The problem is:
During this process visual basic compiuler gives an error message "run-time error '429' with a messsage ActiveX component cannot create object' ?

Thanks,
I appreciate any help
Rudaba
 
Old January 5th, 2006, 06:45 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

Rudaba, I think you should post this query to one of the Visual Basic rooms here.

Regards
Ankur Verma





Similar Threads
Thread Thread Starter Forum Replies Last Post
plz help me in solving problems. naveed77 Beginning VB 6 4 July 5th, 2006 08:31 PM
beginner...help solving this error rehman_reck ASP.NET 1.0 and 1.1 Basics 3 December 22nd, 2004 10:49 AM
Help solving elusive key violation roniestein Access 4 October 23rd, 2003 03:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.