Are there any bignum libraries that are good for Windows use? I looked at GMP, but unfortunately it does not look like it can be compiled on Windows...I'm going to be doing some custom RSA and hashing routines, and I need something that can handle extremely large integers.
Thanks.
...
Why doesn't the STL string class have an overloaded char* operator built-in? Is there any specific reason for them to avoid it?
If there was one, then using the string class with C functions would become much more convenient.
I would like to know your views.
...
I am writing application using c++, in windows.
I want to get a thumbnail from jpeg, without decoding the whole image.
How Can I read thumbnail from jpeg exif header?
Can any one offer me a some sample code?
Many thanks!
...
Hi
I use a pointer to specify some kind of "shared memory" which I use to
exchange data between different processes/threads. Now I would like to have
a hex dump of the content of the shared buffer. Does anyone know how to do that?
thanks,
R
...
Hello,
I would like to use a 3-d Vector to store and add values between some calculations in c++.
I'm having problems adding the third dimension to my vector.
What I would like to achieve is a vector that for each iteration puts in a 2-D vector and here only the first values for each vector...
So The input would look something like this
...
... like how many memory consumed by what / how many objects, as in JVM heap dump file. Our service process is consuming remarkable memory, which is being complained by others living in a same OS.
The applications structure is weird, it leveraged reverse JNI to call java interface from c++ code, also it's a network application, all thes...
How do I run an XPath query in QT?
I need to sort out certain tags with specific values in a certain attribute. The QXmlQuery documentation is anything but legible.
The schema I'm parsing is the Rhythmbox DB format:
<rhythmdb version="1.6">
<entry type="ignore">
<title></title>
<genre></genre>
<artist></artist>
<al...
Hi
Normalley, one could use the isprint(int) function to determine if a character
is printable or not. This function is included in the estlib.lib in Symbian. Unfortunately,
the capabilities do not allow me to link against this library. Therefore, I wondering
if anybody knows an alternative way to figure out wether a character is printa...
Is it possible to define a C/C++ macro "BUILD(a, i)" which expands to "x[0], x[1], x[2], ..., x[i]" ? Like in
#define BUILD(x, 0) x[0]
#define BUILD(x, 1) x[0], x[1]
#define BUILD(x, 2) x[0], x[1], x[2]
...
Thanks!
Edit:
It seems BOOST_PP_ENUM_PARAMS could do the job. I suppose I could just #include boost, but I'm interested in know...
Hello,
I know a little C and now I'm taking a look at C++.
I'm used to char arrays for dealing with C strings, but while I look at C++ code I see there are examples using both string type and char arrays:
#include <iostream>
#include <string>
using namespace std;
int main () {
string mystr;
cout << "What's your name? ";
getline ...
I know that converting a pointer to one int is unsafe, because the pointer can be bigger than the int in some architectures (for instance in x86_64).
But what about converting the pointer to several ints, an array of them? If the pointer size is 2 times bigger than int then convert pointer* to int[2].
The number of needed ints then is ...
I have a GUI application written in C/C++ using gcc. I need some recommendations for writing an automated test system for it. What tools/scripting should be used? The application runs on Windows.
...
I am running cygwin on windows and using latest version of gprof for profiling my code. My problem is that the flat profile shows zero sec for each of the functions in my code, I even tried to loop the functions(tried a for loop for a million) but gprof is unable to accumulate any time .Please help . Here is one of my sample function.
b...
I'm trying to install WMA DRM licenses files silently so that users would not have to play each song and acknowledge for each license.
I figured out that I need to do something like this :
HRESULT res = CoCreateInstance(__uuidof(RMGetLicense),NULL,CLSCTX_ALL,__uuidof(IRMGetLicense ),(void**) &pLicense );
res = pLicense->GetLicenseFromU...
I have some native (as in /SUBSYSTEM:NATIVE) Windows programs that I'd like to generate minidumps for in case they crash. Normally, I'd use dbghelp.dll, but since native processes can only use functions exported from ntdll.dll, I can't.
So I've implemented the dumper myself. It's almost done, but unfortunately, I've been unable to locat...
Hi!
I have the following situation: there is a table in the DB that is queried when the form loads and the retrieved data is filled into a DataGridView via the DataTable underneath. After the data is loaded the user is free to modify the data (add / delete rows, modify entries).
The form has 2 buttons: Apply and Refresh. The first one ...
I have a string and I want to check if the content is in English or Hindi(My local language). I figured out that the unicode range for hindi character is from U0900-U097F.
What is the simplest way to find if the string has any characters in this range?
I can use std::string or Glib::ustring depending on whichever is convenient.
...
Hi!
I have a struct for which i want to define a relative order by defining < , > , <= and >= operators. actually in my order there won't be any equality, so if one struct is not smaller than another, it's automatically larger.
I defined the first operator like this:
struct MyStruct{
...
...
bool operator < (const MyStruct &b) const ...
I have to update an application to use Boost 1.34 instead of 1.37, and it's causing me a ton of trouble.
One of the biggest problems at the moment is that I don't know Boost threads very well. With 1.34, I get...
error C2039: 'this_thread' : is not a member of 'boost'
...for the code
boost::this_thread::sleep(boost::posix_time::mill...
Hello, i received a small problem to resolve in my free time regarding changing an objects behavior and also the class behavior at runtime in C++. I read a little bit and found this link, really useful for me. http://www.vollmann.ch/en/pubs/meta/meta/meta.html Mr. Volmann made a Meta object protocol(MOP) for defining classes at runtime, ...