-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: aamirOnline
Message 2 in Discussion


hi

  can you please pose your questions related files 
  so that we can go through and answer your question properly
   
  regards
  m aamir 
  maniar
  [System Analyst 
  (CWS)]
  [Freelanse OOPD 
  consultant]
   
 
 

  ----- Original Message ----- 
  From: 
  shailaja 
  To: BDOTNET 
  Sent: Tuesday, September 23, 2003 4:36 
  PM
  Subject: Query regarding managed 
c++
  

  
    
      
      New Message on BDOTNET
    
      

  Query 
    regarding managed c++


    
      
      
        Reply

        
          
            
            
               
              Reply to Sender   Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: shailaja 
            
              

                Hello,
Can anyone tell me How unmanaged DLL is used in 
                managed applications?

One programmer from our company has 
                left project halfway and I have been assigned to same project. 
                Unfortunately no documentation is available. I do not have 
                experience on VC++/Managed C++. So along with reading MSDN I am 
                doing some reverse engineering. 

I could figure out that 
                person has created Managed class library which is refrenced in 
                other projects. Only managed keyword is "__gc classname"
In 
                managed c++ library header file of native dll is included and in 
                source files section lib file for same dll is 
                placed.

Managed library is calling API's from unmanaged 
                library. Parameters for those APIs are of type int , char, array 
                of characters, predefined structures containing memebers with 
                data types int , char, array of characters, pointer to array of 
                char.

Those structure members are initialized with 
                required values before passing them as parameters to APIs of 
                unmanaged dll. For that variable with same stucture types are 
                defined as that mentioned in header file for native 
                dll.
These structure variables are not declared as managed 
                but those are inside managed class? 
And it is working just 
                fine.

So my first doubt is are those variables treated as 
                managed variables or value types?
And __box / __nogc is also 
                not used then I was wondering how it is working.
Can anyone 
                explain me how it is working?

And also looking at header 
                file I could not figure out what type of dll it is means created 
                using c++ or c
The function definitions are like 
                
------------------------------------------------------------------
#include 
                <WINDOWS.H>// in the beginning of file

#if 
                !defined( PREANSI )
extern "C" int __stdcall MyFunction(int 
                k)
#else
int __stdcall MyFunction(int 
                k)
#endif
-------------------------------------------------------------------
So 
                my second doubt is , is dll created using c/ c++ and what is 
                type of dll?
It is not exporting any types. Because help is 
                given for building wrapper around COM Componenents or 
                C++

I want to know these things so that I can do further 
                implementation with understanding.
Please help me regarding 
                this.
                Thanks in advance.
                
Regards
Shailaja

View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to