from VC++ to C# translation - newbie

  • Thread starter Thread starter Matias Woloski
  • Start date Start date
Matias,

I think your best bet would be to rewrite what you have. It looks like
a hybrid ATL/WTL project, and while some of it can be transported over,
there are different mechanisms for doing what you want to do now (for
example, using Windows Forms instead of WTL).

Since it seems the screen capture is handled using a separate COM
object, why not just compile that into it's own dll and then access it
through interop?
 
Thanks Nicholas

Interop is not an option... I would like a rewrite on managed c#, maybe
using shdocvw.dll.
But I don't know how would I capture de DC of the browser...

Thanks again,
Matias


Nicholas Paldino said:
Matias,

I think your best bet would be to rewrite what you have. It looks like
a hybrid ATL/WTL project, and while some of it can be transported over,
there are different mechanisms for doing what you want to do now (for
example, using Windows Forms instead of WTL).

Since it seems the screen capture is handled using a separate COM
object, why not just compile that into it's own dll and then access it
through interop?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Matias Woloski said:
I need to translate this to c#.
It's for a capturing screen shots on IE.

http://cvs.sourceforge.net/viewcvs.py/*checkout*/iecapt/IECapt/IECapt/IECapt.cpp?rev=1.2

I don't know how to start. Should I use p/invoke? How I handler the WM
messages? How do I create the hidden IE window?
Is it possible with c# or I should I go to managed c++ extensions?

Thanks,
Matias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top