User Profile
Collapse
-
thanks weaknessforcats , that has made things clear for me.... :-) -
using threads with C++
Hi all,
Following is my program,
My header file,
my CPP fileCode:class Test { private: ........ some declarations...... public: Test(); ~Test(); int AnotherFunc(); //my thread function static DWORD WINAPI threadFunc(LPVOID); }
...Code: -
many ways to do it....
1) record the time(t1) at the start of 'main' . After finishing all execution, record the time again (t2). Now t2-t1 is the execution time of the program.
2) if you are using something dev. tools like DevCpp, i think you can find the program execution time using 'profile analyser'....
i hope this post is of some help and informative to you....Leave a comment:
-
I am not sure why or how there where problems? I was pretty impatient during that time (so obviously less interested too) and hence dropped the idea. May be I can try the newer versions now....Leave a comment:
-
thanks sicarie for making weaknessforcats 's point clear :-) . Sure this forum is where I mostly post if I am stuck....
@drhowarddrfine - I actually didn't try FreeBSD, but I tried PCBSD and DesktopBSD some time back. One, I was not even able to install in my laptop and with other there were problems. So, i just dropped them.....Leave a comment:
-
my suggestions would be,
Damn Small Linux - runs even on a 486 based (would like to meet somebody using it) with 16MB of RAM. So your system must be abundantly resourceful...
I don't exactly know how to rate the difference in performance you would see.....
Others that could be considered are,
Puppy Linux
Zenwalk LinuxLeave a comment:
-
thanks for the suggestion sicarie....
i think i will mostly settle with Debian...but ppl. suggest to try Ubuntu for some more time. I also found this suggestion valid, cause there is a new release of Ubuntu for every 6 months. it's also based on Debian (my fav. except the Text based installer when setting up) so can use it's software packages.....Le ts see.....
I found this following link of some interest to me,
...Leave a comment:
-
which GNU/Linux distro to choose?!
Hi all,
I have a unique problem...I don't know which distro to choose from? I have tried the following,- Redhat first, Since I was a kid in computers at that time, got vexed and dropped it.
- Used Suse for some time in official works. Used versions 9.3 and then 10.2 for some time on my personal laptop.
- Experimented with Debian version 3 and 4. Liked this very much
- Finally tried Freespire and live CD of Ubuntu....
Now, I m totally... -
-
C++ can connect with database using SQL. So, try some SQL library available on the net. For eg:
http://www.sqlapi.com/OnLineDoc/index.htmlLeave a comment:
-
What do you want to know? what have you done? Some thing like this can act as a guideline,
1) Register the mouse1 press event.
2) Record the properties of the item selected.
3) Register the mouse1 release event.
4) Get the location(of the destination), properties etc..etc.. that you may need to do while moving.
5) Create a copy of the item in the new location and if it's successful remove the old item....Leave a comment:
-
There is one more reason I wanted you take a look at the code. I assume it will give you a fair idea about the amount of work you need to put in. You had mentioned in one of your posts that you need to read the entire contents of hard drive in 40 odd lines of code. You will get to know whether the target is atleast possible or not....Leave a comment:
-
As all have mentioned there is a lot you need to do before doing programming.
In Linux, I think you have deleted files recovery option if the file system is ext2 under midnight root. Get a hang of that code and may be you can use that as a starter.Leave a comment:
-
AFAIK wav files are in Resource Interchange File Format Services(RIFF) format by MS.
Following link will provide some insight about that format.
http://msdn2.microsoft.com/en-us/library/ms713231.aspx
I think this link will be a good directive for programming,
http://msdn2.microsoft.com/en-us/library/Bb206370.aspx.
Try a simple search in any one of your favorite search engine,...Leave a comment:
-
http://biophyrs.bp.dal .ca/OpenVMS/83final/5841/5841pro_content s.html - Open VMS programming concepts
http://h71000.www7.hp. com/DOC/os732_index.htm l - OpenVMS system documentation link from HP
http://www.2cool4u.ch/operating_syste ms/vms/6489ptoc.htm - Open VMS manual.
http://www.itec.suny.e du/scsys/vms/vmsdoc/72final/5932/5932pro_content s.html - OpenVmS RTL library manual.
Adding this,...Leave a comment:
-
Thanks for the reply weaknessforcats .....The #dictionary that I have mentioned refers to the Common Data Dictionary(CDD) concept of OpenVMS. The "#pragma dictionary" that I have asked is the ANSI C equivalent, but my question was whether the CDD concept is present in Linux. I think I didn't frame my question clearly....I posted the same question in another forum and following is a reply I got,
The #pragma dictionary directive...Leave a comment:
-
#pragma dictionary directive in Linux?
hi,
I would like to know whether "#pragma dictionary" exists in Linux. I have read that this is an ANSI equivalent of "#dictionar y" concept present in OpenVMS system. In the following link it has been mentioned that "#pragma dictionary" is ANSI C complaint,
http://docshare.isti.cnr.it/cgiplus-...er=http%3A/www... -
I think you will know that "a destructor is called for a class object when that object passes out of scope" . You are certain this is not your case.....This is a simple thing, but many of us (rather me) tend to forget this often....Leave a comment:
-
running VMS....
actually there are two headers specific for it, they are "starlet.h" and "rms.h" (rms has some 4 different header files included in it). Need to figure out some equivalents for them in linux?
I also would like to know, other than these two are there anymore header files specific for VMS....Leave a comment:
-
Found this,
http://h71000.www7.hp. com/DOC/os732_index.htm l
although not much of use to me, thought might be of use to somebody else in TSDN.... :)Leave a comment:
No activity results to display
Show More
Leave a comment: