Mixed mode

A

Asfar

Hi,

I have dll which is written in vc6.0
Now I am writing a exe in C++/CLI and want to use this dll.

So I first opened the VC6 dll in Visual Studio 2005 and the conversion was
done. Now I added a windows form project to the solution and made this as
the active project.

Can someone please tell me how can I call a function from dll in my windows
form project. I first tried including the dll header file in my application
but it gave an error that "fatal error C1083:Cannot open include file"

I have included the path of dll project in Additional Include Directories
under resources for the windows form project.

Any idea on how this can be achieved?

Thanks,
-Asfar
 
J

Jochen Kalmbach [MVP]

Hi Asfar!
Can someone please tell me how can I call a function from dll in my windows
form project. I first tried including the dll header file in my application

This is the correct way to go.
but it gave an error that "fatal error C1083:Cannot open include file"

Maybe you should adjust your path-settings or put the include-file in an
apropriate place...
I have included the path of dll project in Additional Include Directories
under resources for the windows form project.

Then this error should not occur...

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
 
A

Asfar

Sorry I was adding the it against resources and not for c/c++ and that
solved the problem
 

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

Similar Threads


Top