IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

MFC Discussion :

[MFC] Plantage sur LoadFrame


Sujet :

MFC

  1. #1
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2002
    Messages
    18
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 18
    Points : 11
    Points
    11
    Par défaut [MFC] Plantage sur LoadFrame
    Bonjour a tous,

    J'ai repris denierement une application qui tourne depuis plusieurs années sur tout type de plateforme (98, Me, NT, 2000, XP)
    J'ai essayé d'installer cette appli sur une machine serveur equipée en RAID 0 de deux disques de 250Go

    en fouillant un peu j'ai remarqué que l'appli plante sur LoadFrame dans le code qui suit:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
     
    		CMainWindow* pMainWnd = new CMainWindow();
    		if (!pMainWnd->LoadFrame(IDR_MAINFRAME)) 
    			return FALSE; 
     
    		m_pMainWnd = pMainWnd;
    Pour info dans le settings du projet les Mfc sont Shared Dll

    Voila donc qqun a une idee...

  2. #2
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Points : 17 323
    Points
    17 323
    Par défaut
    salut,
    je pense que ça n'a rien a voir avec la config materielle ,
    le plantage sur loadframe est essentiellement à pb avec les ressources du prg ,
    verifies que le menu IDR_MAINFRAME existe et sa validite.
    et recompile entierement le prg en faisant au prealable une speudo modif dans les ressources.

  3. #3
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2002
    Messages
    18
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 18
    Points : 11
    Points
    11
    Par défaut
    Ok, j'ai deja essayé mais ca n'a rien donné...
    deplus j'ai essayer le meme exe sur une autre machine et tout a fonctionner correctement....

    le doute m'habite !!!

  4. #4
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Points : 17 323
    Points
    17 323
    Par défaut
    salut,
    en effet le plantage est troublant ,
    comment tu as fait pour diagnostiquer que ça plante sur le LoadFrame ?
    t'es sure que tu n'a pas un probleme de lecture sur la base de registre plutot ?

  5. #5
    Membre à l'essai
    Profil pro
    Inscrit en
    Juin 2002
    Messages
    18
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2002
    Messages : 18
    Points : 11
    Points
    11
    Par défaut
    :trouve:

    Donc le probleme a été solutionné

    Le bug venait de l'install de Win XP, plus precisement du bus SM qui s'etait mal installé , qui est me semble t-il un bus d'administration (T° du proc,...)

    Le pourquoi du comment je sais pas, mais bon maintenant ca marche.... si qqun sait...

  6. #6
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 72
    Points : 62
    Points
    62
    Par défaut
    Salut !

    Je suis sur un début d'appli MDI, et j'ai le meme probleme de plantage sur la fonction LoadFrame()..
    Pourtant dans mes ressources sous l'identifiant IDR_MAINFRAME j'ai bien :
    - Accelerator
    - Menu
    - Toolbar
    - String Table avec une entrée IDR_MAINFRAME


    Y a t-il quelque chose à regarder en premier lieu dans ce cas là ?

    edit : le code de InitInstance() a été généré par le wizard.. Le "truc" c'est que j'ai importé les ressources depuis un autre projet, mais elles semblent bien intégrées.

  7. #7
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 72
    Points : 62
    Points
    62
    Par défaut
    bon au bout de 2 heures j'ai pensé à regarder GetLastError()
    quel nul

    donc apparemment ça viendrait d'un "handle de menu invalide". Comme tout le monde.. pourtant je n'y touche pas au menu !
    Je regarderai ça demain

  8. #8
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 72
    Points : 62
    Points
    62
    Par défaut
    Je ne vois hélas pas d'où vient l'erreur..
    Normalement il suffit juste de construire un menu, lui assigner l'identifiant IDR_MAINFRAME et le chargement est effectué via LoadFrame(), ou quelquechose d'important m'échappe t-il ?

    code de InitInstance (généré par appwizard) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
     
    	// InitCommonControlsEx() is required on Windows XP if an application
    	// manifest specifies use of ComCtl32.dll version 6 or later to enable
    	// visual styles.  Otherwise, any window creation will fail.
    	INITCOMMONCONTROLSEX InitCtrls;
    	InitCtrls.dwSize = sizeof(InitCtrls);
    	// Set this to include all the common control classes you want to use
    	// in your application.
    	InitCtrls.dwICC = ICC_WIN95_CLASSES;
    	InitCommonControlsEx(&InitCtrls);
    	CWinApp::InitInstance();
     
    	// Standard initialization
    	// If you are not using these features and wish to reduce the size
    	// of your final executable, you should remove from the following
    	// the specific initialization routines you do not need
    	// Change the registry key under which our settings are stored
    	// TODO: You should modify this string to be something appropriate
    	// such as the name of your company or organization
    	SetRegistryKey(_T("TargetBuilder"));
    	LoadStdProfileSettings(0);  // Load standard INI file options (including MRU)
    	// Register the application's document templates.  Document templates
    	//  serve as the connection between documents, frame windows and views
    	CMultiDocTemplate* pDocTemplate;
    	pDocTemplate = new CMultiDocTemplate(
    		IDR_TARGETTYPE,
    		RUNTIME_CLASS(CTargetBuilderAppDoc),
    		RUNTIME_CLASS(CChildFrame), // custom MDI child frame
    		RUNTIME_CLASS(CTargetBuilderAppView));
    	if (!pDocTemplate)
    		return FALSE;
    	AddDocTemplate(pDocTemplate);
     
    	// create main MDI Frame window
    	CMainFrame* pMainFrame = new CMainFrame;
     
    	if (!pMainFrame/*  || !pMainFrame->LoadFrame(IDR_MAINFRAME)*/)
    	{
    		MessageBox(NULL, "!pMainFrame", "Error", MB_ICONERROR); 
    		delete pMainFrame;
    		return FALSE;
    	}
     
    	if (pMainFrame->LoadFrame(IDR_MAINFRAME)==FALSE)
    	{
    		// debug avec GetLastError()..
     
    		delete pMainFrame;
    		return FALSE;
    	}
     
    	m_pMainWnd = pMainFrame;
    	// call DragAcceptFiles only if there's a suffix
    	//  In an MDI app, this should occur immediately after setting m_pMainWnd
    	// Enable drag/drop open
    	m_pMainWnd->DragAcceptFiles();
     
    	// Enable DDE Execute open
    	EnableShellOpen();
    	RegisterShellFileTypes(TRUE);
     
    	// Parse command line for standard shell commands, DDE, file open
    	CCommandLineInfo cmdInfo;
    	ParseCommandLine(cmdInfo);
     
     
    	// Dispatch commands specified on the command line.  Will return FALSE if
    	// app was launched with /RegServer, /Register, /Unregserver or /Unregister.
    	if (!ProcessShellCommand(cmdInfo))
    		return FALSE;
    	// The main window has been initialized, so show and update it
    	pMainFrame->ShowWindow(SW_SHOWMAXIMIZED);
    	pMainFrame->UpdateWindow();
     
    	return TRUE;
    le GetLasterror me rapporte un "invalid menu handle". Faut-il charger le menu programmatiquement dans le OnCreate (par exemple) ?

  9. #9
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Points : 17 323
    Points
    17 323
    Par défaut
    ton probleme vient du fait que tu utilises IDR_TARGETTYPE dans la définition de ton doctemplate.
    et je suppose que tu n'as pas fait le nécessaire dans les ressources pour cet identifiant:
    création du menu associé.
    création de l'icone associée.

  10. #10
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 72
    Points : 62
    Points
    62
    Par défaut
    en fait j'ai bien les entrées demandées. Pour IDR_TARGETTYPE j'ai :

    - ACCELERATOR
    - ICON
    - MENU
    - une entrée dans la String Table pour définir le document
    - TOOLBAR (qui est la même que pour IDR_MAINFRAME)


    et j'ajouterai "zut". Mais merci pour la piste

  11. #11
    Rédacteur
    Avatar de farscape
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2003
    Messages
    9 055
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Alpes Maritimes (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Novembre 2003
    Messages : 9 055
    Points : 17 323
    Points
    17 323
    Par défaut
    si tu mets IDR_MAINFRAME ça fonctionne ?

  12. #12
    Membre du Club
    Profil pro
    Inscrit en
    Mai 2007
    Messages
    72
    Détails du profil
    Informations personnelles :
    Âge : 39
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Mai 2007
    Messages : 72
    Points : 62
    Points
    62
    Par défaut
    Hélas non, j'avais déjà vu cette suggestion dans les précédents posts traitant d'un probleme similaire, et ça ne fonctionne pas. En fait ça produit la même erreur "1401 invalid menu handle"

    J'ai essayé de mettre l'ensemble sous un autre identifiant (IDR_MYFRAME) mais ça ne change rien à première vue, toujours la meme erreur.
    Idem, si j'utilise Create() à la place de LoadFrame()

    je poste mon script de ressources au cas où quelqu'un y trouve un setting aberrant (j'ai enlevé la partie dialog pour alléger):
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
     
    // Microsoft Visual C++ generated resource script.
    //
    #include "resource.h"
     
    #define APSTUDIO_READONLY_SYMBOLS
    /////////////////////////////////////////////////////////////////////////////
    //
    // Generated from the TEXTINCLUDE 2 resource.
    //
    #include "afxres.h"
    /////////////////////////////////////////////////////////////////////////////
    #undef APSTUDIO_READONLY_SYMBOLS
     
    /////////////////////////////////////////////////////////////////////////////
    // French (France) resources
     
    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
    #ifdef _WIN32
    LANGUAGE LANG_FRENCH, SUBLANG_FRENCH
    #pragma code_page(1252)
    #endif //_WIN32
     
    #ifdef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // TEXTINCLUDE
    //
     
    1 TEXTINCLUDE 
    BEGIN
        "resource.h\0"
    END
     
    2 TEXTINCLUDE 
    BEGIN
        "#include ""afxres.h\0"
    END
     
    3 TEXTINCLUDE 
    BEGIN
        "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
        "#define _AFX_NO_OLE_RESOURCES\r\n"
        "#define _AFX_NO_TRACKER_RESOURCES\r\n"
        "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
        "\r\n"
        "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)\r\n"
        "#ifdef _WIN32\r\n"
        "LANGUAGE 12, 1\r\n"
        "#pragma code_page(1252)\r\n"
        "#endif //_WIN32\r\n"
        "#include ""TargetBuilderApp.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
        "#include ""l.fra\\afxres.rc""          // Standard components\r\n"
        "#endi\0"
    END
     
    #endif    // APSTUDIO_INVOKED
     
    #endif    // French (France) resources
    /////////////////////////////////////////////////////////////////////////////
     
     
    /////////////////////////////////////////////////////////////////////////////
    // English (U.K.) resources
     
    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENG)
    #ifdef _WIN32
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
    #pragma code_page(1252)
    #endif //_WIN32
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Menu
    //
     
    IDR_MAINFRAME MENU 
    BEGIN
        POPUP "File"
        BEGIN
            MENUITEM "New\tCtrl+N",                 ID_FILE_NEW
            MENUITEM "Open\tCtrl+O",                ID_FILE_OPEN
            MENUITEM SEPARATOR
            MENUITEM "Exit",                        ID_APP_EXIT
        END
        POPUP "Options"
        BEGIN
            MENUITEM "Edit Composite",              ID_OPTIONS_EDITCOMPOSITS
            MENUITEM "Settings..",                  ID_OPTIONS_SETTINGS
        END
        POPUP "Window"
        BEGIN
            MENUITEM "Cascade",                     ID_WINDOW_CASCADE
            MENUITEM "Tile",                        ID_WINDOW_TILE_HORZ
        END
        POPUP "?"
        BEGIN
            MENUITEM "About TargetBuilder..",       ID_APP_ABOUT
        END
    END
     
    IDR_TARGETTYPE MENU 
    BEGIN
        POPUP "File"
        BEGIN
            MENUITEM "New\tCtrl+N",                 ID_FILE_NEW
            MENUITEM "Open..\tCtrl+O",              ID_FILE_OPEN
            MENUITEM "Save As\tCtrl+S",             ID_FILE_SAVEAS
            MENUITEM "Close",                       ID_FILE_CLOSE
            MENUITEM SEPARATOR
            MENUITEM "Exit",                        ID_APP_EXIT
        END
        POPUP "View"
        BEGIN
            MENUITEM "Full Filled",                 ID_VIEW_FULL
            MENUITEM "Wire Frame",                  ID_VIEW_WIRE
            MENUITEM "Points Cloud",                ID_VIEW_POINT
            MENUITEM SEPARATOR
            MENUITEM "View Top",                    ID_VIEW_TOP
            MENUITEM "View Front",                  ID_VIEW_FRONT
            MENUITEM "View Back",                   ID_VIEW_BACK
            MENUITEM "View Left",                   ID_VIEW_LEFT
            MENUITEM "View Right",                  ID_VIEW_RIGHT
        END
        POPUP "Window"
        BEGIN
            MENUITEM "Cascade",                     ID_WINDOW_CASCADE
            MENUITEM "Tile",                        ID_WINDOW_TILE_HORZ
        END
        POPUP "Options"
        BEGIN
            MENUITEM "Edit Composite..",            ID_OPTIONS_EDITCOMPOSITS
            MENUITEM "Settings..",                  ID_OPTIONS_SETTINGS
        END
        POPUP "?"
        BEGIN
            MENUITEM "About Target Builder..",      ID_APP_ABOUT
        END
    END
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Accelerator
    //
     
    IDR_MAINFRAME ACCELERATORS 
    BEGIN
        "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL, NOINVERT
    END
     
    IDR_TARGETTYPE ACCELERATORS 
    BEGIN
        "O",            ID_FILE_OPEN,           VIRTKEY, CONTROL, NOINVERT
        "S",            ID_FILE_SAVEAS,         VIRTKEY, CONTROL, NOINVERT
        "B",            ID_VIEW_BACK,           VIRTKEY, CONTROL, NOINVERT
        "F",            ID_VIEW_FRONT,          VIRTKEY, CONTROL, NOINVERT
        "F",            ID_VIEW_FULL,           VIRTKEY, CONTROL, ALT, NOINVERT
        "L",            ID_VIEW_LEFT,           VIRTKEY, CONTROL, NOINVERT
        "P",            ID_VIEW_POINT,          VIRTKEY, CONTROL, ALT, NOINVERT
        "R",            ID_VIEW_RIGHT,          VIRTKEY, CONTROL, NOINVERT
        "T",            ID_VIEW_TOP,            VIRTKEY, CONTROL, NOINVERT
        "W",            ID_VIEW_WIRE,           VIRTKEY, CONTROL, ALT, NOINVERT
    END
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Bitmap
    //
     
    ID_IMG_HULL1            BITMAP                  "..\\bitmaps\\img_hull1.bmp"
    ID_IMG_HULL2            BITMAP                  "..\\bitmaps\\img_hull2.bmp"
    ID_IMG_HULL3            BITMAP                  "..\\bitmaps\\img_hull3.bmp"
    IDB_IMAGES              BITMAP                  "..\\bitmaps\\images.bmp"
    IDB_DEFAULT             BITMAP                  "..\\bitmaps\\default.bmp"
    IDR_MAINFRAME           BITMAP                  "..\\bitmaps\\toolbar.bmp"
    IDR_TARGETTYPE          BITMAP                  "..\\bitmaps\\toolbartargettype.bmp"
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Icon
    //
     
    // Icon with lowest ID value placed first to ensure application icon
    // remains consistent on all systems.
    IDR_MAINFRAME           ICON                    "..\\icones\\ico00001.ico"
    IDI_FITSELECTION        ICON                    "..\\icones\\ico00002.ico"
    IDI_INSULATED           ICON                    "..\\icones\\icon2.ico"
    IDI_ZOOMPLUS            ICON                    "..\\icones\\ico00003.ico"
    IDI_ZOOMMINUS           ICON                    "..\\icones\\ico00004.ico"
    IDI_VIEWGRID            ICON                    "..\\icones\\ico00006.ico"
    IDR_TARGETTYPE          ICON                    "..\\icones\\icon1.ico"
     
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // DESIGNINFO
    //
     
    #ifdef APSTUDIO_INVOKED
    GUIDELINES DESIGNINFO 
    BEGIN
        IDD_ABOUTBOX, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 179
            TOPMARGIN, 7
            BOTTOMMARGIN, 88
        END
     
        IDD_PRESENTATION, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 237
            TOPMARGIN, 7
            BOTTOMMARGIN, 142
        END
     
        IDD_NAME, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 154
            TOPMARGIN, 2
            BOTTOMMARGIN, 32
        END
     
        IDD_COMPOSIT, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 356
            TOPMARGIN, 2
            BOTTOMMARGIN, 191
        END
     
        IDD_OPENFILE, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 150
            TOPMARGIN, 7
            BOTTOMMARGIN, 103
        END
     
        IDD_XYVALUES, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 144
            TOPMARGIN, 7
            BOTTOMMARGIN, 63
        END
     
        IDD_TEMPERATURE, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 230
            TOPMARGIN, 7
            BOTTOMMARGIN, 119
        END
     
        IDD_SAVEAS, DIALOG
        BEGIN
            LEFTMARGIN, 4
            RIGHTMARGIN, 185
            TOPMARGIN, 7
            BOTTOMMARGIN, 135
        END
     
        IDD_CONFIRMATION, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 132
            TOPMARGIN, 7
            BOTTOMMARGIN, 52
        END
     
        IDD_HULL, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 246
            TOPMARGIN, 2
            BOTTOMMARGIN, 159
        END
     
        IDD_CUBE, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 246
            TOPMARGIN, 2
            BOTTOMMARGIN, 159
        END
     
        IDD_OGLVIEW, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 198
            VERTGUIDE, 108
            BOTTOMMARGIN, 198
            HORZGUIDE, 16
        END
     
        IDD_TARGETVIEW, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 252
            TOPMARGIN, 2
            BOTTOMMARGIN, 198
        END
     
        IDD_CUSTOM, DIALOG
        BEGIN
            LEFTMARGIN, 3
            RIGHTMARGIN, 245
            TOPMARGIN, 3
            BOTTOMMARGIN, 158
        END
     
        IDD_EDITCOMPOSIT, DIALOG
        BEGIN
            LEFTMARGIN, 7
            RIGHTMARGIN, 228
            TOPMARGIN, 7
            BOTTOMMARGIN, 250
        END
     
        IDD_EDITMATERIAL, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 226
            TOPMARGIN, 2
            BOTTOMMARGIN, 101
        END
     
        IDD_EDITCOATING, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 414
            TOPMARGIN, 2
            BOTTOMMARGIN, 284
        END
     
        IDD_GLOBAL_SETTINGS, DIALOG
        BEGIN
            LEFTMARGIN, 2
            RIGHTMARGIN, 269
            TOPMARGIN, 2
            BOTTOMMARGIN, 108
        END
    END
    #endif    // APSTUDIO_INVOKED
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Version
    //
     
    VS_VERSION_INFO VERSIONINFO
     FILEVERSION 1,0,0,1
     PRODUCTVERSION 1,0,0,1
     FILEFLAGSMASK 0x3fL
    #ifdef _DEBUG
     FILEFLAGS 0x1L
    #else
     FILEFLAGS 0x0L
    #endif
     FILEOS 0x4L
     FILETYPE 0x1L
     FILESUBTYPE 0x0L
    BEGIN
        BLOCK "StringFileInfo"
        BEGIN
            BLOCK "040c04b0"
            BEGIN
                VALUE "CompanyName", "TNO"
                VALUE "FileDescription", "TargetBuilder"
                VALUE "FileVersion", "1, 0, 0, 1"
                VALUE "InternalName", "TargetBuilder"
                VALUE "LegalCopyright", "Copyright (C) 2007"
                VALUE "OriginalFilename", "TargetBuilder.EXE"
                VALUE "ProductName", "TargetBuilder"
                VALUE "ProductVersion", "1, 0, 0, 1"
            END
        END
        BLOCK "VarFileInfo"
        BEGIN
            VALUE "Translation", 0x40c, 1200
        END
    END
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // Toolbar
    //
     
    IDR_MAINFRAME TOOLBAR  20, 20
    BEGIN
        BUTTON      ID_FILE_NEW
        BUTTON      ID_FILE_OPEN
    END
     
    IDR_TARGETTYPE TOOLBAR  20, 20
    BEGIN
        BUTTON      ID_FILE_NEW
        BUTTON      ID_FILE_OPEN
    END
     
     
    /////////////////////////////////////////////////////////////////////////////
    //
    // String Table
    //
     
    STRINGTABLE 
    BEGIN
        ID_NEW_SHIP             "Create a new Ship"
        ID_FILE_SAVEAS          "Save Version Of The Active Document"
        ID_WINDOW_CASCADE       "Arrange windows so they overlap"
        ID_WINDOW_TILE_HORZ     "Arrange windows as non-overlapping tiles"
        ID_FILE_IMPORTTARGET    "Import a target"
        ID_FILE_NEW             "Create A New Document"
        ID_FILE_OPEN            "Open An Existing Document"
        ID_FILE_CLOSE           "Close The Active Document"
        ID_FILE_SAVE            "Save the active document"
        ID_APP_ABOUT            "Display TargetBuilder information"
        ID_APP_EXIT             "Exit Application"
    	ID_VIEW_TOP             "Set the camera to the Top view"
        ID_VIEW_FRONT           "Set the camera to the Front view"
        ID_VIEW_BACK            "Set the camera to the Back view"
        ID_VIEW_LEFT            "Set the camera to the Left view"
        ID_VIEW_RIGHT           "Set the camera to the Right view"
        ID_VIEW_FULL            "Sets render mode to FullFilled"
        ID_VIEW_WIRE            "Sets render mode to WireFrame"
        ID_VIEW_POINT           "Sets render mode to PointsCloud"
        IDR_TARGETTYPE          "\nTarget \nTarget \nTargetBuilder Files (*.tbf)\n.tbf\nTargetBuilder.Document\nTarget Builder Document"
        IDR_MAINFRAME           "TargetBuilder"
        ID_OPTIONS_SETTINGS     "Application-level parameters"
        ID_OPTIONS_EDITCOMPOSITS "Edit a new composite"
    END
     
    #endif    // English (U.K.) resources
    /////////////////////////////////////////////////////////////////////////////
     
     
     
    #ifndef APSTUDIO_INVOKED
    /////////////////////////////////////////////////////////////////////////////
    //
    // Generated from the TEXTINCLUDE 3 resource.
    //
    #define _AFX_NO_SPLITTER_RESOURCES
    #define _AFX_NO_OLE_RESOURCES
    #define _AFX_NO_TRACKER_RESOURCES
    #define _AFX_NO_PROPERTY_RESOURCES
     
    #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FRA)
    #ifdef _WIN32
    LANGUAGE 12, 1
    #pragma code_page(1252)
    #endif //_WIN32
    #include "TargetBuilderApp.rc2"  // non-Microsoft Visual C++ edited resources
    #include "l.fra\afxres.rc"          // Standard components
    #endif
    /////////////////////////////////////////////////////////////////////////////
    #endif    // not APSTUDIO_INVOKED

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [DB2]Plantage sur COMMIT
    Par Dundee dans le forum DB2
    Réponses: 1
    Dernier message: 24/11/2004, 11h05
  2. Réponses: 9
    Dernier message: 23/02/2004, 19h14
  3. [MFC] Boucle sur un bouton
    Par karl3i dans le forum MFC
    Réponses: 6
    Dernier message: 17/02/2004, 11h37
  4. [LG]plantage sur une commande basique !
    Par Jeff on the web dans le forum Langage
    Réponses: 5
    Dernier message: 13/01/2004, 19h07
  5. [MFC]Info sur da la fusion sous Word
    Par kor dans le forum MFC
    Réponses: 6
    Dernier message: 22/08/2003, 11h14

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo