MultiVMR9 compile problems

Hello,

I'm stuck trying to compile the Directshow MultiVMR9 sample in VS 2005.
I get the following linker errors:

Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeBeginPeriod@4 referenced in function "public: __thiscall CMultiVMR9RenderEngine::CMultiVMR9RenderEngine(struct IUnknown *,long *)" (??0CMultiVMR9RenderEngine@@QAE@PAUIUnknown@@PAJ@Z)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeEndPeriod@4 referenced in function "public: virtual __thiscall CMultiVMR9RenderEngine::~CMultiVMR9RenderEngine(void)" (??1CMultiVMR9RenderEngine@@UAE@XZ)
RenderEngine.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "public: virtual long __stdcall CMultiVMR9RenderEngine::Render(void)" (?Render@CMultiVMR9RenderEngine@@UAGJXZ)
strmbasd.lib(wxutil.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0

ETC....

Any ideas on what I'm missing?
Or perhaps could someone supply me with project code that will compile?
I'm really at a loss here! Please help.
ryanbeAsked:
Who is Participating?
 
Dariusz DziaraProgrammerCommented:
Add "winmm.lib" to linking list
0
 
Infinity08Commented:
Try adding the library (.lib file probably) to the project options on the linker tab.
0
 
MechanTOurSCommented:
what Runtime library do u use ?

u should try some other options like "Multi-threaded Debug" (/MTd)

u can find this option there :
project options > configuration properties > C/C++ > code generation > RunTime Library
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
MechanTOurSCommented:
btw, could u copy the entire error log ?
0
 
ryanbeAuthor Commented:
Thanks mrblue - now down to just 1 error! yahoo!  I should have mentioned it is the dll project of the MultiVMR9 that I am trying to compile.

The error is:

Linking...
RenderEngine.obj : error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "private: long __thiscall CMultiVMR9RenderEngine::CreateDevice_(void)" (?CreateDevice_@CMultiVMR9RenderEngine@@AAEJXZ)
Debug\MultiVMR9.dll : fatal error LNK1120: 1 unresolved externals

What now?
0
 
Dariusz DziaraProgrammerCommented:
You will need also:

d3d9.lib
0
 
Dariusz DziaraProgrammerCommented:
Just in case: d3dx9.lib
0
 
ryanbeAuthor Commented:
How bout that - it builds! :)  Groovy.
One last question - I'm new to C++ - how did you know these files were needed, can ya give me a clue? I'd love to have one!
0
 
Dariusz DziaraProgrammerCommented:
1. I have some experience
2. Find in DirectX help (MSDN) method that does not link like 'Direct3DCreate9' and see in what library it is defined (what header is required, what platform).
0
 
ryanbeAuthor Commented:

Can't beat good old experience. Thanks very much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.