Click here to Skip to main content
15,904,288 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Template class and const parameters Pin
Nishad S20-Dec-05 1:43
Nishad S20-Dec-05 1:43 
AnswerRe: Template class and const parameters Pin
Zdeslav Vojkovic20-Dec-05 0:05
Zdeslav Vojkovic20-Dec-05 0:05 
AnswerRe: Template class and const parameters Pin
khan++20-Dec-05 0:31
khan++20-Dec-05 0:31 
QuestionHow to include dlls in VC++.NET application. Pin
snprani19-Dec-05 20:34
snprani19-Dec-05 20:34 
Questionsaving locations of ActiveX in application Pin
Sac87Rak19-Dec-05 20:23
Sac87Rak19-Dec-05 20:23 
QuestionGetting Problem when using NetMeeting SDK Pin
trinadh_t19-Dec-05 20:09
trinadh_t19-Dec-05 20:09 
QuestionNeed help Pin
coolsab19-Dec-05 20:09
coolsab19-Dec-05 20:09 
AnswerRe: Need help Pin
ThatsAlok19-Dec-05 21:33
ThatsAlok19-Dec-05 21:33 
AnswerRe: Need help Pin
vikas amin19-Dec-05 22:59
vikas amin19-Dec-05 22:59 
Questionindex server catalogs Pin
akshayswaroop19-Dec-05 19:33
akshayswaroop19-Dec-05 19:33 
QuestionAbout termintaing System processes.. Pin
Supriya Tonape19-Dec-05 19:30
Supriya Tonape19-Dec-05 19:30 
AnswerRe: About termintaing System processes.. Pin
kakan19-Dec-05 21:19
professionalkakan19-Dec-05 21:19 
GeneralRe: About termintaing System processes.. Pin
Supriya Tonape20-Dec-05 21:56
Supriya Tonape20-Dec-05 21:56 
AnswerRe: About termintaing System processes.. Pin
ThatsAlok19-Dec-05 21:26
ThatsAlok19-Dec-05 21:26 
GeneralRe: About termintaing System processes.. Pin
Supriya Tonape20-Dec-05 22:03
Supriya Tonape20-Dec-05 22:03 
GeneralRe: About termintaing System processes.. Pin
ThatsAlok20-Dec-05 22:25
ThatsAlok20-Dec-05 22:25 
GeneralRe: About termintaing System processes.. Pin
ThatsAlok20-Dec-05 22:58
ThatsAlok20-Dec-05 22:58 
GeneralRe: About termintaing System processes.. Pin
Supriya Tonape21-Dec-05 18:55
Supriya Tonape21-Dec-05 18:55 
GeneralRe: About termintaing System processes.. Pin
ThatsAlok21-Dec-05 20:01
ThatsAlok21-Dec-05 20:01 
GeneralRe: About termintaing System processes.. Pin
Supriya Tonape23-Dec-05 22:27
Supriya Tonape23-Dec-05 22:27 
QuestionRelocatable DLLs Pin
Abhi Lahare19-Dec-05 19:25
Abhi Lahare19-Dec-05 19:25 
AnswerRe: Relocatable DLLs Pin
Optimus Chaos19-Dec-05 22:21
Optimus Chaos19-Dec-05 22:21 
AnswerRe: Relocatable DLLs Pin
Optimus Chaos19-Dec-05 22:22
Optimus Chaos19-Dec-05 22:22 
Questionhow to use "FindResource" Pin
kotiramkoteswararao19-Dec-05 19:08
kotiramkoteswararao19-Dec-05 19:08 
AnswerRe: how to use "FindResource" Pin
kotiramkoteswararao19-Dec-05 20:04
kotiramkoteswararao19-Dec-05 20:04 
sory, its just a little mistake


in above code ,i have done little mistake. The actual code what i am using is..


HMODULE hmod;
HRSRC hr;

hmod=::LoadLibrary("testdll.dll");
hr=::FindResource(hmod,"bitmap1.bmp",RT_BITMAP);

if(hr==NULL)
MessageBox("This is not working");
else
MessageBox("This is Working");


This is code i have written ,but when ever i run,i get only "This is not working" messagbox. This is means we unable to get the resource from dll.

Can you suggest me, possible solution


Spend Every Minute for Success

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.