|
Nelek wrote: And with the others... I have thought to statically link the main dll because it will always used, and the others dinamically to be choosen when needed.
Nope, you can't statically link with dll's. In case of MFC, they gave you the choice because they provide both versions: dll or static library, so you can simply choose which one you use.
In the case of third party dll's, you won't have the choice, you need to distribute them with your application (except if they provide a static library too, which I doubt).
|
|
|
|
|
From the others DLLs there is only one third party DLL, the rest have to be programmed by me. And there is where I don't know how to start with
Actually I would prefer to programm my functions in a new module/class and just calling the third party dll to stablish the connection when needed, but my boss wants to do it in different dlls and that is what confuse me. Once the connection is made, I should theoretically be able to read from / write to with usual functions.
I know that I need to learn about DLLs and more in programming but the f***ing project has a deadline and I'm afraid about it
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
|
|
|
|
|
if you don't mind can you please explain how to check and use Dependency Walker????
thanks
|
|
|
|
|
MFC42D.DLL is the debug version of the MFC library and is only installed with Visual Studio. If you compile your program as a release version, it will use MFC42.DLL which is present on all Windows systems.
Steven
|
|
|
|
|
THANKS A TON....it worked....
1 more help required please, how to incorporate MS Office package file in my API????
|
|
|
|
|
See here, particularly the last part.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
THANKS FOR THE LINK... it should help, i'll study this and come back but my specific requirement is that, i want my API to be executed when somebody tries to open a specific pre decided file of MS Office package.... can u help me with this or some kind of referrence ????
|
|
|
|
|
And if your loads a DLL at run time, you wont be able to check this with "depends". So you need to check what are the dlls your exe might use and check "depends" for all these dlls. Otherwise it would keep on failing !
Jemmy : Deadline? Pfft, a real programmer eats deadlines for breakfast. :P
Mark: I thought real programmers ignored deadlines
Best wishes to Rexx[^]
|
|
|
|
|
I am doing one project in the book "Data Structures and Algorithms with Object-Oriented Design Patterns in C++". The project is designing a 3D array class based on previous 2D array class.
Code as follows:
template <class t="">
class Array2D
{
public:
Array2D(int w, int h):width(w), height(h), array(w*h) {}
... ...
protected:
int width, height;
Array<t> array;
}
template <class t="">
class Array3D
{
public:
Array3D(int l, int w, int h):length(l), width(w), height(h), array(l) {}
... ...
protected:
int length, width, height;
Array< Array2D<t> > array;
}
I am planning to create a array with elements of 2D array. I could use the initializer "array(l)" to define the length of array. But the size of element "Array2D<t>" should be "width*height". But I don't know how to initialize the size of "Array2D<t>" in the class of Array3D.
Could anybody give me some advice please?
|
|
|
|
|
One solution can help you to make something new:
class Array2D
{
public:
Array2D(int w, int h):width(w), height(h), array(w*h) {}
... ...
protected:
int width, height;
Array array;
}
template
class Array3D :public Array2D
{
public:
Array3D(int l, int w, int h)
: Array2D( w, h), length(l)
{}
... ...
protected:
int length;
//Array< Array2D > array;
}
|
|
|
|
|
does anyone know how to take a sample signal from a wav file? thank you
|
|
|
|
|
What did you mean by sample signal? Did you mean the sample rate?
- NS -
|
|
|
|
|
You need to know the format of a WAV file. Here's an example:
WAV File Format[^]
Using the format you can work your way through the file to the samples.
If the samples are compressed, you can use the Microsoft
Audio Compression Manager[^] or some other method to uncompress
the samples.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm beginning C++. When I put a year, it calculate a month and day (ex. 5 23) for a particular holiday.
How do I convert these numbers into words. (ex. March Twenty Three)
Am I suppose to use individual functions or if-else statement? How is it done?
Thanks.
|
|
|
|
|
The simplest way that you can done easily is using an array.
Eg:
char* sMonth[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
cout << sMonth[nMnth];
But for the date, it is costly, but you can use...
I suggest implement a logic for the date.
- NS -
|
|
|
|
|
Is there another way, perhaps functions or if-else statements?
Our class haven't learned about arrays yet.
|
|
|
|
|
I see...
I think you are seeking for a logic using if-else or functions, right?
Well...
char* MonthToStr( int n )
{
if( n == 1 ) return "Jan";
else if( n == 2 ) return "Jan";
else if( n == 12 ) return "Dec";
else return "Invalid";
}
main()
{
char* s = MonthToStr( 1 );
}
- NS -
|
|
|
|
|
i think u should use switch() and case to print words
ya its little bit lengthy
i dont know about any function for this
|
|
|
|
|
hey, this is a huge task.
if you're really beginner, don't you have anything easier to start with ?
|
|
|
|
|
My prof. assigned it too me. I know this crap is hard. The first 2 assignment was a piece of cake, but the third I'm really stuck on. he never showed me how to convert number to words before.
|
|
|
|
|
ahh, so, it's a homework, and you want us to do it for you !!?
no way dude !
do it yourslf first, then if you have problems with the code you posted, post specific question about it, but never expect people to do the job for you.
|
|
|
|
|
I'm doing the best I can do my own homework, I've read over 40 pages in my textbook today trying to figure this sh*t out. And I'm stuck. Looking at your recent post, you seem to be interested in putting people down or posting useless messages.
What do you think tutors are for? Helping with their homework, not doing it for them. And I need a tutor!
I'm not asking people to do my homework. If you can't help, don't say nothing.
|
|
|
|
|
correction sir.
i'm a major member of this site, and no, i'm not always pulling people down. i'm doing this only when i'm judging it's necessary; and that's the case here.
moreover, as you're talking about "tutors", you have to know that no one is paid to give answers on this forum. we do it for pleasure, but if to OP is not doing it's own tests, no one will do them for him...
|
|
|
|
|
you think being a major member of the site makes you better? 8 out 10 of your post are junk. the people you are judging seems to be the beginners, if you believe beginners threads are irritating or stupid than let it be, you don't need to post. I've seen plenty of great helpers here and your not one of them.
|
|
|
|
|
MoboTech wrote: you think being a major member of the site makes you better? 8 out 10 of your post are junk
what makes you think so ?
being a member for 20 days ?
crap !
i have nothing more to argue with you, stupid kid. go to you class, and learn what your teacher teaches you.
only then, if you have a technical question, then i'd be glad to help you, but only if you show that you tried a bit by yourself.
|
|
|
|