vetrikam
24th August 2002, 16:58
hi ,
how to invoke BaaN sessions using VC++
v hav e the option with VB, is it possible with VC++ also\
if yes how to include the libray file into our VC++ prog(bw.tlb)
:)
Renegade
25th August 2002, 13:00
U seem to be in Gurgaon. I stay in same place too. U can contact me at 98104 80805
All I would suggest is to read the documentation that comes along with BCK 1.3
Senthil Ganesh
arunprasath
25th August 2002, 13:02
Hi vetrik
When you use BOI ,u can activate baan sessions using VC++.
There is a compiler called as idl_compiler.exe that lies in the $BSE/bin folder. when u compile the idl file using the idl compiler using the option -Wb,-o that will give files with .olb extension. then you have to use the mktyplib.exe (a utility that comes with Visual c++) to convert this .olb files into a type library.(file with .tlb extension)
You can include this type library file in your VC++ and then call the baan sessions through BOI.
This is a complicated process. In this process you should have Microsoft SDK for java 4.0 to link to BOI.
This is what I know. If at all anyone knows any other ways , please post here.
Regards,
s.arun prasath
Jeyaseelan
25th August 2002, 18:09
As Arun said u need to compile the idl file with -Wb,-o option. The idl compiler will generate the Java Proxy Object, COM Proxy object, ODL file, Register file and a configuration file. After successful creation of proxy objects, u need to create and register a type library using mktyplib tool of VC++.
Basically the type library will be useful for the vc++ client to receive information about the proxy object generated by the idl compiler. After the creation of type library, register the type library using jactivex tool. Then rebuild the classes using jvc command. It will create Reg.reg file, by double clicking the file it will be registered.
Then write your vc++ client and import the type libraries in the client. For eg, salesorder BOI
#import "BaanConnectionCOM.tlb" no_namespace
#import "ccslssalesorderCOM.tlb" no_namespace
If u need the VC++ client program may be i will send u one. Mail me for any clarifications or problems u faced.