wrapper

Java vs. C++ for building a GUI which has a C++ backend.

Hello, I currently have a C++ backend that I need to connect with a GUI, and since I've never built a GUI before, I was confused on where to start. I'm comfortable writing code in C++ and Java, so I'd prefer my GUI to be in one of those languages. Also, the GUI has to be reasonably OS independent over Windows and Linux (and hopefully,...

How to wrap a C library parameter?(Creating x264 .Net wrapper)

so in dll we have x264_param_t structure\object and a function for its setting up x264_param_apply_profile. in C we use such code to set it up x264_param_t param; x264_param_default_preset(&param, "veryfast", "zerolatency"); param.i_threads = 1; param.i_width = width; param.i_height = height; param.i_fps_num = fps; param.i_fps_den = 1;...

Is there any example of compiling a java library into something wrappable with C#?

So I want to wrap a simple java library so to be able to use its functions from C#. Is it possible, how to do such thing? BTW can we do such thing from C? ...

Call C/C++ code from a Fortran 77 code

Hi! I'm trying to make a Fortran 77 wrapper for C++ code. I have not found information about it. The idea is to use from functions from a lib that is written in C++ in a Fortran 77 progran. Does anyone know how to do it? Thanks! ...

Wrapping an API to support dependency injection

Hi, I am interacting with an API that just has static functions, and cannot be opened up and changed. public class WindowsNativeGraphAPI { public static IEnumerable<IGraphData> GetGraphData(); public static bool DeleteGraphData(IGraphData data); } I would like to be able to pass the API into a function or ...

Python API C++ : "Static variable" for a Type Object

Hello, I have a small question about static variable and TypeObjects. I use the API C to wrap a c++ object (let's call it Acpp) that has a static variable called x. Let's call my TypeObject A_Object : typedef struct { PyObject_HEAD Acpp* a; } A_Object; The TypeObject is attached to my python module "myMod" as "A". I have defined ...

preventing "ld -wrap " circular references

I am using GNU ld's "-wrap" option to intercept calls in applications, but have ran into a scenario where the code implementing the wrapper indirectly calls the wrapped function, creating a circular reference. Example The goal is to wrap read calls that occur in Program Foo. This code can be recompiled/relinked, but not modified. Prog...

Why does wrapper classes for primitive data types don't have a setter ?

What is the reason why Wrapper classes (like Integer, Double, etc.) don't have a setter for their inner primitive value ? I am asking this because that kind of functionality would have simplified calculus, and have made the Java language a little more flexible . Let me give you some examples. 1) Let's take the following example: Int...

Reference COM+ from .Net with varying GUID

Hi, We have a project that references COM+ components (written in VB6). The components are added to our .Net solution by 'Add reference'. This works well and even intellisense works. Now and then the interfaces (compatability) of the components are broken and our .Net code doesn't work anymore. The component was added with a specific ...

Why does my setup.py script give this error?

So I have a C++ class that I made python wrappers for, and I made a setup.py file to compile it in order to use it in python. When I try to run python setup.py install I get the following error: lipo: can't create output file: build/temp.macosx-10.5-fat3-2.7/../tools/transport-stream/TransportStreamPacket_py.o (No such file or directory...

How to turn .h file +dll into some kind of .Net wrapper?

How toturn .h file +dll into some kind of .Net wrapper? or something like that? (no C\C++ sources just h files) ...

how to perform pre processing the method call details before the method is executed in C#

HI all, I am not sure whether this is possible in C# or in any other language for that matter. Below is my requirement It is a service application which will get some commands to execute. Those commands are predefined (methods in classes). When user calls these methods, the application framework must call another method (a default meth...

html css wrapper div not working

Hi, i have the following web page layout.. What im failing to understand is why the content div is displaying outside of its parent wrapper div on the right hand side.. Code as follows and thanks for any help.. @charset "utf-8"; /* CSS Document */ * { margin: 0; padding: 0; } html, body { height: 100%; } body { padding-top...

Continuing code execution after a pygtk.main() in python

I have an application where my DataFetch() class "Wraps" around my HBHTray() class for the purpose of interacting with the functions/variables of that class. Unfortunately, I can't seem to be able to get the code to continue execution after my DataFetch() class makes a instance of HBHTray and calls it, and on the Start() method of HBHTra...

Using Java to wrap over C++

Hello, I have a project written in C++ and I'm looking to write a Java GUI as an interface to it. The choice of Java is fixed so I'd need to learn how to be able to call the C++ code from Java. Rewriting the C++ code is not an option. I'd like input on: What tools can I use to achieve this wrapping. How much of the C++ code would I h...

Flex datagrid wordwrap customization

I would like to use the word wrapper for datagrid header, the problem is that it cuts the word to a new line, what i need is to add - sign after the word cutted... what i mean is: admins- trator ...

Is there any librtmp c# .net wrapper?

Is there any librtmp c# .net wrapper? ...

How to create XPCNativeWrapper for HTMLDocument

Hi, I am having troubles with making my Firefox extension use xPath on a page loaded via AJAX inside my extension window. Here https://developer.mozilla.org/en/DOM/document.evaluate it says that evaluate can be used with HTML or XML documents to evaluate xPath expression. So, i created a HTMLDocument object, assigned the AJAX response ...

C# with libvlc.dll

Hello, Actually, I'm not a C# programmer, but in the part of project, I needed to play RTSP stream in C# via libvlc. After googled my problem, I found this - working - example : http://libvlcnet.sourceforge.net/ and videolan.org forum's. But all of these are too complicated to understand for me. My program is supposed to be just play...

C# VLC Wrapper.

Hello!! Does anyone knows about a C# VLC 1.1 Wrapper?? I´ve found some wrappers for older versions of VLC (haven´t try them jet), but none for the new version. So if you know any, please post it. Thanks in advance!!! ...