All Questions

Tagged with
Filter by
Sorted by
Tagged with
67 votes
10 answers
56k views

Which Javascript engine would you embed in your application? [closed]

I want to embed Javascript in a hobby game engine of mine. Now that we have the 5th generation of Javascript engines out (all blazing fast) I'm curious what engine would you choose to embed in a C++ ...
Robert Gould's user avatar
  • 69.3k
26 votes
6 answers
34k views

Embed Java into a C++ application?

I got an application written in C++ and I am able to extend the applications functionality by writing plugins in C++ for it. What I basically want to do is to embed Java into this application. This ...
Niklas R's user avatar
  • 16.6k
23 votes
4 answers
12k views

C++ with Python embedding: crash if Python not installed

I'm developing on Windows, and I've searched everywhere without finding anyone talking about this kind of thing. I made a C++ app on my desktop that embedded Python 3.1 using MSVC. I linked python31....
apostrophest's user avatar
22 votes
1 answer
1k views

Debug a problem in tk85.dll in an application that embeds the Python interpreter

My C++ application embeds the Python interpreter, but seems to be having some trouble when it shuts down. Right after the main window closes, I get a segmentation fault (this is Windows, but we'll ...
Nathan Osman's user avatar
  • 72.3k
12 votes
4 answers
6k views

Embed C++ compiler in application

Aren't shaders cool? You can toss in just a plain string and as long as it is valid source, it will compile, link and execute. I was wondering if there is a way to embed GCC inside a user application ...
user avatar
12 votes
2 answers
15k views

How to Embed/Link binary data into a Windows module

So I have a Visual Studio 2008 project which has a large amount of binary data that it is currently referencing. I would like to package the binary data much like you can do with C# by adding it as a "...
CrimsonX's user avatar
  • 9,128
11 votes
3 answers
4k views

How to reinitialise an embedded Python interpreter?

I'm working on embedding Python in our test suite application. The purpose is to use Python to run several tests scripts to collect data and make a report of tests. Multiple test scripts for one test ...
nab's user avatar
  • 301
9 votes
1 answer
15k views

Embed HTML browser into a native C++/Win32 project using Visual Studio

I have a C++ project in the MS Visual Studio 2008 IDE (note, NO MFC, NO .NET, just native Win32 APIs!) and I was wondering if it is possible to add to it a child window that can parse and render HTML/...
ahmd0's user avatar
  • 17k
7 votes
3 answers
6k views

How to embed resources into a single executable?

If you've ever used the tool Game Maker, it's a bit like that. I want to be able to take all my sounds, images, and everything else of the like and embed them into a single C++ executable. Game Maker ...
Keelx's user avatar
  • 917
6 votes
1 answer
6k views

undefined reference in basic boost:pyton program

I wanted to start using boost:python to embed python in my C++ program, but I am already having problems with this simple code: #include <boost/python.hpp> //boost libraries #include <Python....
leoncvlt's user avatar
  • 385
6 votes
1 answer
4k views

Embed Google Earth in desktop applications instead of website. Is QT a real option?

I have in mind to develop a desktop application that simulates a satellite camera orbiting the earth. I would like to use Google Earth in a desktop application instead of embedding it in a website. ...
user3770060's user avatar
6 votes
2 answers
3k views

Numpy import fails when embedding python in c

I'm trying to embed a python program to c++ code. the problem I have is to use python script that contain an numpy import. for example, if i use the following c++ code #include <Python.h> int ...
user1847003's user avatar
6 votes
3 answers
1k views

Lex and Yacc without Dynamic Memory Allocation

I'm in the process of designing software to run in an embedded environment where the use of dynamic memory is prohibited. Lex and Yacc are well suited for the application. Can I configure Lex and ...
Chris G's user avatar
  • 61
5 votes
6 answers
6k views

C/C++ within Ruby code?

C/C++ would be good option to write some of the performance critical aspects of a Ruby Application. I know this is possible. I would like to know how to add C/C++ code into Ruby code; any other ...
rpattabi's user avatar
  • 10.1k
5 votes
2 answers
2k views

Linux g++ Embedding Prolog Logic Engine Within C++

I have some logic in a C++ program that is not only insanely complex, it requires multiple solutions for which Prolog is ideal. It's sort of like a firewall config script, checking input for actions, ...
Walt Howard's user avatar
  • 7,904
5 votes
2 answers
7k views

C++ Embed external .exe into my compiled .exe

I have a quick question on a topic that I'm quite a noob about. I have a program I made that sends a command to another .exe in a folder I called "tools". I send it in this format: system("tools\\...
mrg95's user avatar
  • 2,400
5 votes
1 answer
628 views

Embedding Julia in C++

I try to embed Julia as explained in the documentation (https://docs.julialang.org/en/v1/manual/embedding/index.html) but can not manage to get it working with chars. I must probably be missing ...
Raphael's user avatar
  • 1,839
4 votes
4 answers
2k views

Stop embedded python

I'm embedding python in a C++ plug-in. The plug-in calls a python algorithm dozens of times during each session, each time sending the algorithm different data. So far so good But now I have a ...
João Pereira's user avatar
4 votes
4 answers
7k views

How can you embed a C++ game into a webpage?

Without recoding in flash or making it into a java applet! Keeping it as a C++ app, is there a way to embed it into a web page so site visitors can play the game? We can assume it's a small game, the ...
temporary_user_name's user avatar
4 votes
1 answer
2k views

How does py2exe actually -and simply explained- work? :)

I have a c++ app that calls another python one (bundled into an exe with py2exe) So I have 2 apps. So I was wondering: What if my c++ did what py2exe does? i.e. embed the python app in the c++ one....
sandra's user avatar
  • 450
4 votes
1 answer
10k views

Embed python / numpy in C++

I am trying to use python 3 (with numpy) in my C++ application. This entails sending a C++ array to python, performing calculations and then retrieving the result in C++. To do this I based myself on ...
user3456032's user avatar
3 votes
1 answer
4k views

Embed .exe file into C++ program?

I wrote a c++ program and I want to execute my second program inside it, which is a exe file. The problem is I want to share my program to others as one single file. When I search on the internet, I ...
Jason Lam's user avatar
3 votes
1 answer
3k views

MFC: Emdedded child dialog is not showing up within parent dialog

I came across a tutorial showing how to embed a child dialog within a parent dialog using MFC. I am using Visual Studio 2015. My setup is as follows. Using the Visual Studio MFC Application Wizard to ...
Michael Plautz's user avatar
3 votes
1 answer
2k views

Embedding C/C++ code with syntaxhighlighting into HTML with javascript

Hopefully somebody can point me to something that could help. What I'm doing is designing a few things in a HTML document, but I'd really like to be able to have blocks of C/C++ (not too worried, ...
R4D4's user avatar
  • 1,392
3 votes
3 answers
2k views

Pass variables between C++ and Lua via Swig

I'm working on a C++ project with a large number of classes (150+), each of which has anywhere from 10 to 300 fields or so. I would really like to be able to provide a scripting interface for testing ...
zslayton's user avatar
  • 52.2k
3 votes
1 answer
696 views

Exit 1 when calling mono_jit_init

Hi, I try to embed mono in a c++ application on windows. I followed http://www.mono-project.com/docs/compiling-mono/windows/ and I have my headers, lib and dll built for win64. I wrote a simple app ...
JNQ's user avatar
  • 31
3 votes
1 answer
428 views

How can I initialize an embedded Python interpreter with bytecode optimization from C++?

I am running an embedded Python 2.7 interpreter within my C++ project, and I would like to optimize the interpreter as much as possible. One way I would like to do this is by disabling my debug ...
Jake's user avatar
  • 7,685
3 votes
0 answers
1k views

Embed Python in C++ in Visual Studio

This may be a duplicate idk. I searched for answers and none helped me. Im trying to embed Python in C++ in Visual Studio 2017. My Goal is to run this: #include <Python.h> int main() { ...
MineII CrafterII's user avatar
3 votes
0 answers
279 views

Call python code asynchronously from c api

Sorry for noob question i really new in async programming and python embedding I embed python in my c++ application via c api. But then i calling something like time.sleep(10) it freezes my interface ...
Daiver's user avatar
  • 1,498
3 votes
0 answers
240 views

Embedding ruby in c++ with args in and return object out

I've got a c++ application that I want to be able to embed ruby in. I want to: Construct a ruby object Load a ruby file and call a specific function with that object as an argument Get the return ...
bitcycle's user avatar
  • 7,702
2 votes
2 answers
4k views

Compiling mono as static library

I want to compile libmono as static library at Windows. Target platform is Windows x86. Build environment: Windows 7 64-bit, VC++ Express 2010 What i have already done. 1) Downloaded mono 2.10.8 ...
ILya's user avatar
  • 2,718
2 votes
1 answer
406 views

How to embed and protect some "text" files in my application

My c++ application use some "text files", theses files are very important and I need to protect their content to be viewed/decrypted/extracted/dissassembled... Also, if possible I would like to embed ...
Spectral's user avatar
  • 717
2 votes
3 answers
2k views

Embedding Python in C++ - Running Python from C++ program

thank you both for a quick response :) i think i understood what you suggest but it is not exactly what i need. To be honest i don't know what is the right technique to do what i need. I have a ...
alexpov's user avatar
  • 1,168
