Can COM work with MFC

Advertisement

lincy27
Joined:
Posts:
7

Can COM work with MFC

Can the WINSCP COM library be used with Visual studio 6.0 and 2013 (MFC dialog based application) for implementing SFTP protocol? It has to work on both Windows XP as well as Windows 7. Any suggestions?

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Can COM work with MFC

Yes, it should be possible. As long as there's .NET framework installed on the target machine.

Reply with quote

lincy27
Joined:
Posts:
7

could you please throw some light on this?
I registered the WinSCPnet.dll as is explained in readme_automation.txt. That gives me a .tlb-file which I can use in the Visual Studio directory.But how do u use COM component in a MFC project?? I tried importing WinSCPnet.dll in the project, but its showing the file is binary and cannot be read. Please help

Reply with quote E-mail

lincy27
Joined:
Posts:
7

martin wrote:

It's been ages, since I've done this the last time.

Maybe with can help you:
https://stackoverflow.com/q/1145768/850848

Thanks a lot, Martin. It was of great help. Another doubt is that as mentioned in
https://winscp.net/forum/viewtopic.php?t=12369 ,
the tlb contains no description for methods. Without any methods for the main classes like SessionOptions , Session ,etc how can we invoke it from MFC application?

Reply with quote E-mail

Advertisement

You can post new topics in this forum