First use FindResource or FindResourceEx, then use LoadResource and LockResource.

Use SizeofResource to get the size of datas.

Code:

HMODULE g_hModDll;

[...]

HRSRC hRscr = FindResource( g_hModDll, MAKEINTRESOURCE( IDR_TEMPLATE1 ),
                            MAKEINTRESOURCE( RT_RCDATA ) );
if ( hRscr ) {
    HGLOBAL hgRscr = LoadResource( g_hModDll, hRscr );
    if ( hgRscr ) {
        PVOID pRscr = LockResource( hgRscr );
        DWORD cbRscr = SizeofResource( g_hModDll, hRscr );
    }
}


Be sure to read the following remark about LoadResource:


  Remarks The return type of LoadResource is HGLOBAL for backward
  compatibility, not because the function returns a handle to a global
  memory block. Do not pass this handle to the GlobalLock or GlobalFree
  function.


There is no "unlock resource" or "free resource" APIs.


  Remarks The pointer returned by LockResource is valid until the module
  containing the resource is unloaded. It is not necessary to unlock
  resources because the system automatically deletes them when the
  process that created them terminates.


C++: Access embedded resource from dll
From the perspective of a Ph.D. student, how much of an added value is it to have your own presentation slides layout, that is used consistently throughout your Ph.D. conference presentations and other talks (and possibly throughout your academic career afterwards)?

Here is one such example from the Computer Science community.

This as as opposed to using existing Beamer templates with LaTeX, or built-in PowerPoint templates, or simply preparing each presentation on its own (without a specific layout).

A couple of axes I can think along:


Creating a signature layout that distinguishes one in their community
Ease of preparation of presentations (especially over time), maybe overcoming constraints with existing templates.


Note that I am not concerned with the question of content, but just design and layout.
