wrapper

C++ WinInet Wrapper for Windows Mobile

Environment: Win32, C++/VS2008 I'm getting into the need to make HTTP (not HTTPS) requests from the internet using a Windows Mobile phone and to save time + reinventing the wheel, wondered if anybody here might have kindly shared a simple C++ (Win32?) WinInet wrapper or similar class? The closest I found so far using Google is on code...

What is a wrapper class?

What is a wrapper class? How are such classes useful? ...

luaopen_my_example undefined after compiling swig wrapper

I'm just now diving into SWIG as a means for creating Lua bindings, and I've hit a snag. I made my interface file and built a shared object file from it all without any problems. However, when I run Lua and try to require the shared object, I get the following: Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio require("my_example")...

How can I avoid this infinite loop?

It feels like there must be some semi-simple solution to this, but I just can't figure it out. Edit: The previous example showed the infinite loop more clearly, but this gives a bit more context. Check out the pre-edit for a quick overview of the problem. The following 2 classes represent the View-Models of the Model View View-Model (...

WCF Service Call Wrapper

What is best practice for creating wrapper for WCF service call? I think it is necessary to monitor all calls in the same place, I am thinking to use this kind of code, is this right idea? RetType t = ServiceExecutionContext<IServiceChanel>.Execute(s=>s.GetServiceMethod()); What kind of wrapper are you use in your enterprise applica...

Can I create a wrapper around NUnit, MbUnit, xUnit or other testing framework?

How can I create a wrapper around a testing framework? We still doesn't know which testing framework are going to use, but I need to start writing unit tests. With this question I want to know how can I switch from NUnit to mbUnit, xUnit or even MSTest. ...

Well-supported Java ADSI wrapper library?

Does anyone know of a good wrapper for the Windows ADSI libraries for Java? (I'm trying to avoid writing my own in JNA - and I'd like to use something standard.) ...

.NET Wrapper Class

Should a wrapper class be an instance class or a class with shared members? I need to create a wrapper class around a 3rdparty library, exposing just 2 functions and hiding all the complexity of the 3rd party class. ...

Transparent and expandable wrapper div, how?

I made an image to easier explain what Im after: Ive read some other questions on the subject but Im not sure the solutions will work for me because my div needs to be expandable and grow as more content is added. Does anyone know how to accomplish this in a simple way? ...

Are GWT wrappers on top of javascript libraries discouraged?

I'm in a process of selecting an API for building a GWT application. The answer to the following questions will help me choose among a set of libraries. Does a third-party code rewritten in GWT run faster than a code using a wrapped JavaScript library? Will code using a wrapped library have the same performance as a pure GWT code if th...

Generate C wrapper from C++?

Hi, I want to generate C wrappers from C++ libraries. There are tutorials on how to do it by hand: http://developers.sun.com/solaris/articles/mixing.html http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html http://yosefk.com/c++fqa/mixing.html But it is too much of a manual labor. For example, for this: struct RtAudio { ...

Wrapping Web-Services for COM

I have zero experience with COM. I actually never thought, I'll need to do something with COM, thinking it's something that I luckily managed to avoid. Oh, well. I need to create a wrapper for Web Services, which could be used from COM. I was hoping, that it's a solved problem, but failed to find an easy solution (for example: just gene...

Use a wrapper class around an object in flex / actionscript.

Main Goal : Select a school listed in the first datagrid, and display all the student records /details of that school in the next datagrid. But, since datagrid is editable and requirement mentions : "Use a Wrapper class around the object to get the data, set the same and save. Ensure wrapper is bindable to take into consideration the upd...

Bad idea to have the same object, have a different side effect after method call.

Hi all, I'm having a bit of a gesign issue(again). Say I have this Buttonpad object: now this object is a wrapper object over one in a com object. At the moment it has a method on it called CreateInto(IComObject). Now to make a new button pad in the Com Object. You do: ButtonPad pad = new ButtonPad(); pad.Title = "Hello"; ...

Non-type template parameter... that's a template! (C++)

I'm basically looking to generate a wrapper for a generic C function without having to manually specify the types. So I have a callback with a fixed prototype but I'm going to need to do some special code in the wrapper based on the type of the wrapped function... So basically I'm thinking about using a static method in a class template ...

Wrapping REST API - Coding Styles Standards

If you are wrapping an API which has different coding style guidelines to the programming languages you are using, do you create an interface that complies with the languages style guidelines or expose the implementation to the user of the API wrapper. A specific example is for ruby and python variables are usually all lowercase and use...

SQLite3 in C#.NET

Hello once again. I'm trying to use SQLite3 in C#.NET. I've googled around and found some different API's. I also checked SQLite's website for wrappers. I like them, but want to write my own wrapper without using an added dependency. All wrappers I find that don't require an added dependency aren't free. I'm wondering how one would rea...

void* to Object^ in C++/CLI

I am working on wrapping a large number of .h and .lib files from native C++ to Managed C++ for eventual use as a referenced .dll in C#. Some of the native C++ functions have a return type of void*. I am not sure how to handle this when I pass back the value to my calling code. For instance: if a C# app calls my dll wrapper, what do I ...

Rule of thumb for naming wrapper classes

I find myself creating a significant number of wrapper classes, purely because I want to mock out the behaviour of Classes that don't lend themselves well to the RhinoMocks isolation model (for instance like DirectoryInfo or WindowsIdentity) Native Win API methods (I normally collect all the methods I need into a single class and wrap...

IPhone SDK: Wrappers, Delegates, and Data - OH MY!

I'm writing a wrapper for another library and I would like to know the BCP for receiving the data returned via the delegate and returning that response to the instance that called the wrapper object. // Original_Instance.m BOOL example = [wrapperInstance getSomeData]; // Wrapper_Instance.m [self thisWillReturnDataToTheDelegate]; retur...