V U assignment

need asnwer

Page 1 of 1

4 Replies - 419 Views - Last Post: 30 June 2010 - 08:24 AM Rate Topic: -----

#1 Faizaneraza  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 24-June 10

V U assignment

Posted 30 June 2010 - 07:21 AM

Exercise-1 Write down the statement that loads the icon (defined in “MyResources.rc” file) and assigns its handle to “hIcon” member of “WNDCLASS” structure


Exercise-2 Write down the statement that loads the menu (defined in “MyRexources.rc” file) and initializes “lpszMenuName” member of “WNDCLASS” structure


Exercise-3 Write down the statement to load the string from string table (defined in “MyResources.rc” file) in “strWndAppVersion” buffer (Note: this string contains the version information)


Exercise-4 Write down the statement that loads the accelerator table (defined in MyResources.rc”) and retrieves the handle of the accelerator table in “hAccelerators” variable


MyResources.rc

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Menu
//

IDR_MENU_VU MENU DISCARDABLE 
BEGIN
    POPUP "&VuInfo"
    BEGIN
        MENUITEM "F&aculty\tAlt+F",                      ID_VUINFO_FACULTY
    END
    POPUP "&Programs"
    BEGIN
        MENUITEM "Computer &Science\tCtrl+S",            ID_PROGRAMS_CS
        MENUITEM "Business &Mangement\tCtrl+M",          ID_PROGRAMS_MGT
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON_VU           ICON    DISCARDABLE     "VU.ICO"

/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//

IDR_MY_ACC_KEYS ACCELERATORS DISCARDABLE 
BEGIN
    "P",            ID_TIMER_STOP,          VIRTKEY, CONTROL, NOINVERT
    "S",            ID_TIMER_START,         VIRTKEY, CONTROL, NOINVERT
    "X",            ID_FILE_EXIT,           VIRTKEY, ALT, NOINVERT
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_MY_APPLICATION_VERSION           "1.0"
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//


/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED


MOD EDIT: Topic closed for flagrant disregard of the rules.
[rules][/rules]

This post has been edited by JackOfAllTrades: 30 June 2010 - 08:25 AM
Reason for edit:: Added code tags.


Is This A Good Question/Topic? 0
  • +

Replies To: V U assignment

#2 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4534
  • View blog
  • Posts: 7,914
  • Joined: 08-June 10

Re: V U assignment

Posted 30 June 2010 - 07:27 AM

You do know that we don't do your homework for you on this forum, right?
Was This Post Helpful? 0
  • +
  • -

#3 Faizaneraza  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 24-June 10

Re: V U assignment

Posted 30 June 2010 - 08:15 AM

plss help me out plssssss i need
Was This Post Helpful? 0
  • +
  • -

#4 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4534
  • View blog
  • Posts: 7,914
  • Joined: 08-June 10

Re: V U assignment

Posted 30 June 2010 - 08:21 AM

View PostinsertAlias, on 30 June 2010 - 06:27 AM, said:

You do know that we don't do your homework for you on this forum, right?

Was This Post Helpful? 0
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6081
  • View blog
  • Posts: 23,556
  • Joined: 23-August 08

Re: V U assignment

Posted 30 June 2010 - 08:24 AM

On what planet is this VB.NET anyway?

Moved and closed.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1