Click here to Skip to main content
15,921,643 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Jeff Varszegi20-Nov-03 14:24
professionalJeff Varszegi20-Nov-03 14:24 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
eggie520-Nov-03 16:14
eggie520-Nov-03 16:14 
GeneralRe: Cuz he's a C# wizard, has to be a twist... Pin
Nick Parker23-Nov-03 6:22
protectorNick Parker23-Nov-03 6:22 
GeneralClass not registered error Pin
Rekha desai20-Nov-03 5:12
sussRekha desai20-Nov-03 5:12 
GeneralRe: Class not registered error Pin
Heath Stewart20-Nov-03 7:20
protectorHeath Stewart20-Nov-03 7:20 
GeneralSuspend Windows... Pin
nzwy1p20-Nov-03 0:28
nzwy1p20-Nov-03 0:28 
GeneralRe: Suspend Windows... Pin
Heath Stewart20-Nov-03 3:17
protectorHeath Stewart20-Nov-03 3:17 
GeneralTimer trouble -timer "dies" Pin
EnkelIk19-Nov-03 21:09
EnkelIk19-Nov-03 21:09 
GeneralRe: Timer trouble -timer "dies" Pin
mhmoud rawas20-Nov-03 0:21
mhmoud rawas20-Nov-03 0:21 
GeneralRe: Timer trouble -timer "dies" Pin
EnkelIk24-Nov-03 21:54
EnkelIk24-Nov-03 21:54 
GeneralRe: Timer trouble -timer "dies" Pin
Heath Stewart20-Nov-03 3:13
protectorHeath Stewart20-Nov-03 3:13 
GeneralRe: Timer trouble -timer "dies" Pin
Xiangyang Liu 刘向阳23-Nov-03 9:09
Xiangyang Liu 刘向阳23-Nov-03 9:09 
GeneralRe: Timer trouble -timer "dies" Pin
Heath Stewart24-Nov-03 4:33
protectorHeath Stewart24-Nov-03 4:33 
GeneralRe: Timer trouble -timer "dies" Pin
Xiangyang Liu 刘向阳24-Nov-03 14:28
Xiangyang Liu 刘向阳24-Nov-03 14:28 
GeneralRe: Timer trouble -timer "dies" Pin
EnkelIk24-Nov-03 22:02
EnkelIk24-Nov-03 22:02 
GeneralProblem while sending mail from windows service using MSMAPI Pin
alexander13219-Nov-03 20:35
alexander13219-Nov-03 20:35 
GeneralRe: Problem while sending mail from windows service using MSMAPI Pin
Heath Stewart20-Nov-03 3:01
protectorHeath Stewart20-Nov-03 3:01 
Ack, VB.NET! You did notice this was the C# forum, right? Fortunately for you, VB.NET, C#, and all other language that target the CLR use the same BCL and all assemblies the same way, too (since they're all compiled down to IL)...and some actually understand / remember that! Smile | :)

There doesn't appear to be anything wrong with your code (other than the obvious - it's VB.NET Poke tongue | ;-P ). I don't know anything about MSMAPI (is this a Microsoft wrapper assembly, or something else you found online), but I do know that with functions like MAPILogon you either have to provide a profile name or specify the MAPI_LOGON_UI flag to have the function prompt the user for a profile to pick. I see nothing about you setting up a profile. This is predicated on different assumptions, though, like that this hasn't already been done under the covers for you already.

About the only thing I can tell you is to read the documentation for MSMAPI and take a look at some of the relevant MAPI functions and interfaces, like MAPILogon. Perhaps more information about that error code will be provided (of course, you may have to search the C/C++ header files for the preproc definition to which that error code is defined).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Problem while sending mail from windows service using MSMAPI Pin
alexander13220-Nov-03 3:29
alexander13220-Nov-03 3:29 
GeneralRe: Problem while sending mail from windows service using MSMAPI Pin
Heath Stewart20-Nov-03 3:42
protectorHeath Stewart20-Nov-03 3:42 
GeneralRe: Problem while sending mail from windows service using MSMAPI Pin
Xiangyang Liu 刘向阳23-Nov-03 9:27
Xiangyang Liu 刘向阳23-Nov-03 9:27 
GeneralHelp Displaying Unicode String Pin
WorldNomad19-Nov-03 19:19
WorldNomad19-Nov-03 19:19 
GeneralRe: Help Displaying Unicode String Pin
Heath Stewart20-Nov-03 2:51
protectorHeath Stewart20-Nov-03 2:51 
GeneralRe: Help Displaying Unicode String Pin
WorldNomad20-Nov-03 16:41
WorldNomad20-Nov-03 16:41 
GeneralMake control draw on top of other forms Pin
JacksonBrown196019-Nov-03 12:37
JacksonBrown196019-Nov-03 12:37 
GeneralRe: Make control draw on top of other forms Pin
Heath Stewart20-Nov-03 3:55
protectorHeath Stewart20-Nov-03 3:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.