|
Is there anyone out there who's had experience with this library? I'm new to these large libraries and I've no idea how to install it so that I can use it in a program. My question is basically how to I add the library to my project so I can use it? Do I have to add a lib file or something? Any help would be much appreciated. Step-by-step instructions would be the best because I am totally lost on this.
Thanks.
- monrobot13
|
|
|
|
|
Doesn't boost come with these instructions ?
You need to include the right header files, and link to the right lib files, which means you'll want to add to your projects search paths. What version of VC are you using ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Not that I could find, it came with instructions on how to use the make files to create the libs and dll's and move them to the vc6 directories for each type, but that's really it. Maybe that's enough, but I can't figure out how to allow my project to use these files. To I have to add them physically to my project?
I'm using VC6 for this project. Any help on getting this to work would be very appreciated.
[EDIT]
This is directly from the documentation:
"Finally when you use regex++ it is only necessary for you to add the <boost> root directory to your list of include directories for that project. It is not necessary for you to manually add a .lib file to the project; the headers will automatically select the correct .lib file for your build mode and tell the linker to include it."
I did this by going to the projects settings and adding it to the list of include files, but when I try a piece of code like:
boost::reg_expression e; I get an error that reg_expression is not a valid type.
- monrobot13
|
|
|
|
|
Ah - make files. Typical.
Your zip should include something like an include and a lib directory. In VC6, click tools/options/directories. On the right is a drop down. Set it to show directories for include files, add your include directory. Do the same for library files and your lib directory. Now in your project, click PRoject-Settings ( or hit Alt-F7 ). On the link tab, in the 'object/library modules' text entry box, type in the name of the lib file/s that contain the code you want to use ( read the docs ). Now you're set, you just need to #include whatever header files you want from that include directory, and they should compile and link OK.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Worked perfectly. Thanks very much for the help.
- monrobot13
|
|
|
|
|
Yep, I know your pain.
What we ended up was building a separate Regexp dll. However, I would recommend building a static library to avoid issues with multiple instances of CRT.
Sorry, no step-by-step instructions 
|
|
|
|
|
Hi everyone,
Now I'm writing an application in which I need to embed the Acrobat Reader component inside in order to display some PDF files. I'm novice in this section. I don't know how to do this .
Any solution is really highly appreciated.
Best regard.
|
|
|
|
|
I believe when you install Acrobat Reader an ActiveX component is also installed. Perhaps you could use that ?
Elaine
The tigress is here 
|
|
|
|
|
The problem is that I don't know exactly how to embed a component into and MFC application .
Could you give me some example?
Best regard.
Nothing is impossible!!!
But human's ability can never pass 50% of themselves.
|
|
|
|
|
Create a dialog based MFC application and on the dialog right click and choose 'Insert ActiveX object'.
That brigns up a list of the objects registered on your PC.
When do do this you will be prompted to allow Visual C++ to create a class for the object (say yes).
Then go to the class wizzard, go to member variables and create a member variable for the ActiveX object on the dialogue.
Elaine
The tigress is here 
|
|
|
|
|
Firstly, Thanks a lot.
But another question :-> : in order to control that component (open a PDF file, close, ... dynamically ) what should I do???
|
|
|
|
|
Sorry, I haven't used PDFs myself just ActiveX components in general.
Elaine
The tigress is here 
|
|
|
|
|
Hi, i know this question has probably been asked 1 million times (but i cant seem to find an answer)
How can you read the ID3 tag (track name, artist, etc) from an mp3 file WITHOUT using COM, Media player extensions, etc. ONLY whats in the C++ std lib and the W32 API?.
i figure that this information is probably written in all mp3 files at a fixed position (the start probably?) along with its lenght, if so, i guess it would be realatively easy to just open the file the "raw" mode (via fopen(), CreateFile() or whatever), read the lenght of the info, create a buffer with the proper size, and put the info itself in the buffer. Can anyone point me in the proper direction?
Thanks!
|
|
|
|
|
It's at the end, ID3 v1 is clear text, v2 is compressed. There's a number of free classes on the web that do it, I don't have any of them anymore, sorry.
Please don't use fopen, unless you're using C and not C++. Use iostreams where you can.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
|
Go to http://www.wotsit.org and search for "MP3".
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
|
|
Thank you all for your answers, i think ill go with the id3lib.
Thanks!
|
|
|
|
|
Not sure where this belongs since it is a programming question:
Given a set S of n axis parallel rectangles, defined by their top-left and bottom right points, describe and analysis an efficient algorithm for determining the area of the union of S. Note that since the rectangles my overlap the answer in not simply the sum of the areas of the rectangles. Hint: Imagine sweeping a line over the rectangles and performing operations on a data structure when the line hits either the start or end of a rectangle.
From here[^]
|
|
|
|
|
It's a brave man indeed who posts a homework question with a link to the homework. It looks like you're past your due date tho ?
And I agree with the hint, try making an array of the points, sort them and then pass over them, keeping track of when you're in at least one rectangle.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Do you really expect us to take your 'take home quiz' for you?
Software Zen: delete this;
|
|
|
|
|
Apparently he does. But at least he's got the guts to link to the original question, so there's no doubt what it is...
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Hi,
it should be no problem. Sort x coords (starting and ending) of rectangle,
then proceed from left to right. And consider each point as an event. When you come to starting point of rectangle A, add rectangle A to list and test its y coords against all other rectangles in list. When you come to end point of rectangle A, remove rectangle A from the list. This should help you to determine total overlap area.
This algorithm should run in O(N*Log N + K), where N is number of rectangles and K is number of overlap areas. So note, this algorithm is
only good, when there is not great number of overlapping rectangles, because
it gets asymptotically to O(n^2). In such case, it's better to use
brutal force algorithm.
Pavel Celba
|
|
|
|