Migrating MSMAPI from VB6 to VS2017

  • Thread starter Thread starter Frankie_Toledo
  • Start date Start date
F

Frankie_Toledo

Guest
Hi, i am making a migration and cannot solve this problem.

Error BC30002 No está definido el tipo 'MSMAPI.MAPISession'. Generales D:\NET\Generales\Generales\Util\Funciones\FuncionesMail.vb
Error BC30002 No está definido el tipo 'MSMAPI.MAPIMessages'. Generales D:\NET\Generales\Generales\Util\Funciones\FuncionesMail.vb
Error BC30451 'MSMAPI' no está declarado. Puede que sea inaccesible debido a su nivel de protección. Generales D:\NET\Generales\Generales\Util\Funciones\FuncionesMail.vb


i try donwloading the mapiheaders and puting on various folders and not have success.

Example code bellow

Dim objMensaje As New MSMAPI.MAPIMessages
With objMensaje
.SessionID = objSesion.SessionID
.Compose()
.MsgSubject = pAsunto
.MsgNoteText = pMensaje
.RecipIndex = 0
.RecipType = MSMAPI.RecipTypeConstants.mapToList
.RecipAddress = pDestinatario

Continue reading...
 
Back
Top