Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I change some code from c++ MFC to c# and have a few questions:

1) In MFC I have a CByteArray variable.
What type should I give to this variable in c#?

2)I have a c# interface I have to use.
In MFC I connect to it with CoCreate:

C++
hRet = m_pConverterImpl.CoCreate ( CLSID_Converter, IID_IConverter );


How should I connect to this interface from c#?

Thanks
Posted
Comments
Philip Stuyck 31-Oct-12 3:35am    
For the first question the datatype to use depends upon how you want to use it. A simple byte array might suffice. The second question seems related to com to me. For com objects you have to create a .NET wrapper. Just google around for howto interface with com objects from C#.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900