wrapper

integration of tools with GUI driver

I have this old Fortran executable that can only be accessed through its GUI, and is too complicated to rewrite. I need to integrate it into a tool we are building, so I wrote a GUI wrapper in C# using the White library (certainly not ideal, but I couldn't think of a better approach). This works ok, but when my program runs, the GUI po...

Tool for creating .NET wrappers for a COM DLL?

Is there any open source tool for automatically generating .NET wrappers for a COM DLL library? Thank you. ...

Can a function defined in a bookmarklet be called from a page-level script?

I have a bookmarklet that needs to open a new window/tab. In order to avoid the popup blocker, I need to call the window.open() method directly in the bookmarklet ie: at the browser-level. However, I want to keep the bookmarklet updatable by loading external Javascript files. To do this, the bookmarklet needs to append script nodes to ...

.NET wrapper for Windows API functionality

Does anyone know of a .NET managed wrapper around Windows API functionality that is not available in the .NET framework itself? Areas such as window creation and display styles, common UI control manipulation, keyboard/mouse input, file and disk information, memory mapped files etc I have been a regular to visitor http://www.pinvoke...

Use .NET in VB6 or classical ASP

Duplicate of Calling .NET methods from VB6 via COM visible DLL Which ways exist to use/call .NET classes/functions/libraries (.net 3.x) in VB6 or classical ASP ? Has anybody experiences with that ? How much effort is necessary to wrap .NET to COM ? Are there tools which help ? ...

How to write a wrapper over functions and member functions that executes some code before and after the wrapped function?

I'm trying to write some wrapper class or function that allows me to execute some code before and after the wrapped function. float foo(int x, float y) { return x * y; } BOOST_PYTHON_MODULE(test) { boost::python::def("foo", <somehow wrap "&foo">); } Ideally, the wrapper should be generic, working for functions and member fun...

Acquire images from scanners from Powerbuilder

I am using EZTWAIN from a powerbuilder application to acquire images from an HP scanner. Recently I tried a Kodak model (i1120) and it seems that it is not supported. Specifically the application freezes during the scanning process (perhaps the problem has to do with duplex scanning). Can you recommend another library that you have use...

java extend or wrap a class to add extra functionality

When you want to add some extra information into a class, what way would you prefer: would you extend that class or make a wrapper around it? In my particular scenario, I want to add some pagination information with a List that I get from database. That pagination information will include: int currentPage; int totalResults; int contain...

Is there a jQuery wrapper for .Net?

I've noticed that there are wrappers for a lot of javascript libraries and such, but I have yet to see anything significant for jQuery. Am I just not searching hard enough and there is one out there? Or is there some problem with jQuery that keeps someone from creating a wrapper? ...

C++/CLI/C# BadImageFormat Exception when loading form

I created a C++/CLI assembly that creates a wrapper around native C++ code. The resource compiles and the assembly loads fine into my C# project when I add it as a resource. I can access my objects and intellisense from within my application, but when attempting to build, it crashes with the exception: BadImageFormat Could not loa...

Create simple cocoa application wrapper

I have an application I want to bundle (with some additional files) together inside a wrapper application. Literally the only thing I want to do is have the wrapper application launch a resource file (i.e. as if I'd typed: /path/to/Resources/Bundled.app/Contents/MacOS/executable into the terminal. Make sense? I thought this should b...

Join 2 classes - essentially

I've got a .NET Web Service Reference to a 3rd party WSDL. In that reference are 2 classes. Basically these 2 classes are most likely Interfaces on the 3rd Party API side but in .NET end up as 2 proxy classes. I have a need to combine both these classes into one class. Why? Because it's stupid that these are split, they're the servi...

CONCAT for all results, or some kind of wrapper function for MySQL

This may be really easy but I'm wondering if there is a function in MySQL to have all results wrapped or appended without having to use CONCAT on each part? Something like: SELECT x, y, z WHERE 1 = 1 Where the results would normally be: x | y | z blah |stuff |junk big |small |huge good |bad |ugly Instead it returns...

Extension wrapper malloc allocator for C++ STL

Apparently there is a “malloc_allocator” provided with gcc for use with STL. It simply wraps malloc and free. There is also a hook for an out-of-memory handler. Where can I find more about it? Where can I find its header file? I’m using gcc 4.x. ...

Designing an iterator wrapper

I wrote a class that wraps an iterator and returns transformed values on demand: // iterator-wrapper.h template<class Iter, class Val, class Fct> class IteratorWrapper { Iter cur_; const Iter last_; const Fct fct_; public: IteratorWrapper(Iter first, Iter last, const Fct fct) : cur_(first), last_(last), fct_(fct) {} con...

Passing optional arguments through a wrapper method in Rails

I have the following wrapper method for link_to: def link_to_with_current(text, link, condition, *args) current_class = condition ? 'current' : nil link_to text, link, :class => current_class, *args end When called with this sample: link_to_with_current 'My Link', '/mylink.html', true, :id => 'mylink' The following link is gene...

How to wrap a C library so that it can be called from a web service

We have a library with very complex logic implemented in C. It has a command line interface with not too complex string-based arguments. In order to access this, we would like to wrap the library so that it can be accessed with simple XML RPC or even straightforward HTTP POST calls. Having some experience with Java, my first idea would ...

Java: byte[] to Byte[]

Java makes me sad since it needs wrapper classes for ArrayLists. How would I go about adding a byte[] to a ArrayList<Byte[]>? ...

edited HTML wrapper template in Flash Builder 4 but my changes do not appear

I edited the index.template.html file, adding a script block to the HEAD section, but my changes are not there when running the project in Debug mode or in Run mode. I'm using SDK 4.0 with the public release of beta 2 (not using nightlies yet) and modified the only template found in this folder: \Adobe\Adobe Flash Builder Beta 2\sdks\...

How to install Emgu CV wrapper?

Hi mates! I found a simillar question but the answer didn´t help me! SO I´m trying to install Emgu CV wrapper. I´m following the steps presentes on the website. Unfortunatelly I´m not able to build the examples...It gives me build failed... Maybe I´m missing something . I´m using visual studio 2088 and windows xp. Anybody could help me?...