iMacros with C#

I'm trying to use iMacros with C# in Visual Studio 2013
my code:

using iMacros;

...

{
           iMacros.AppClass imApp = new iMacros.AppClass(); // Object aanmaken van de namespace iMacros class AppClass
            iMacros.Status imStatus;
}

Open in new window


got an error:

interop type iMacros.AppClass cannot be embedded.

What could I do to resolve this?
ybtAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AndyAinscowFreelance programmer / ConsultantCommented:
0
Chinmay PatelChief Technical NinjaCommented:
Hi ybt,

Try this:

           iMacros.App imApp = new iMacros.App();
            iMacros.Status imStatus;

Open in new window


Regards,
Chinmay.
0
ybtAuthor Commented:
iMacros.App imApp = new iMacros.App(); opens a new window outside of my application
0
Bootstrap 4: Exploring New Features

Learn how to use and navigate the new features included in Bootstrap 4, the most popular HTML, CSS, and JavaScript framework for developing responsive, mobile-first websites.

AndyAinscowFreelance programmer / ConsultantCommented:
Have you followed my link and read it?
0
ybtAuthor Commented:
I followed that link, but there also recommended to switch to application instead of class .
and I took this example : iMacros.AppClass imApp = new iMacros.AppClass();
from this place:
https://pastebin.com/x21qaNZC
0
AndyAinscowFreelance programmer / ConsultantCommented:
OK.
So is your error corrected ?  (From what you say it seems to be so you are expected to choose all comments which helped and close the question).


got an error:

    interop type iMacros.AppClass cannot be embedded.
0
ybtAuthor Commented:
No, error was not corrected, I got this error when I copied a declaration to my environment, I assume that something wrong with my references or settings and this why I need help
0
AndyAinscowFreelance programmer / ConsultantCommented:
So have you tried the other suggestion in the link I posted - change the setting Embed Interop Types to false - with your original code ?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ybtAuthor Commented:
Thank you, because I'm using VS2013 and recommendations were for VS2010 I had a problem to find where to change to false.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.