processes in g++
hello everyone, can somebody please explain what exactly is going on when I do in my Unix > g++ -o hello hello.cpp and > g++ hello.cpp what is the difference? Only renaming from a.out to hello? thanks in advance ...
hello everyone, can somebody please explain what exactly is going on when I do in my Unix > g++ -o hello hello.cpp and > g++ hello.cpp what is the difference? Only renaming from a.out to hello? thanks in advance ...
Well I have created a DLL using the Article from CP. For creating this DLL aslso, I have used VS2008. Now I am not sure how can I call this DLL from another C++ application created in VS2008. When I click on Refrences>Add New Reference this is asking for the project folder not for the DLL path. In the Code Project article , there are f...
Remember the game Civilization, where there was a large scrollable map with different behavior of some tiles. Or in Google Maps there is also a map where tiles are loaded with Ajax. Where can I find more information on tiles classes (in C++)? How does a class hierarchy look like to implement a scrollable canvas with tiles? ...
I have two classes: class A { public: int i; }; class B : public A { public: int i; }; Suppose that I created an object for class B B b; Is it possible to access A::i using b? ...
Hi , I have written a service which is dependent on other other service. Usually if other service timeouts or not responding then my service response time is affected. Is there any way I can find out that for how much time the service outage is so taht i can wait for that many seconds and then retry. Thanks, Shruti ...
#include <iostream> using namespace std; class Imp { public: int X(int) {return 50;} int Y(int y) {return y;} }; int main() { Imp i; cout << i.X(100) << endl; return 0; } This code works and prints out 50. My question is what happens to the argument passed? Just out of curiosity. :) ...
Here is the Valgring report: ==14546== Thread 5: ==14546== Invalid free() / delete / delete[] ==14546== at 0x490555D: free (vg_replace_malloc.c:235) ==14546== by 0x3BF7EFAA8F: free_mem (in /lib64/tls/libc-2.3.4.so) ==14546== by 0x3BF7EFA581: __libc_freeres (in /lib64/tls/libc-2.3.4.so) ==14546== by 0x4802676: _vgw_freeres (v...
I'm using VS2008 & C++ and I'm trying to create a command line program that sends an email. I've looked on line and found some sample programs but none will compile for me. Does anyone have an example program for me? Thanks ...
Hello coders out there! Currently I want to optimize my 3d engine for consoles a bit. More precisely I want to be more cache friendly and align my structures more data oriented, but also want to keep my nice user interface. For example: bool Init() { // Create a node ISceneNode* pNode = GetSystem()->GetSceneManager()->AddNode("vie...
Hi, i have couple of query's with respect to DLL, 1)If i load the DLL in run time, i guess DLL will be in separate thread right? 2)If i call a function present in DLL, and that function takes much time to return the value then how can i make my application thread to wait till the DLL's function return value. How can i solve the seco...
Hey, I've been trying to get the MySQL connector working I've installed both the connector and the mysql client library but I am still getting this error: obj/Database.obj: In function `Database::connect()': /home/xeross/alpine/src/server/Database.cpp:13: undefined reference to `get_driver_instance' collect2: ld returned 1 exit status ...
After moving an object, it must be destructable: T obj; func(std::move(obj)); // don't use obj and let it be destroyed as normal But what else can be done with obj? Could you move another object into it? T obj; func(std::move(obj)); obj = std::move(other); Does this depend on the exact type? (E.g. std::vector could make specific ...
Possible Duplicate: round() for float in C++ In cmath there is floor and ceiling, but I cannot find round. How does one round with the standard library without writing a function and dragging it around into all projects? Thanks ...
I am working on a simulator for a microprocessor, written in C++. I am looking for a way to model state elements in the hardware that have just been powered up and have not yet been reset in any way. A real state element would have an unknown value that is either 0 or 1, but in software models this is commonly modeled as an X, meaning ...
Hi all, I have code like this: bool doSomething() { std::cout << "I'm here!" return true; } const bool x = doSomething(); If placed in a cpp-file in my Visual C++ console application, the code is executed as expected before entering the main() method. However, if I place this code in a .cpp-file inside a static link library pro...
The line of code i need to translate from C++ to C#: void GetAnalysisModeName( ON_wString& name ) const; I've tried with: public override void GetAnalysisModeName(string name){} But it tells me that the return type has to be a string. ...
I'v created this class here: //Integer rectangle class class AguiRectangle { int x; int y; int width; int height; public: bool isEmpty { return x == 0 && y == 0 && width == 0 && height == 0; } int getTop() { return x; } int getLeft() { return y; } int ge...
This must be simple, but I guess I'm searching with the wrong key words. I have a visual studio solution(2008) that includes two projects (win32). is it possible for one to launch another? they are entirely self sufficient programs. ...
Hi2all, what a good-way for parsing html page, by using QWebKit (lang cpp). I need to view frame, trimmed <div id="chat_wrapper"> *any_html_data* </div>? ...
Hello, all! I don't know if 'overridden' is the right word here. In my programming class, I have to create a circular list, such that each node node contains a pointer pointing to the next node and the final node points to the first node. In addition, there is a tail node that points to the last node added (its null before any nodes are ...