Hi,
In a C++ project, I use the JNI invocation API to launch a JVM. I've done a little wrapper arount the JVM so I can use all the needed parts in a OO fashion. So far that works great.
Now, if the JVM does not start (JNI_CreateJavaVM returns a value < 0) I'd like to raise an exception within my C++ code.But if I throw an exception aft...
I'm doing a very small windows application consisting of just a single executable. As the program will reside on a SD card I want the application to be as self contained as possible, and I'd rather not have an installer. I'd want the user to be able to simply copy the executable to the SD card and be able to run it straight away without ...
i am looking for a good c++ rule engine. can you please let me know if there there any XML based rule engine for C++
...
I there any method to sleep the thread upto 100.8564 millisecond under window OS. I am using multimedia timer but its resolution is minimum 1 second. Kindly guide me so that I can handle the fractional part of the milisecond.
...
I have these line in my pro*C program. The function initAerage is defined in a C language and I am trying to call this function in a .pcc (pro C++) file.
I am getting an error
Error: initAverage(int i);was declared before with a different language
extern "C"
{
int initAverage(int i);
}
Please help
...
Since when have they been part of standard C++? I think long long is a C++0x feature, is that right? What about long double? Was that already in C++98 or C++03?
...
Hi!
I want to use the systems available windows media player visualizers in my app. Apperently visualizers expose an IWMPEffects interface to the world. My question is how do I enumerate and create instances to the available visualizers on my system? Probably it's just a process of getting the cslid of the visualizers and then create th...
I have a piece of code like this
class Base
{
public:
Base(bool _active)
{
active = _active;
}
void Configure();
void Set Active(bool _active);
private:
bool active;
};
class Derived1 : public Base
{
public:
Derived1(bool active):Base(active){}
};
similarly Derived 2 and Derived 3
Now if i call derived1Object.Configure, i need ...
Possible Duplicate:
What is the use of marker interfaces in Java?
What are marker interfaces and why are they used?
...
I have a book about programming under Windows, and the author uses a function called LPtoDP (MSDN).
But I can't see the difference between code that uses this function and code that doesn't.
I use this function in this way, which seems to me to be a proper way.
POINT po;
po.x = -50;
po.y = 100;
pDC->LPtoDP(&po);
pDC->LineTo(po);
P...
Hello
im trying to programmatic select and change the background color of all the columns of QStandardItemModel
i have this that paint me only the first column out of 5 that the row contains
// getting the rows
QStandardItem* standardItem = m_model->item(i);
//set the color i like all the row to be painted
standardItem->setBackground(Q...
Hello!
I want to automate service myshows.ru. People on it must manually put information about movies that watched.
I want to write program on c++, that get titles of movies in video players and put it to account on service.
What libraries i can use for this work?
P.S Sorry for my english
...
Actually, the title explains it all...
I want to read a stream, but have no idea from where to start.
I've searched the web for some documentation/tutorial/whatever with no luck.
Any help using this lib would be very appreciated.
[CLARIFICATION]
I am talking about MMS stream protocol library that can be found here.
LibMMS is a common l...
Possible Duplicate:
Recursive main() - why does it segfault?
if im calling recursive function without any parameter then stackoverflow error occur so what is the reason behind this
...
. hi .
i have to log all the field in isa web proxy .
where can i find right sample code ?
...
i have a byte array. Now i need to know the count of appearances of a bit pattern which length is N.
For example, my byte array is "00100100 10010010" and the pattern is "001". here N=3, and the count is 5.
Dealing with bits is always my weak side.
...
Suppose I have One set of numbers i.e
{1, 6, 3, 5, 7, 9}
I want to Generate Random number from this set of number only i.e. a Generated number should be random and should be from these number({1, 6, 3, 5, 7, 9}) only.
standard C/C++ function will also do...
...
Hello.
I would like to know how you normally deal with this situation:
I have a set of utility functions. Say..5..10 files. And technically they are static library, cross-platform - SConscript/SConstruct plus Visual Studio project (not solution).
Those utility functions are used in multiple small projects (15+, number increases over t...
I have to create a set of wrapping C++ classes around an existing C library.
For many objects of the C library, the construction is done by calling something like britney_spears* create_britney_spears() and the opposite function void free_britney_spears(britney_spears* brit).
If the allocation of a britney_spears fails, create_britney_...
Hello,
Is there a standard way to handle MFC Edit box defocus event? I mean if I click on the box enter something and then move on on the other component handling event gets fired? Thank you for any help!
...