Well you cannot create a managed dll in VC++ 6.0 so you have to use at least VC 2002 for that purpose. Once you create a managed dll it can consumed from any COM compatible language. So you can call it from VC++ 6.0.
You can do this.
you just need to add a reference to the dll in the Proect\Property window under the COmmon Property\Refernece link.
Click to the add new reference button and browse to the you .net dll.
You can now use your dll in MFC. You should use gcnew insteasd of new for creating an object to a managed class.
Javed A Ansari
I recently got offered a job by this entrepreneur. He basically knew that I was a programmer and wanted to hire me but he had one condition: By tomorrow I am suppose to create a Visual C++ program in Visual Studio 2008 that is able to play movies and through the code chose what position (what time) of the movie to start. He doesn't care how I do it or who I ask, he just want it done.
Since I have no Visual Studio experience, (I program in Java and a little C) I tried looking around at the different options I have. I came up with 4.
1. I can use a command line through C to call window media player but then I would not be able to chose what position of the movie to start playing
2. I can use MCI but when I tried dragging the code in http://msdn2.microsoft.com/en-us/library/ms712870(VS.85).aspx on to my program I got compiling errors.
3. I can try using the Window Media Player 10 SDK but that seems really compilcated and I don't have the time to learn all that in a day.
4. I can try using some other open source programs or thir-party program like VLC and hope it would run.
I basically tried each of those options and I always run into compiling problems, I think I am the closest with MCI but I am not sure. I am jsut very stump right now as I realize if only I have time to learn VIsual Stuido 2008, how easy and fun it would be to make Windows program. Can anyone give me any hints or advice on how to solve this problem? I would be very grateful.
actually it is third party dll . they send me the sample application
that use run time loading of .dll i.e. using getprocaddress ()etc.
that is very hard I donot want to use this. thats why I am asking for
import libary .
It's not really that hard loading a dll at run time.
Just make sure your function-pointers are correct, and since they provided a sample application you can basically copy-paste the loading of the dll and functions you require. This will save you headaches if they ever send an improved dll, you will not need to rebuild your own application then.