Click here to Skip to main content
16,004,924 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 3:07
Jane13129-Oct-07 3:07 
AnswerRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Chris Losinger29-Oct-07 4:00
professionalChris Losinger29-Oct-07 4:00 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 16:51
Jane13129-Oct-07 16:51 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Hamid_RT29-Oct-07 18:51
Hamid_RT29-Oct-07 18:51 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13129-Oct-07 21:11
Jane13129-Oct-07 21:11 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Hamid_RT29-Oct-07 22:13
Hamid_RT29-Oct-07 22:13 
GeneralRe: How can i convert 24 bits BMP to 8 biBitCount(256 color)? Pin
Jane13130-Oct-07 16:41
Jane13130-Oct-07 16:41 
QuestionAbout dll use [Solved] Pin
Nelek29-Oct-07 2:52
protectorNelek29-Oct-07 2:52 
Hi,

I know that the most obvious answer is "check it out" but...

If I code a dll with some functions and, in a part of the main programm, I use it with

//some code
MyDll::MyFunction ();
//some code


if the DLL is not present when it is supposed to be... obviously the function won't be called, but will the programm give an assertion? or just try the line and go on as nothing?

I have already coded the functions in my program, that should be in the dll. The functions work, but I have no experience with dll and I would like to know the best way to use the functions only when the Dll is there, but having no problems when it is not there.

I have thought to check an easy

CFile f;
if (f.Open ("MyPathToDll\\MyDll.dll", CFile::modeRead))
{
f.Close ();
MyDll::MyFunction ();
//more code
}
else
MessageBox ("This function is only reachable if the \"XXX.dll\" is present on \"MyPathToDll\", "Info", MB_OK);


Is it "good"? Which methode is the apropiated one?


-- modified at 3:09 Tuesday 30th October, 2007

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

AnswerRe: About dll use Pin
TJoe29-Oct-07 3:07
TJoe29-Oct-07 3:07 
AnswerRe: About dll use Pin
Cedric Moonen29-Oct-07 3:17
Cedric Moonen29-Oct-07 3:17 
GeneralRe: About dll use Pin
Nelek29-Oct-07 3:55
protectorNelek29-Oct-07 3:55 
GeneralRe: About dll use Pin
Cedric Moonen29-Oct-07 4:15
Cedric Moonen29-Oct-07 4:15 
GeneralRe: About dll use Pin
Nelek29-Oct-07 4:24
protectorNelek29-Oct-07 4:24 
GeneralRe: About dll use Pin
Cedric Moonen29-Oct-07 4:41
Cedric Moonen29-Oct-07 4:41 
GeneralRe: About dll use Pin
Nelek29-Oct-07 21:08
protectorNelek29-Oct-07 21:08 
GeneralRe: OT Pin
Fernando A. Gomez F.29-Oct-07 12:14
Fernando A. Gomez F.29-Oct-07 12:14 
GeneralRe: OT Pin
Nelek29-Oct-07 21:06
protectorNelek29-Oct-07 21:06 
QuestionSend Down Arrow Key to a Window Pin
vikrant kpr29-Oct-07 2:17
vikrant kpr29-Oct-07 2:17 
QuestionRe: Send Down Arrow Key to a Window Pin
Nishad S29-Oct-07 2:34
Nishad S29-Oct-07 2:34 
AnswerRe: Send Down Arrow Key to a Window Pin
vikrant kpr29-Oct-07 8:41
vikrant kpr29-Oct-07 8:41 
QuestionRe: Send Down Arrow Key to a Window Pin
David Crow29-Oct-07 3:52
David Crow29-Oct-07 3:52 
AnswerRe: Send Down Arrow Key to a Window Pin
vikrant kpr29-Oct-07 8:42
vikrant kpr29-Oct-07 8:42 
GeneralRe: Send Down Arrow Key to a Window Pin
Mark Salsbery29-Oct-07 8:57
Mark Salsbery29-Oct-07 8:57 
QuestionRe: Send Down Arrow Key to a Window Pin
David Crow29-Oct-07 9:09
David Crow29-Oct-07 9:09 
QuestionProgramatically changing the User Locale Pin
a.mulay29-Oct-07 1:46
a.mulay29-Oct-07 1:46 

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.