Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
WPF with C++ is not a thing, C++/CLI with WPF is.
Source Link
IdeaHat
  • 7.9k
  • 1
  • 28
  • 57

How to call C DLL functions from WPF with C++/CLI

I have looked into lot of online searches and most have examples which talk about C# with C or C++ with C# but have never come across using C DLL calling from C++ (specifically from WPF with C++ C++/CLI with WPF in my case).

Can someone please explain with an example how to call C DLL functions in C++. I have a C DLL which has all its functions defined as extern "C" funcName() and there is also a export functions .def file which has all the function names which need to be exported. Now having this C DLL how can I call its exported functions in a C++ code.

Thanks.

How to call C DLL functions from WPF with C++/CLI

I have looked into lot of online searches and most have examples which talk about C# with C or C++ with C# but have never come across using C DLL calling from C++ (specifically from WPF with C++/CLI in my case).

Can someone please explain with an example how to call C DLL functions in C++. I have a C DLL which has all its functions defined as extern "C" funcName() and there is also a export functions .def file which has all the function names which need to be exported. Now having this C DLL how can I call its exported functions in a C++ code.

Thanks.

How to call C DLL functions C++/CLI

I have looked into lot of online searches and most have examples which talk about C# with C or C++ with C# but have never come across using C DLL calling from C++ (specifically from C++/CLI with WPF in my case).

Can someone please explain with an example how to call C DLL functions in C++. I have a C DLL which has all its functions defined as extern "C" funcName() and there is also a export functions .def file which has all the function names which need to be exported. Now having this C DLL how can I call its exported functions in a C++ code.

Thanks.

Source Link
eecs
  • 141
  • 2
  • 13

How to call C DLL functions from WPF with C++/CLI

I have looked into lot of online searches and most have examples which talk about C# with C or C++ with C# but have never come across using C DLL calling from C++ (specifically from WPF with C++/CLI in my case).

Can someone please explain with an example how to call C DLL functions in C++. I have a C DLL which has all its functions defined as extern "C" funcName() and there is also a export functions .def file which has all the function names which need to be exported. Now having this C DLL how can I call its exported functions in a C++ code.

Thanks.