on 05-12-2005 8:50 AM
I want to control the SAPGUI in Csharp instead of VB.
Can anyone give me a sample using Csharp? or delphi?
it seems that I must know the exactly class type instead of using object.
Hi Keynes,
I haven't tried this myself, but I guess the problem is not in the creation of the object but rather in the type safe assignment of the resulting COM interface. If you import the type library from sapfewse.ocx you can work with the interfaces. The GuiApplication interface is _Dsapfewse (not so nice, I know), the GuiSession interface is ISapSessionTarget and so on. You might have to use OLE View or a similar tool to find all of them.
I'm not sure what happens when you create a .NET assembly out of this, probably some name mangling.
Best regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.