Click here to Skip to main content
15,896,329 members
Home / Discussions / C#
   

C#

 
GeneralMicrosoft Exchange programming Pin
Ola Carlsson2-Oct-02 3:43
Ola Carlsson2-Oct-02 3:43 
GeneralRe: Microsoft Exchange programming Pin
Michael P Butler2-Oct-02 4:00
Michael P Butler2-Oct-02 4:00 
GeneralRe: Microsoft Exchange programming Pin
Stephane Rodriguez.2-Oct-02 4:18
Stephane Rodriguez.2-Oct-02 4:18 
GeneralCalling COM Object in C# Pin
RAVI H R1-Oct-02 20:06
RAVI H R1-Oct-02 20:06 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.1-Oct-02 20:44
Stephane Rodriguez.1-Oct-02 20:44 
GeneralRe: Calling COM Object in C# Pin
RAVI H R1-Oct-02 23:05
RAVI H R1-Oct-02 23:05 
GeneralRe: Calling COM Object in C# Pin
Stephane Rodriguez.1-Oct-02 23:41
Stephane Rodriguez.1-Oct-02 23:41 
GeneralRe: Calling COM Object in C# Pin
RAVI H R2-Oct-02 0:29
RAVI H R2-Oct-02 0:29 
Hi Stephane,

You have written
Now you probably see the names SAPBAPIControlLib_1_2 and SAPLogonCtrl_1_1 in the reference. In your file can you type SAPBAPIControlLib_1_2., what's brought up by intellisense ?

I see in reference
SAPBAPIControlLib and SAPLogonCtrl.

Intellisense doen't show anything when i type SAPBAPIControlLib_1_2.

I tried one more thing

C# CODE
-----------
APLogonCtrl.SAPLogonControl oLogonControl=new SAPLogonCtrl.SAPLogonControl();
//SAPBAPIControlLib.SAPBAPIControl conn=new SAPBAPIControlLib.SAPBAPIControl();
SAPLogonCtrl.Connection conn=new SAPLogonCtrl.Connection();
conn=(SAPLogonCtrl.Connection)(oLogonControl.NewConnection());
conn.Client="500";
conn.User="";
conn.Password="";
conn.Language="en";
conn.ApplicationServer="localhost";
conn.System="00";
bool bRtcd=conn.Logon(0,false);
if(bRtcd!=true)
Console.WriteLine("bRtcd="+bRtcd.ToString());

I get invalid typecast the code compiles when I execute I get Invalid Typecast exception for conn=(SAPLogonCtrl.Connection)(oLogonControl.NewConnection()). The oLogonControl.NewConnection() returns object.

I will send across the two dlls through email

Thanks

Regards
Ravi H R
GeneralHelp reading a binary file Pin
David Williams1-Oct-02 13:36
David Williams1-Oct-02 13:36 
GeneralRe: Help reading a binary file Pin
leppie1-Oct-02 14:35
leppie1-Oct-02 14:35 
GeneralRe: Help reading a binary file Pin
David Williams2-Oct-02 7:06
David Williams2-Oct-02 7:06 
GeneralRe: Help reading a binary file Pin
leppie2-Oct-02 9:30
leppie2-Oct-02 9:30 
GeneralRe: Help reading a binary file Pin
30-Oct-02 8:45
suss30-Oct-02 8:45 
GeneralRe: Help reading a binary file Pin
Paul Riley2-Oct-02 4:50
Paul Riley2-Oct-02 4:50 
GeneralRe: Help reading a binary file Pin
James T. Johnson2-Oct-02 5:38
James T. Johnson2-Oct-02 5:38 
GeneralRe: Help reading a binary file Pin
Paul Riley2-Oct-02 5:44
Paul Riley2-Oct-02 5:44 
GeneralRe: Help reading a binary file Pin
David Williams2-Oct-02 7:10
David Williams2-Oct-02 7:10 
GeneralRe: Help reading a binary file Pin
Eric Gunnerson (msft)2-Oct-02 11:30
Eric Gunnerson (msft)2-Oct-02 11:30 
GeneralRe: Help reading a binary file Pin
leppie2-Oct-02 11:39
leppie2-Oct-02 11:39 
GeneralRe: Help reading a binary file Pin
David Williams3-Oct-02 7:00
David Williams3-Oct-02 7:00 
GeneralRe: Help reading a binary file Pin
David Williams3-Oct-02 7:38
David Williams3-Oct-02 7:38 
GeneralRe: Help reading a binary file Pin
Eric Gunnerson (msft)3-Oct-02 8:17
Eric Gunnerson (msft)3-Oct-02 8:17 
GeneralPopUp A form in Multi-window environment Pin
Chris#1-Oct-02 5:43
Chris#1-Oct-02 5:43 
GeneralRe: PopUp A form in Multi-window environment Pin
Stephane Rodriguez.1-Oct-02 7:13
Stephane Rodriguez.1-Oct-02 7:13 
GeneralRe: PopUp A form in Multi-window environment Pin
leppie1-Oct-02 7:15
leppie1-Oct-02 7:15 

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.