I'm looking for high performance code (needs to run in real-time), preferably open source, but if there is nothing that's free and high-perf, I'll take something well supported and of high quality for a cost.
Any suggestions?
These are the ones I've found so far, in no particular order:
CodeCogs
GSL
Cephes
Boost MathToolkit
Blitz+...
I want to create a collection of classes that behave like math vectors, so that multiplying an object by a scalar multiplies each field by that ammount, etc. The thing is that I want the fields to have actual names, instead of being treated as an index.
My original idea to implement this was creating a base class Rn with the overloads ...
I know there are startup folders and certain registry keys I need to look into. But how to do that using Windows API? I'm interested to know for Windows XP and Vista. Thanks for your time.
...
Hi,
What's the best/ quickest way/ approach to learn C# programming for a C++ programmer?
Thanks
...
What is the point of them?
I've never used them for anything, and I can't see myself needing to use them at all.
Am I missing something about them or are they pretty much useless?
EDIT: I don't know much about them, so a description about them might be necessary...
...
My program uses Microsoft RPC for interprocess communications. To prepare for receiving RPC calls the program runs the following sequence:
RpcServerUseProtseqEp(), then
RpcServerRegisterIf(), then
RpcServerListen()
The program starts its RPC server with the sequence above, works for some time, then terminates and may later be restart...
I know all kinds of ostreams holds their own internal buffers.
I have to know whether there is some kind of ostream which accept an instance std::string and write on that instance.
(I want to avoid redundant copies)
Note: My question is about the standard library, don't offer me other libraries that can do that, I know they exist. :)
...
I am working with a multiple top level windows application. The main window is a MDIFrameWnd, I put some code in CWinApp to switch m_pMainWnd when switch top level window. It's work fine but fire a assert when I close one of the main window. This assert is from CMDIChildWnd:
void CMDIChildWnd::AssertValid() const
{
CFrameWnd::Assert...
Hi
I wanted to know How to Disable Windows TCP/IP Stack in VC++ [ Programmatically ].
We are doing some raw socket programming using winpcap. So our application does not need Windows TCP/IP Stack and We Want to uninstall it the moment our application starts.
Please help.
Thanks in Advance.
...
Primarily I've done basic (novice level) software development on a Windows machine, but I've always had MS Visual Studio to help me step through the process of debugging.
Now, however, it looks like I will be on Linux, so in order to get ready for the jump I want to make sure I have a tool/tools lined up to help me step through the co...
I have often thought about trying to learn a language like C++ to get a better understanding of computers. To me knowing C/C++ is like the black belt of programming. But then you look around at some great developers and I don't think that they have ever learnt C++.
Is it a good idea for some rainy day (more like rainy year) or should I...
Ok folks,
if I have a class that contains a number of typedef'd variables, like so:
class X{
typedef token TokenType;
bool doStuff()
{
TokenType data;
fillData(&data);
return true;
}
};
Is there any way to override the typedef for TokenType in a derived class?
N.B. This is NOT a good place to use templates (This is already a templ...
What is the precise meaning of numeric_limits::digits10?
Some other related questions in stackoverflow made me think it is the maximum precision of a double, but
The following prototype starts working (sucess is true) when precision is greater that 17 ( == 2+numeric_limits::digits10)
With STLPort, readDouble==infinity at the end; with...
I've not been able to get regex_replace from TR1 working.
#include <iostream>
#include <string>
#include <tr1/regex>
int main()
{
std::string str = "Hello world";
std::tr1::regex rx("world");
std::string replacement = "planet";
std::string str2 = std::tr1::regex_replace(str, rx, replacement);
std::cout << str2 << "\n";
}
str2 is an ...
I was studying deconvolution,
and stumbled upon Richardson-Lucy deconvolution,
I was thinking of writing a simple program to do post-processing using this method,
does anybody know where I can find complete implementable algorithms or source code that I can study and play around with?
Preferably in C++ language or matlab.
I have r...
Do I need to manually call close() when I use a std::ifstream?
For example in the code:
std::string readContentsOfFile(std::string fileName) {
std::ifstream file(fileName.c_str());
if (file.good()) {
std::stringstream buffer;
buffer << file.rdbuf();
file.close();
return buffer.str();
}
throw std::runt...
I have a function that returns a array of 6 doubles.
double* Validation();
I would like to cast this return value in managed code.
array<double>^ validationPosition = gcnew array<double>(6);
validationPosition = Validation();
I get this error:
error C2440: '=' : cannot convert from 'double *' to 'cli::array<Type> ^'
How should ...
I know this is kind of vague, I'm just shooting for general possibilities here to get me on the right track.
I include two libs and their .h's in my MFC Dialog program and compile it, no problem. When I call a function from one of the libs though, it shoots up a dialog box that says "Com Error" "CoInitialize Failed". That's not when I a...
We have a large, multi-platform application written in C. (with a small but growing amount of C++) It has evolved over the years with many features you would expect in a large C/C++ application:
#ifdef hell
Large files that make it hard to isolate testable code
Functions that are too complex to be easily testable
Since this code is t...
I have embedded an IE control in a Win32 app. The only purpose of this app is to ensure that a URl is always loaded and being refreshed every N minutes.
My problem is that almost always the first time the URL is accessed the CSS and JS files are not loaded. This behavior repeats randomly while the application is running.
My webserver i...