2 votes
2 answers
2k views

Embed Mono: cannot find mono-2.0.dll

I'm on windows 8.1 using VS2012. I am trying to follow http://www.mono-project.com/docs/advanced/embedding/ to embed the Mono CLR into a C project. After some issue, I have it compiling now. I used ...
obiwanjacobi's user avatar
  • 2,443
2 votes
1 answer
2k views

Is it possible to embed html with js into QwebKit

will I need to load java script objects into QwebKit when my application is loading I can use setHtml with the html and the java script string formatted but its very hard to Maintain. My question is ...
user63898's user avatar
  • 30.4k
2 votes
1 answer
360 views

Embed Perl script in C++ program

I have embedded a Perl interpreter into my C++ program, as I want to run a Perl script. Below is my code so far - it only runs a few dummy scripts; I would like to run the transferScript script, which ...
Jacko's user avatar
  • 13k
2 votes
1 answer
3k views

How to pass Python's keyword arguments with pybind11?

Given this function: __init__(username, password, **kwargs) with these keyword arguments: auto_patch: Patch the api objects to match the public API. Default: False drop_incompat_key: Remove api ...
Spixmaster's user avatar
2 votes
1 answer
345 views

C++ embedding Python

i wanted to run Python-Scripts with C++. At my book, there is following: #include <Python.h> ... at main function some calls But at compiling the Compiler can't find the Python header file. ...
Tekkzz's user avatar
  • 640
