Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:22
Super Hornet13-May-09 0:22 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:29
Super Hornet13-May-09 0:29 
AnswerRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 1:21
Super Hornet13-May-09 1:21 
AnswerRe: Loading Resource from dll fails Pin
Stuart Dootson13-May-09 0:10
professionalStuart Dootson13-May-09 0:10 
GeneralRe: Loading Resource from dll fails Pin
Super Hornet13-May-09 0:23
Super Hornet13-May-09 0:23 
QuestionNot able to connect to the database Pin
vital_parsley200012-May-09 23:34
vital_parsley200012-May-09 23:34 
AnswerRe: Not able to connect to the database Pin
CPallini12-May-09 23:40
mveCPallini12-May-09 23:40 
AnswerRe: Not able to connect to the database Pin
Madhu Nair12-May-09 23:44
Madhu Nair12-May-09 23:44 
vital_parsley2000 wrote:
if(SUCCEEDED(hr)) block is not executed.What could be the reason ?


Get the hr value and pass it to FormatMessage function. You will get the cause.

To convert an HRESULT to DWORD you can use the following code snippet!

BOOL WIN32_FROM_HRESULT(HRESULT hr, OUT DWORD *pdwWin32)
{
 if ((hr & 0xFFFF0000) == MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32)) {
  // Could have come from many values, but we choose this one
  *pdwWin32 = HRESULT_CODE(hr);
  return TRUE;
 }
 if (hr == S_OK) {
  *pdwWin32 = HRESULT_CODE(hr);
  return TRUE;
 }
 // otherwise, we got an impossible value
 return FALSE;
}


I found this from here
GeneralRe: Not able to connect to the database Pin
vital_parsley200013-May-09 4:19
vital_parsley200013-May-09 4:19 
AnswerRe: Not able to connect to the database Pin
Madhu Nair13-May-09 19:45
Madhu Nair13-May-09 19:45 
AnswerRe: Not able to connect to the database [modified] Pin
Madhu Nair13-May-09 20:03
Madhu Nair13-May-09 20:03 
AnswerRe: Not able to connect to the database Pin
David Crow13-May-09 3:17
David Crow13-May-09 3:17 
QuestionLoad data from database to BCG grid Pin
MrKBA12-May-09 21:56
MrKBA12-May-09 21:56 
AnswerRe: Load data from database to BCG grid Pin
Madhu Nair12-May-09 22:14
Madhu Nair12-May-09 22:14 
GeneralRe: Load data from database to BCG grid Pin
MrKBA12-May-09 22:27
MrKBA12-May-09 22:27 
RantRe: Load data from database to BCG grid Pin
Rajesh R Subramanian12-May-09 22:32
professionalRajesh R Subramanian12-May-09 22:32 
GeneralRe: Load data from database to BCG grid Pin
MrKBA12-May-09 22:37
MrKBA12-May-09 22:37 
GeneralRe: Load data from database to BCG grid Pin
MrKBA13-May-09 22:47
MrKBA13-May-09 22:47 
QuestionAppend BStr Pin
Mogaambo12-May-09 21:23
Mogaambo12-May-09 21:23 
AnswerRe: Append BStr Pin
Madhu Nair12-May-09 21:27
Madhu Nair12-May-09 21:27 
QuestionRe: Append BStr Pin
CPallini12-May-09 21:31
mveCPallini12-May-09 21:31 
AnswerRe: Append BStr Pin
Mogaambo12-May-09 22:26
Mogaambo12-May-09 22:26 
GeneralRe: Append BStr Pin
CPallini12-May-09 22:33
mveCPallini12-May-09 22:33 
GeneralRe: Append BStr Pin
Mogaambo12-May-09 22:36
Mogaambo12-May-09 22:36 
GeneralRe: Append BStr Pin
CPallini12-May-09 23:14
mveCPallini12-May-09 23:14 

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.