Click here to Skip to main content
15,882,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionprogram executing error Pin
Y_Kaushik1-Jun-06 20:31
Y_Kaushik1-Jun-06 20:31 
AnswerRe: program executing error Pin
_AnsHUMAN_ 1-Jun-06 20:37
_AnsHUMAN_ 1-Jun-06 20:37 
AnswerRe: program executing error Pin
toxcct1-Jun-06 21:50
toxcct1-Jun-06 21:50 
QuestionFFMPEG(Libavcodec DLL)+VC++ Pin
RahulOP1-Jun-06 20:29
RahulOP1-Jun-06 20:29 
AnswerRe: FFMPEG(Libavcodec DLL)+VC++ Pin
Hamid_RT1-Jun-06 20:37
Hamid_RT1-Jun-06 20:37 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
RahulOP1-Jun-06 21:08
RahulOP1-Jun-06 21:08 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
Hamid_RT1-Jun-06 21:31
Hamid_RT1-Jun-06 21:31 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ [modified] Pin
RahulOP1-Jun-06 22:43
RahulOP1-Jun-06 22:43 
I have already had a look at that. But am unsure about the typedef thingy. Plus i am using the AfxLoadLibrary option.
This is what I am trying and it builds and executes fine

HMODULE hmodule;<br />
hmodule = AfxLoadLibrary("libavcodec.dll");<br />
    if (!AfxLoadLibrary(_T("libavcodec.dll")))<br />
       // return 1;<br />
	   AfxMessageBox("failed to load");<br />
	typedef void * (__stdcall *avcodec_register_all)();<br />
GetProcAddress(hmodule,"avcodec_register_all");<br />
void * objptr= avcodec_register_all();


I know this will sound dumb but if I wanted to encode video, I will have to typedef every function that I call fm the DLL?
-- modified at 4:45 Friday 2nd June, 2006
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ [modified] Pin
Hamid_RT2-Jun-06 1:10
Hamid_RT2-Jun-06 1:10 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ [modified] Pin
RahulOP4-Jun-06 18:36
RahulOP4-Jun-06 18:36 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
Hamid_RT4-Jun-06 22:24
Hamid_RT4-Jun-06 22:24 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
RahulOP4-Jun-06 22:38
RahulOP4-Jun-06 22:38 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
Hamid_RT4-Jun-06 22:54
Hamid_RT4-Jun-06 22:54 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
RahulOP4-Jun-06 22:57
RahulOP4-Jun-06 22:57 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
Hamid_RT4-Jun-06 23:02
Hamid_RT4-Jun-06 23:02 
GeneralRe: FFMPEG(Libavcodec DLL)+VC++ Pin
RahulOP4-Jun-06 23:12
RahulOP4-Jun-06 23:12 
QuestionDevice context trouble Pin
shivditya1-Jun-06 20:29
shivditya1-Jun-06 20:29 
AnswerRe: Device context trouble Pin
Hamid_RT1-Jun-06 20:43
Hamid_RT1-Jun-06 20:43 
GeneralRe: Device context trouble Pin
shivditya1-Jun-06 21:10
shivditya1-Jun-06 21:10 
GeneralRe: Device context trouble Pin
Hamid_RT1-Jun-06 21:35
Hamid_RT1-Jun-06 21:35 
GeneralRe: Device context trouble Pin
shivditya1-Jun-06 21:44
shivditya1-Jun-06 21:44 
Questionprogram executing error Pin
Y_Kaushik1-Jun-06 19:53
Y_Kaushik1-Jun-06 19:53 
QuestionRe: program executing error Pin
Hamid_RT1-Jun-06 20:12
Hamid_RT1-Jun-06 20:12 
AnswerRe: program executing error Pin
toxcct1-Jun-06 21:49
toxcct1-Jun-06 21:49 
QuestionClosing a invisible web browser Pin
KongHL1-Jun-06 19:47
KongHL1-Jun-06 19:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.