How to add a Python script to the c ++ program - Programming - HWzone Forums
Skip to content
  • Create an account
  • About Us

    Hello Guest!

    Please note - in order to participate in our community, comment and open new discussions, you must join as a registered member.

    Our members enjoy many advantages, including the ability to participate in discussions, enjoy raffles and promotions for members of the site, and receive our weekly content directly by email.

    Do not like being harassed by email? You can register for the site but do not submit your registration to the weekly email updates.

How to add a Python script to the c ++ program


Recommended Posts

I built a program in c ++ of the institution's admission system. (As part of the acton, so do not ask why in c ++ etc)

And I added a script in Python that sends an email as needed a certain.

The Python sends an email by having the program in c ++ play the file in the Python by the cmd.

Now I wanted to ask, if there is a more normal way to do this, because I actually can not know what the program in Python sent (say a security code) or control where the program in Python will send the email. Built-in that c ++ runs it.)

I work with VS 2019


Link to content
Share on other sites

Quote from Runny

For cases like this I really like PyBind11

Ok. So I chose this directory, downloaded it, etc. Everything you need, according to this video:

The only problem is, I have a name

 Exception thrown at 0x00007FF8FEDB44C3 (python37.dll) in pybind11Example.pyd: 0xC0000005: Access violation reading location 0x0000000000000008

Every time I run.

And another point is, I'm missing a python37_d.dll file.

It's not in the visual studio's Python file.

Do you have information on how to solve the problem?

Link to content
Share on other sites

Join the discussion

You can then join the discussion and then join our community. If you already have an account with us, please Log in now To comment under your username.
Note that: The comment will appear to the surfers after approval by the board management team.

Add a comment

×   The content pasted is with formatting.   Remove formatting

  Only 75 emoji are allowed.

×   Your link has been automatically assimilated.   Show as regular link

×   Your previous content has been automatically restored.   Clear all

×   You can not paste images directly. Upload or insert images from URL.


  • Latest news

  • Buzz-Zone: Everything hot on the net

  • Create new ...

At the top of the news:

new on the site