Prototypes

A

Anna Smidt

I have moved this to a new topic now.

I think I'm going crazy: I have searched for 2 hours now where the
actual code is that implements these functions. Without success. I have
looked at all include files over and over again, but there is no point
that would tell me where these voids are actually from. I also took a
look at the Object Browser, but it didn't show any of my prototypes.
What would be the next step you would do to find out where the real
functions are?

Anna


This is a totally new question, you should have started a new thread
with an
appropriate subject line.

To answer your question, the lines you show are prototypes aka forward
declarations. The actual code implementing these functions is elsewhere.
This separation of interface and implementation is something that many
other
C-syntax languages (Java, C#, etc) do not allow.
 
A

Armin Zingler

Anna Smidt said:
I have moved this to a new topic now.

I think I'm going crazy: I have searched for 2 hours now where the
actual code is that implements these functions. Without success. I
have looked at all include files over and over again, but there is
no point that would tell me where these voids are actually from. I
also took a look at the Object Browser, but it didn't show any of my
prototypes. What would be the next step you would do to find out
where the real functions are?

[declarations]

I guess these are not your own declarations. ;-) The implementation is
probably in one of the *.lib files that are linked to the application (exe
or dll). Where did you get the declarations from? If it's a 3rd party
component you use, it's documentation should make a statement about the
*.lib files required. You can see the lib files that the linker links to the
exe in the project's properties under
configuration properties->linker->input
(or similar; have only German VC++ 2008 Express here).


Armin
 
S

SvenC

Hi Anna,
I think I'm going crazy: I have searched for 2 hours now where the
actual code is that implements these functions. Without success. I
have looked at all include files over and over again, but there is no
point that would tell me where these voids are actually from. I also
took a look at the Object Browser, but it didn't show any of my
prototypes. What would be the next step you would do to find out
where the real functions are?

Which functions do you use?

Are you still talking about your OpenVC project?
You said you needed to rebuild it because you made a bug fix to
those source. If so, you must have found the sources otherwise
you couldn't have fixed them.

If you are at the PSDK samples: there is no source for Windows
API functions. You include a header with prototypes and add an
import library which helps you in using the corresponding windows
dlls like kernel32, user32 and so on.

Just look up the Win32 API in the MSDN library and you should
find information which header you need to include and which lib
file you need to add to your linker optiones.

When you choose the VC++ wizards you should get projects
created which link to a few standard libs for your convenience.
 
S

SvenC

Hi Anna,
OpenCV and DirectShow compiled wonderfully, no problems with these 2
boys.

I am just working with this library:
http://asmlibrary.googlecode.com/files/asmlibrary_release_2.1.rar
That's where the code comes from that I posted.
There is no documentation at all except a 20 lines readme and inline
comments which don't reveal anything.

There is no source. All you get is the headers and ASMLibrary.lib where
all the implementation seems to be in.

The samples come for VC6, 2005 and 2008 and even with sln files, so
just open them and see how you get on.
 
A

Anna Smidt

Now I understand... I never noticed the ASMLibrary.dll. Now I know what
people are complaining about... I wish I had the source to change them
to my needs.

Anna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top