Click here to Skip to main content
15,914,905 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: algorithm for connection lines Pin
Chris Losinger5-Apr-01 10:56
professionalChris Losinger5-Apr-01 10:56 
GeneralRe: algorithm for connection lines Pin
Thomas Freudenberg5-Apr-01 11:18
Thomas Freudenberg5-Apr-01 11:18 
GeneralRe: algorithm for connection lines Pin
Neville Franks5-Apr-01 17:19
Neville Franks5-Apr-01 17:19 
GeneralExplorer, Docking, Splitter-windows in plain C Pin
Ted Green29-Mar-01 11:19
Ted Green29-Mar-01 11:19 
GeneralRe: Explorer, Docking, Splitter-windows in plain C Pin
Henry Jacobs29-Mar-01 12:44
Henry Jacobs29-Mar-01 12:44 
GeneralRe: Explorer, Docking, Splitter-windows in plain C Pin
Ted Green29-Mar-01 14:33
Ted Green29-Mar-01 14:33 
GeneralHTTP/1.1 client Pin
Olaf van der Spek28-Mar-01 5:33
Olaf van der Spek28-Mar-01 5:33 
GeneralCorba-orb initialisation problem Pin
28-Mar-01 2:41
suss28-Mar-01 2:41 
Hi there!!
I have got quite a big problem and I wonder if you could help me out!! Smile | :) ! The problem is as follows:

I declared a Class in C++ called Messenger, offering some methods (Which are passed from my GUI). Its purpose
is to handle this methods through to a CORBA Server, which passes it to someone else (should be some kind
of video-conference....).
So the constructor of the class Messenger should include the initialisation of a CORBA-Orb Client. But I absolutely
don't have any idea how this works. I have looked at several examples, but they are all main programs
and no seperated classes like I have.

The code as it is suggested in the main programms is:
main(int argc, char * argv[])
{
try
{
// Initialize the ORB
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
// Convert the contents of the file to an object reference.
CORBA::Object_var obj = orb->string_to_object("file://Messenger.ior");
if (CORBA::is_nil(obj.in()))
{
cerr << "Nil Messenger reference" << endl;
throw 0;
}
// Narrow the object reference to a Messenger object reference.
Messenger_var messenger = Messenger::_narrow(obj.in());
if (CORBA::is_nil(messenger.in ()))
{
cerr << "Not a Messenger object reference" << endl;
throw 0;
}
// Create a message and send it to the Messenger.
CORBA::String_var message = CORBA::string_dup("Howdy!");
messenger->send_message ("rick", "Test", message.inout());
// Release resources.
orb->destroy();
}
catch (const CORBA::Exception & ex)
{
cerr << "Caught a CORBA exception: " << ex << endl;
return 1;
}
catch (...)
{
return 1;
}
cout << "Message was sent" << endl;
return 0;
}


exception handling included. I don't see the point of the following code line:
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);

What are the parameters for, given the init-method??

I hope you understand what I am asking. Sorry for my bad English Frown | :( I'm going to learn it better Smile | :) (At least I
hope so...)

Thank you very much for your help!
Charly
GeneralRe: Corba-orb initialisation problem Pin
2-May-01 5:53
suss2-May-01 5:53 
GeneralCalling a user's email client on windows Pin
Russell Robinson28-Mar-01 1:12
Russell Robinson28-Mar-01 1:12 
GeneralRe: Calling a user's email client on windows Pin
Michael Dunn28-Mar-01 16:50
sitebuilderMichael Dunn28-Mar-01 16:50 
GeneralRe: Calling a user's email client on windows Pin
Russell Robinson28-Mar-01 16:57
Russell Robinson28-Mar-01 16:57 
GeneralRe: Calling a user's email client on windows Pin
Andrew Peace1-Apr-01 7:22
Andrew Peace1-Apr-01 7:22 
GeneralRe: Calling a user's email client on windows Pin
Simon Brown17-Apr-01 2:05
Simon Brown17-Apr-01 2:05 
GeneralRe: Calling a user's email client on windows Pin
orcun colak17-Apr-01 5:18
orcun colak17-Apr-01 5:18 
GeneralRe: Calling a user's email client on windows Pin
Simon Brown17-Apr-01 5:45
Simon Brown17-Apr-01 5:45 
GeneralRe: Calling a user's email client on windows Pin
Russell Robinson21-Apr-01 21:37
Russell Robinson21-Apr-01 21:37 
QuestionHow to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa27-Mar-01 20:29
Masahiro Kurosawa27-Mar-01 20:29 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
PJ Arends28-Mar-01 6:23
professionalPJ Arends28-Mar-01 6:23 
AnswerRe: How to set thumbnail image to a file icon of Explorer Pin
Michael Dunn28-Mar-01 16:57
sitebuilderMichael Dunn28-Mar-01 16:57 
GeneralRe: How to set thumbnail image to a file icon of Explorer Pin
Masahiro Kurosawa28-Mar-01 17:32
Masahiro Kurosawa28-Mar-01 17:32 
GeneralHow to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 1:17
Masahiro Kurosawa29-Mar-01 1:17 
GeneralRe: How to extract icon from file? Pin
Michael Dunn29-Mar-01 6:31
sitebuilderMichael Dunn29-Mar-01 6:31 
GeneralRe: How to extract icon from file? Pin
Masahiro Kurosawa29-Mar-01 14:25
Masahiro Kurosawa29-Mar-01 14:25 
GeneralRe: How to extract icon from file? Pin
Michael Dunn29-Mar-01 16:11
sitebuilderMichael Dunn29-Mar-01 16:11 

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.