Click here to Skip to main content
15,914,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStatic and Group Box Controls Pin
Steve Thresher11-May-04 1:14
Steve Thresher11-May-04 1:14 
GeneralRe: Static and Group Box Controls Pin
Diddy11-May-04 3:30
Diddy11-May-04 3:30 
GeneralWindows Explorer Fonts Pin
Chris Ulliott11-May-04 0:21
Chris Ulliott11-May-04 0:21 
GeneralRe: Windows Explorer Fonts Pin
Diddy11-May-04 3:51
Diddy11-May-04 3:51 
GeneralRe: Windows Explorer Fonts Pin
Chris Ulliott11-May-04 3:54
Chris Ulliott11-May-04 3:54 
GeneralError message for 12045 Pin
__Sigma11-May-04 0:14
suss__Sigma11-May-04 0:14 
GeneralRe: Error message for 12045 Pin
Genius Logics11-May-04 0:34
sussGenius Logics11-May-04 0:34 
GeneralRe: Error message for 12045 Pin
nguyenvhn11-May-04 0:43
nguyenvhn11-May-04 0:43 
The error code 12045 may not belong to system message-table. You have to know where error occur and look up error from that module.
Here is the code except from MSDN. Hope useful to you
<br />
HMODULE hModule = NULL; // default to system source<br />
LPSTR MessageBuffer;<br />
DWORD dwBufferLength;<br />
<br />
DWORD dwFormatFlags = FORMAT_MESSAGE_ALLOCATE_BUFFER |<br />
        FORMAT_MESSAGE_IGNORE_INSERTS |<br />
        FORMAT_MESSAGE_FROM_SYSTEM ;<br />
<br />
    //<br />
    // If dwLastError is in the network range, <br />
    //  load the message source.<br />
    //<br />
<br />
if(dwLastError >= NERR_BASE && dwLastError <= MAX_NERR){<br />
  hModule = LoadLibraryEx(TEXT("netmsg.dll"), NULL,       LOAD_LIBRARY_AS_DATAFILE);<br />
<br />
   if(hModule != NULL)<br />
     dwFormatFlags |= FORMAT_MESSAGE_FROM_HMODULE;<br />
}<br />
<br />
    //<br />
    // Call FormatMessage() to allow for message <br />
    //  text to be acquired from the system <br />
    //  or from the supplied module handle.<br />
    //<br />
<br />
    if(dwBufferLength = FormatMessageA(<br />
        dwFormatFlags,<br />
        hModule, // module to get message from (NULL == system)<br />
        dwLastError,<br />
        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language<br />
        (LPSTR) &MessageBuffer,<br />
        0,<br />
        NULL<br />
        ))<br />
    {<br />
        DWORD dwBytesWritten;<br />
<br />
        //<br />
        // Output message string on stderr.<br />
        //<br />
        WriteFile(<br />
            GetStdHandle(STD_ERROR_HANDLE),<br />
            MessageBuffer,<br />
            dwBufferLength,<br />
            &dwBytesWritten,<br />
            NULL<br />
            );<br />
<br />
        //<br />
        // Free the buffer allocated by the system.<br />
        //<br />
        LocalFree(MessageBuffer);<br />
    }<br />
<br />
    //<br />
    // If we loaded a message source, unload it.<br />
    //<br />
    if(hModule != NULL)<br />
        FreeLibrary(hModule);<br />

GeneralRe: Error message for 12045 Pin
__Sigma11-May-04 22:10
suss__Sigma11-May-04 22:10 
GeneralRe: Error message for 12045 Pin
nguyenvhn11-May-04 22:22
nguyenvhn11-May-04 22:22 
GeneralRe: Error message for 12045 Pin
__Sigma12-May-04 3:38
suss__Sigma12-May-04 3:38 
GeneralCreateProcessWithLogonW Pin
Genius Logics11-May-04 0:13
sussGenius Logics11-May-04 0:13 
GeneralRe: CreateProcessWithLogonW Pin
Mike Dimmick11-May-04 2:37
Mike Dimmick11-May-04 2:37 
GeneralDirectShow Tutorials Pin
mcsherry10-May-04 23:27
mcsherry10-May-04 23:27 
GeneralRe: DirectShow Tutorials Pin
GermanGeorge11-May-04 4:02
GermanGeorge11-May-04 4:02 
Questionany articles written about cryptography for beginners?? Pin
FASTian10-May-04 23:21
FASTian10-May-04 23:21 
AnswerRe: any articles written about cryptography for beginners?? Pin
nguyenvhn11-May-04 0:06
nguyenvhn11-May-04 0:06 
GeneralRe: any articles written about cryptography for beginners?? Pin
Miguel Lopes11-May-04 2:32
Miguel Lopes11-May-04 2:32 
AnswerRe: any articles written about cryptography for beginners?? Pin
toxcct11-May-04 0:40
toxcct11-May-04 0:40 
GeneralRe: any articles written about cryptography for beginners?? Pin
FASTian12-May-04 0:28
FASTian12-May-04 0:28 
GeneralOutlook Express API Pin
Ajay Vijayvargiya10-May-04 23:08
Ajay Vijayvargiya10-May-04 23:08 
GeneralISAPI FILTER ON A ISA SERVER Pin
SuzannaS10-May-04 23:04
SuzannaS10-May-04 23:04 
QuestionHow to add callouts Pin
muthukumar_pandian10-May-04 22:52
muthukumar_pandian10-May-04 22:52 
QuestionHow to Load/Save Image in database using VC++ MFC Pin
Sumit Kapoor10-May-04 22:14
Sumit Kapoor10-May-04 22:14 
AnswerRe: How to Load/Save Image in database using VC++ MFC Pin
Maxwell Chen10-May-04 22:21
Maxwell Chen10-May-04 22:21 

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.