I need something to embed in my C/C++ program to interpret formulas of the like x*log(x) or sin(x). I would like something small and simple, otherwise I can just embed Python, or Ch, or Scheme, or you name it. But all I need is simple formulas. I have searched the web without luck. Although I don't require it, performance (e.g., the use ...
How can I get an idle thread to be activated again such that its context is restored and execution continued (like if I want a thread to activate after 10 seconds and then be activated after every 5 seconds, in the mean time other threads may continue running)?
...
Short version:
If running a program from VS2008 in Release mode, I want it to use
pathA\externaldll.dll.
If running a program from VS2008 in Debug mode, I want it to use
pathB\externaldll.dll
Long version:
I have a programm that is linked against external dll-files (VTK). I have built the external application myself in both Debug and ...
Hi,
I'm trying to specialize the member function moment() only (not the hole class) like this:
template<class Derived, class T>
class AbstractWavelet {
public:
[...]
template<bool useCache>
const typename T::scalar moment(const int i, const int j) const {
return abstractWaveletSpecialization<Derived, T, useCache>::moment(sta...
I have a file that in C++ I load into array using below code:
int SomeTable[10000];
int LoadTable()
{
memset(SomeTable, 0, sizeof(SomeTable));
FILE * fin = fopen("SomeFile.dar", "rb");
size_t bytesread = fread(SomeTable, sizeof(SomeTable), 1, fin);
fclose(fin);
}
The file is binary code of 10000 integers, so in C++ i...
Hi,
I am about to add a class X that will be used by my three previously designed classes (A, B and C).
The new class X will contain data and functions for new features as well as provide services to the classes that use it to hide lower layers. The problem is that A, B and C will use class X quite differently, that is, use different ...
Hallo!
I want to specialize std::max for a platform-specific fraction type.
The prototype for the system-specific max I want to use looks like this:
fract builtin_max(fract a, fract b);
My idea for a specialized std::max looks like this:
template <> inline
const fract& std::max<fract>(const fract& a, const fract& b) {
return bui...
Hi!
I have a Borland C++ application and I am new to desktop applications.
I would like in one of the pages to embed a web page of another application of mine that the URL is something like:
www.mysite.com/thepage
In HTML I can use <IFrame>. How can I do it in Borland C++?
...
OpenCV provides us functions that they used to train classifiers for their face detection system, called HaarTraining, so that we can create our own object classifiers using these functions.
I'm wondering how to create my own "hand classifier" using these features ?
Please help.
...
Anyone have any experience using SWIG ? I am currently researching QuantLib and saw that C# code can be generated using SWIG. We are exploring options to create a combined library of financial functions using QuantLib and a proprietary closed source library (which will probably be made available as .Net dlls). The idea is to combine bot...
In a template-declaration, explicit specialization, or explicit instantiation the init-declarator-list in the declaration shall contain at most one declarator. When such a declaration is used to declare a class template,no declarator is permitted.
Any one explain this ?
For me it is necessary that i need to check the compilers is foll...
For a long time now I've been using pygccxml to parse and introspect my C++ source code: it helps me to do some clever code-generation during our build process.
Recently I've read a lot about the benefits of the LLVM stack, and especially the benefits that the LLVM Clang parser brings to C++ compilation. I am now wondering if there is ...
After SetWindowPos( hwnd, HWND_NOTOPMOST, x, y, cx, cy, SWP_SHOWWINDOW), a window whose state was previously maximized, does resize and reposition itself as expected, but the system menu does not change, and still presents the menu items for a "currently-maximized" window, even though it is no longer maximized.
Following up with PostMes...
I'm stuck! I have this very simple test code and I can't get it to compile! I have used the same code many times before but now it won't work!
I have this simple program
#include <vector>
#include <iostream>
#include "Rswap.h"
using namespace std;
int main(){
Rswap test();
cin.get();
return 0;}
And then the rswap.cpp...
#include ...
Hey,
I've been working on a game 2d ORPG Engine with a friend of mine, however we're having some troubles organizing and structuring the code.
I could use some pointers, guides, tutorials, etc. on how to keep the code flexible, extendible and maintainable.
Thanks for your time, Xeross
...
LNK1112: module machine type ' X86' conflicts with target machine type 'THUMB'
I'm trying to build Qt for Windows CE/Windows Mobile and I'm following this guide:
http://doc.qt.nokia.com/4.6/install-wince.html
These are the steps I took so far:
I downloaded qt-everywhere-opensource-src-4.6.3
Extracted to C:\Qt\qt-everywhere-opensourc...
Hi,
I need a Function like that:
class Class_A
{
...
bool ShowVariableConstituents( CString ( * ValueOutput )( double ) );
...
}
bool Class_A::ShowVariableConstituents( CString ( * ValueOutput )( double ) )
{
double dUncalculatedValue;
....
if( ValueOutput )
{
CString strValue = ValueOutput( dUn...
Hello. When starting Visual Studio 2008 you are asked to choose a programming layout (preset?), which can be C++ or C# (or generic?). Few months ago I choose the C++ preset because I was working on a C++ project, while now I'm working to a C# project. Is there a way to reset the Visual Studio layout to C#?
Thank you
Tommaso
...
Hi,
whenever i am trying to read out the avi file and converting into grayscal using Opencv 2.1 and VS 2008 in windows xp
i don't why i am getting following run time error at the same time i am unable to get the help on it
ERROR 1
[NULL @ 0x37da10]Invalid and
inefficient vfw-avi packed B frames
detected fps=23 frame (w, h) =...
I'm writing a class which will be used to perform some calculations on a set of values, with scaling based on a per-value weight. The values and weights are supplied to the class' constructor. The class will be part of an internal library, and so I want to put as few restrictions as possible on the clients data structures - some clients ...