Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. sambasivamkannan

    Aggregation

    So, is it true that we can't expose a subset of interfaces of the inner object? -S.Kannan
  2. sambasivamkannan

    Aggregation

    When we aggregate an object is it possible to expose only certain interfaces(as opposed to all interfaces) of the inner component? Consider this scenario: The inner component has interfaces I1 and I2. The outer component wants to expose only I1(in addition to its own interfaces). But once I...
  3. sambasivamkannan

    Calling function in dll

    To be more specific, the DEF file should contain an entry for the exported function
  4. sambasivamkannan

    Calling function in dll

    I tried the following code and it worked. All I did is to add a DEF file to the dll project. *************************************************************** // DLL part void __declspec(dllexport)__stdcall doIt() { AfxMessageBox("doIt"); }...
  5. sambasivamkannan

    Calling function in dll

    When you call the the function you should call it like this: (*doIt)(); because doIt is a pointer to a function. -S.Kannan
  6. sambasivamkannan

    beginner question: void ** ?

    If we passed only the pointer we can't change the value of thepointer(we can only change the contents pointed to by the pointer). So we pass the address of the (interface) pointer. so we need another level of indirection. CoCreateInstance() takes a void** parameter. So we need to type cast the...
  7. sambasivamkannan

    simplest com?

    Exactly. But if you are totally new to COM, only the first two chapters of that book will be of help to you. -S.Kannan
  8. sambasivamkannan

    simplest com?

    You can refer Chapter Two: IUnknown and IClassFactory in "Inside Distributed COM" by Guy Eddon and Henry Eddon Microsoft Press. There is a complete listing for a simple self-registering COM Component there. -S.Kannan
  9. sambasivamkannan

    when to use new

    There are a few situations where it is necessary to use new. For e.g., suppose we create a linked list with the following node structure. struct node{ int data; node* next; }; If you are create the linked list in one function(where you will assign value to next) and use the linked...

Part and Inventory Search

Back
Top