Mixed mode

  • Thread starter Thread starter Asfar
  • Start date Start date
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
 
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/
 
Sorry I was adding the it against resources and not for c/c++ and that
solved the problem
 
Back
Top