Hello_Factory_i hello_factory_i;        // Activate it to obtain the object reference
        Hello::Hello_Factory_var hello_factory =
        hello_factory_i._this ();//那个_this();是什么意思呀

解决方案 »

  1.   

    那是別人自已寫的一個類 Hello_Factory_i,_this只是它的一個成員函數,是什麼用途你看一下就知道了,但在C++中,this代表指向自身的一個指針
      

  2.   

    看样子,_this是个生成一个对象的函数,应该不是this指针吧。具体要看这个函数怎么写了
      

  3.   

    所给代码太小,下面只是猜想:
    应该是个COM类厂的简单模拟吧.Hello_Factory_i 负责负责生成Hello型的对象.Hello中用typedef定义的类型Hello_Factory_var 应该是个Hello_Factory_i型变量的指针类型:typedef Hello_Factory_var *Hello_Factory_i ; Hello_factory_i中定义了函数_this ()用于返回this指针,它的实现应该类似于:
    Hello::Hello_Factory_var Hello_Factory_i::_this() { return this ; }
      

  4.   

    昨天给人讲了一下corba的开发流程和方法,讲的很失败,因为东西太多,虽然开发出了一些程序,但是还是有好多不明白的地方,谢谢大家的指点,努力学习
      

  5.   

    It might the inline function of the class Hello!
      

  6.   

    Hello_Factory_i hello_factory_i;        // Activate it to obtain the object reference
            Hello::Hello_Factory_var hello_factory =
            hello_factory_i._this ();//那个_this();是什么意思呀
    找hello_factory_i内有没有_this()的定义
      

  7.   

    it's a big joke. Every body can develope themself's imaginal thinking!