before when i used vc 6.0, i had the following code....

Code:
CSample_appApp theApp;

int StartCommand ( )
{
    HINSTANCE rscHndl;

    // save a handle to InRoads's resource list
    rscHndl = AfxGetResourceHandle ( );

    // set resource handle to point to your application
    AfxSetResourceHandle ( GetModuleHandle ( "sample_app.dll"));

    SDK_FORM dlg;
    dlg.DoModal();

    // reset the resource handle back to InRoads's resource list
    AfxSetResourceHandle ( rscHndl );

    return ( 0 );
}
when i ran this .dll, my form was executed and then i could use the functions on the form. so my question is how can I do this with a managed .dll class, so that when i run my .dll, it's calls instead of the lines

SDK_FORM dlg;
dlg.DoModal();
but

Console::WriteLine(S"Forms Example");

Is this not possible?

thanks