2 votes
2 answers
297 views

Efficiently calling a Python function

I'm embedding Python into my game. The scripts will be used to define the character AI, how entities react to game events, etc — this means there's going to be a script for every type of entity ...
Paul Manta's user avatar
2 votes
2 answers
908 views

Embedding Flash in 3D-rendering binary

I want to embed Flash (2D GUI) in my 3D game C++ application, and it must be portable. Rendering Flash is not enough, I need user action callbacks. I found Hikari for Ogre3D, but I guess the ...
Jonas Byström's user avatar
2 votes
1 answer
1k views

Why does MIcroQuill Smartheap throw "mem_bad_pointer" errors after I embed perl?

I am embedding perl in a C++ application that uses Smartheap. Regardless of whether I compile the perl to use its own malloc or the system's I get a bunch of error mem___bad_pointer dialogs. It ...
kingkongrevenge's user avatar
2 votes
1 answer
288 views

How to build Python into a C++ .exe

I have a c++ application and would like to take advantage of one of pythons libraries. I have seen info on how to run the python interpreter inside the program, however I want the program to be self-...
Trent's user avatar
  • 1,275
2 votes
1 answer
1k views

Embedding cg shaders in C++ GPGPU library

I'm writing a GPGPU Fluid simulation, which runs using C++/OpenGL/Cg. At the moment, the library requires that the user specify a path to the shaders, which is will then read it from. I'm finding it ...
XwipeoutX's user avatar
  • 4,865
2 votes
0 answers
316 views

Python Embedding to C++ using static library

I want to use python code in C++ in an environment where we only have support for C++. It turns out that using python embedding, we can call python functions using C/C++. If I want to interpret python ...
taserghar's user avatar
  • 360
2 votes
1 answer
1k views

Fully embedding python into Qt application

I am looking for a way of fully embedding python into a Qt application. With this, I mean that I want to build a Qt application that executes python code and I can fully distribute without having to ...
Alberto Casas Ortiz's user avatar
2 votes
1 answer
833 views

How do I call a .py GUI from a .cpp?

I'm using Python 3.8.5 (64-bit) and Dev-C++ (Code generation ISO C++11, Includes Python's include folder and Libraries also has Python's Lib folder). I designed a very simple and barebones ttk GUI in ...
Daniel Pantigoso's user avatar
2 votes
2 answers
732 views

C++ V8 Embedding project structure

I'm trying to get chrome V8 embedded in my C++ project, and I can only get what I could call, my project being embedded in V8. My only concern with this is that my program is cross-platform and I ...
c_mcg's user avatar
  • 29
2 votes
0 answers
182 views

How to modify a C int array allocated in C code, from an embeded python script?

I'm trying to embed python in a C++ application. The problem I'm having is that I can't find a way to modify a C array (int) from python. I load my python script using the standard PyImport_Import ...
RitonLaJoie's user avatar
1 vote
1 answer
2k views

trouble redefining print function in lua

I am attempting to redefine the print function as described in this question. Here is my code: extern "C"{ #include <lua.h> #include <lauxlib.h> #include <lualib.h> } #include <...
ewok's user avatar
  • 20.7k
1 vote
3 answers
2k views

How to embed Python in a multi platform C++ framework (JUCE)?

I'm designing musical training games using JUCE -- a multiplatform C++ framework that allows me to code audio/visuals close to the wire. However, I have coded my gameplay (control flow / data-...
P i's user avatar
  • 29.9k