Using DLL in C++ Win32 applicaiton [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I have the library called Serial.dll that containts the file Serial.def that looks like this:
EXPORTS
ValidateSerial
GenerateSerial
I want to import the function GenerateSerial in my C++ Win32 application. I searched on the internet topics about using DLLs but I can't get the idea... Can anybody help me?

The info you provided only tells two funciton names. You can obtain their address doing LoadLibrary and GetProcAddress. But to make any use of them you need to know the proper signature, and the rules for the arguments and return values.
Without documentation (or a .h file) you can't go very far.

Related

The first function is called in MFC Aplication [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
I'm new to MFC C++ and have a big MFC Project. It's in single document type and contains lots of classes such as doc.cpp, view.cpp, MainFrame.cpp ...Of course, It also contains lots of threads, functions in other classes. But i dont know exactly the way that project works, the way these threads are called. What is the first function, class is called? I try to find in default class of that project and have no clue.
I need an instruction or document explain step by step how a mfc project work. Can i have your help?

Can I call a C++ function from python and python function from C++ without library file like .so ...? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 days ago.
Improve this question
I search the Python/C api and I write the my code. But this code shouldn't have .so like library files. İs it possible? If possible please show me to way.
I use CFFI,cython,pybind11 this is have the same way.

OpenCV (or similar library) in Go [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I intend to use OpenCV for a project in which I've already built the server in Go. However, OpenCV doesn't have a Go API, so what's the best solution? Call a c++ program with .exec, use swig, find another library to do computer vision?
Thanks.
Edit: I want to maximize performance, and I'm ok with C++.
SWIG is certainly a viable option.
You can also search for a Go binding to OpenCV. For example: https://github.com/lazywei/go-opencv

How create a library? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How can I make my own GUI library e.g. SFML?
This question is for the purpose of understanding how GUI libraries work, not to actually make my own library.
I asked what I needed to do so. Can I open my editor and write some C++ code, importing some libraries and that's it. Or it's more complicated?
A library is "just" a bunch of classes and functions, so you write it like a normal program. The only thing that is different is when you compile it: you have to create a static/dynamic library file.
Creating a shared and static library with the gnu compiler [gcc] : http://www.adp-gmbh.ch/cpp/gcc/create_lib.html

Can I run a DLL from an exe with parameters? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to know if I can run a DLL function from a exe?
(C++ if it's important)
And If I can can I do it with parameters?
This isn't really code but the concept is the same
Run Calculator(time,0,int,max)
I would like to run something like that, using parameters to open up the dll in a certain way. Is it even possible?
Bonus Point for anyone who can give me an example in code :)
You can have just about any function you like in a DLL, and call it, just as you would call any library function. And have as many parameters as you like.