<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>Hi,<BR>
 <BR>
Thanks a lot for you help, your reply is really helpful:)<BR>
I found that the VLC_XXX functions are in the vlclib.dll and LIBVLC_XXX functions are in the vlclib-control.dll in 0.9.0 <BR>
that's why when I compile the program, it passed, but when I run it, the loadLibrary("vlclib.dll") function always said the vlclib_xxx functions can't be loaded. <BR>
After I loaded all the functions from correct dll files, I can use libvlc_playlist_get_media_instance() now;) and the libvlc_video_get_width returns the correct data, and the libvlc_video_resize function works, cheers!<BR>
 <BR>
When I hook the video in my own application window, is that possible that I resize the video while keep my application window the same size? for example, I zoom out the video from 100*100 to 400*400 and keep the window the same size 100*100, then I can get the result that only part 100*100 out of the 400*400 video displayed in the application window? because I need to zoom in and zoom out video in my fixed size application window.Are there some functions already realize this?<BR>
 <BR>
I have another problem when I compile and link the libvlc.dll (Thanks for you patience again:)~~)<BR>
I am now using the way <A href="http://wiki.videolan.org/LibVLC_Visual_C">http://wiki.videolan.org/LibVLC_Visual_C</A> to load the vlclib.dll before I use the dll functions. <BR>
I need to write my own head file to do the<BR>
1.typedef struct, i.e.: typedef struct vlc_list_t vlc_list_t;<BR>2.typedef function, i.e.:typedef libvlc_instance_t * (*_LIBVLC_NEW)( int , char **, libvlc_exception_t *);<BR>
3.define variables, i.e.:_LIBVLC_NEW libvlc_new;<BR>
then in the implementation *.cpp file, load everything.<BR>
4.loadlibrary,i.e.: libvlc = loadLibrary(L"libvlc.dll");<BR>
5.loadFunction, ie: libvlc_new = (_LIBVLC_NEW) GetProcAddress(libvlc_control, "libvlc_new")<BR>after above five steps, finally I can use the functions.<BR>
 <BR>
while in the <A href="http://wiki.videolan.org/LibVLC_Tutorial">http://wiki.videolan.org/LibVLC_Tutorial</A> example,<BR>
it seems quite easy, only need to include the headfile from the source:<BR>
#include <vlc/libvlc.h><BR>
then functions in the dll can be called.<BR>
However, when I include the headfiles, follow the second example, in Visual C++ 6.0, Link problems come:<BR>
Compiling...<BR>testvlc090.cpp<BR>Linking...<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_destroy<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_instance_release<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_instance_stop<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_instance_play<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_descriptor_release<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_instance_new_from_media_descriptor<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_media_descriptor_new<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_new<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_exception_init<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_exception_get_message<BR>testvlc090.obj : error LNK2001: unresolved external symbol _libvlc_exception_raised<BR>Debug/testvlc090.exe : fatal error LNK1120: 11 unresolved externals<BR>
<BR>If there is some library files as libvlc.lib, problems may be solved, but I can't find any lib files in the source.<BR>
What mistakes I have? <BR>
 <BR>
many many thanks~~<BR>
 <BR>
Yours<BR>
Jay<BR>
 <BR><br /><hr />通过 Live.com 查看资讯、娱乐信息和您关心的其他信息! <a href='http://www.live.com/getstarted.aspx ' target='_new'>立即尝试!</a></body>
</html>