How to pass the structure to a function in C++ defined in another class?

Posted by Dany on Stack Overflow See other posts from Stack Overflow or by Dany
Published on 2012-10-26T18:51:25Z Indexed on 2012/10/27 17:01 UTC
Read the original article Hit count: 349

Filed under:
|

I have a class Con as this:-

class Con
{
 public:
  struct MachineList
  {
    BSTR AccountId;
    BSTR MachineId;
    BSTR Make;
    char* Make1;
    BSTR Model;
    char* Model1;
    BSTR SerialNumber;
    BSTR IpAddress;
    char* IpAddress1;
    BSTR Port;
    int Port1;
    BSTR LocationCode;
    } machinelist[100] ;
   int w;
 } ;

i created an object of Con class as Con m_con;

I have another class Test

class Test
{
 public:
  void fun();//i want to pass the object of the structure that i created in Con
  //what arguments should i pass in fun function?
};

© Stack Overflow or respective owner

Related posts about c++

Related posts about visual-studio-2010