|
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
|
|
|
|
|
As I'm a network administrator in my full time job and a programmer in my spare time, I'm curious about Buffer Overflow's.
I've seen many security vulnerabilty's released as an exploit of a Buffer Overflow. What exactly does this mean, and how can I as a programmer prevent them from happening?
Thanks!
Frank
"Keyboard Error - Press F1 to Continue"
|
|
|
|
|
consider this old practice.
char input[20];
scanf("%s",input);
if you enter upto 20char its ok, but over 20chars causes the buffer to overflow and exception is raised.
|
|
|
|
|
In terms of prevention, look for strsafe.h on the MSDN web-site.
99.9% of the time, the buffer overflow attack is possible because someone was lax about checking what was being copied into a buffer, either because their routine doesn't know how big a buffer it's been given, or they just didn't bother.
It has to be said that the new features of the VS.NET C++ compiler help, but the problem is that the developer is likely to take the view that their code is safe because it didn't flag up as an overrun when it was tested. The real question is: can it be made to overrun?
Steve S
|
|
|
|