Invoking Apache-FOP from C++
Hi, Has anyone experience or had problems implementing a JNI wrapper for apache FOP? Bonus points: Any other options for processing xsl-fo from C++? ...
Hi, Has anyone experience or had problems implementing a JNI wrapper for apache FOP? Bonus points: Any other options for processing xsl-fo from C++? ...
On Vista using IE8, I have an instance of IWebBrowser2, which I am using to obtain the current HTML document: IWebBrowser2* browser; CComPtr<IDispatch> disp; HRESULT hr = browser->get_Document(&disp); When this is executed by an Administrator, the call succeeds. However, when called by a regular user, the call returns an error code of...
Hi! I'm currently learning C++ so I don't have much knowledge on the topic . I'm using the C++ primer plus book and here's the problem : Write a template function maxn() that takes as its arguments an array of items of type T and an integer representing the number of elements in the array and that returns the largest item in the array....
Hi, I'm attempting to solve what I thought would be a very simple problem. I want to keep a QPixmap updated with the entire screen contents. You can get such a pixmap by doing this: QDesktopWidget *w = QApplication::desktop(); if (w) { QRect r = w->screenGeometry(); QPixmap p = QPixmap::grabWindow(w->winId(), 0, 0, r.width(), r...
When having a new C++ project passed along to you, what is the standard way of stepping through it and becoming acquainted with the entire codebase? Do you just start at the top file and start reading through all x-hundred files? Do you use a tool to generate information for you? If so, which tool? ...
Hi all, I have never written any IPC C++ on Linux before. My problem is that I will have multiple clients (writers), and a single server (reader). All of these will be on the same machine. The writers will deliver chunks of data (a string/struct) to the reader. The reader will then read them in FIFO and do something with them. The typ...
Could anyone be kind, and tell me how to make a exe file in visual studio 2008 for a win32 console based, c++ program? Thanks ...
Hello I build a DirectShow graph consisting of my video capture filter (grabbing the screen), default audio input filter both connected through spliiter to WM Asf Writter output filter and to VMR9 renderer. This means I want to have realtime audio/video encoding to disk together with preview. The problem is that no matter what WM profil...
what will be the best way to find a prime number so that the time complexity is much reduced. ...
Hi, after reading the book of debugging from Andreas Zeller, I became interested in Dynamic Slicing (http://en.wikipedia.org/wiki/Program%5Fslicing). At the moment I only found relevant tools for Java analysis. Do you know such tools for C/C++? Thanks in advance ...
I am trying to save a file using GetSaveFileName and want to have a couple extra popups at the bottom of my save file dialog to allow the user to specify further options. I am trying to follow the MSDN documentation (specifically the Explorer-style customization) on the subject but can't seem to get my custom item to appear. I believe I ...
Hello, I am curious about a scenario set up like the following example: Here is code that would be placed in a file called Header1.h: #ifndef HEADER1_H #define HEADER1_H #include "Header2.h" class Class1 { Class2 class2Instance; }; #endif Here is code that would be placed in a file called Header2.h: #ifndef HEADER2_H #define HE...
Is it possible to write a C++ class or struct that is fully compatible with C struct. From compatibility I mean size of the object and memory locations of the variables. I know that its evil to use *(point*)&pnt or even (float*)&pnt (on a different case where variables are floats) but consider that its really required for the performance...
Basically, when one types, a keydown event happens. If the key is held for more than a certain time (~1 sec) then the key is repeatedly pressed until keyup hapens. I would like to change the time it takes for the key to be automatically repressed in my c++ application. How can this be done? Thanks ...
I'm automating Excel in Visual Studio 2008 in my 64-bit MFC application. I've added the MFC wrappers and have followed the articles on MSDN on how to implement. Bascically I'm just reading the values of a range. The problem is the Excel process stays loaded in the task manager. Does it have something to do with a 64-bit app running on 64...
Is it possible to prevent overloading of user defined functions in C++? Suppose I have a function as: void foo(int , int); Can I prevent foo from being overloaded, and if so how? If I can, can this be extended to prevent overriding of the methods through inheritance? ...
I'm looking for a better way to this. I have a chunk of code that needs to handle several different objects that contain different types. The structure that I have looks like this: class Base { // some generic methods } template <typename T> class TypedBase : public Base { // common code with template specialization priva...
Unfortunately, search engines have failed me using this query. For instance: int foo = ~bar; ...
Hello, I am building "boost" libraries from boost source code and I have two options: to build it "static" or to build it "shared" (e.g. dynamic). Which is better idea? I prefer dynamic (shared) linking but when I tried to build boost shared libraries (on Ubuntu Linux), I got lots of errors or warnings (why there are always errors, warn...