Adding elements to already existing gui

I'm using microsoft visual c++ to update an application built by some coworkers paired with external programmers. However, it is not possible for me to reach them at this time.

This is why I need your help.

I've been trying to add a capture field in an already existing GUI which can be viewed in the ResourceView section of visual studio. When running the app, when I get to the section where the update has been made and click on the button that brings me to the updated window of blank capture fields, it crashes and gives me the error : "has exited with code -1073741819 (0xC0000005)."

Here's what I did to add the element.
I copied a pre-existing similar blank capture field from one of the dialog windows and positioned it right underneath. I changed its ID in its edit properties. I then searched for the previous element's ID in the whole program and added similar code lines but with the ID of the newly created element. References to other variables where added or changed as well using the search engine.

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
IDD_PROPPAGE_PR_AGERET DIALOG DISCARDABLE  0, 0, 350, 150
STYLE DS_MODALFRAME | WS_POPUP | WS_DISABLED
FONT 8, "MS Sans Serif"
BEGIN
    EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_NORMALE,91,30,25,17,
                    ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_ANTICIPEE,91,62,25,17,
                    ES_AUTOHSCROLL | ES_NUMBER
    EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_FACULTATIF,91,94,25,17,
                    ES_AUTOHSCROLL | ES_NUMBER
    LTEXT           "ans",IDC_STATIC,125,33,12,10,NOT WS_GROUP
    LTEXT           "ans",IDC_STATIC,125,65,11,10,NOT WS_GROUP
    LTEXT           "ans",IDC_STATIC,125,99,12,10,NOT WS_GROUP
    LTEXT           "Normale :",IDC_STATIC,45,33,31,8
    LTEXT           "Anticipée :",IDC_STATIC,45,65,34,8
    LTEXT           "Facultative :",IDC_STATIC,45,99,40,8
    EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_AGEMIN,252,30,25,17,
                    ES_AUTOHSCROLL
    LTEXT           "Âge minimum :",IDC_STATIC,190,33,46,8
    LTEXT           "Service minimum :",IDC_STATIC,190,65,58,8
    LTEXT           "Score minimum :",IDC_STATIC,190,99,52,8
	EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_SERVICEMIN,252,62,25,17,
                    ES_AUTOHSCROLL
	EDITTEXT        IDC_EDIT_PARAM_AGE_RETRAITE_SCOREMIN,252,94,25,17,
                    ES_AUTOHSCROLL
    LTEXT           "ans",IDC_STATIC,286,33,12,10,NOT WS_GROUP
    LTEXT           "ans",IDC_STATIC,286,65,11,10,NOT WS_GROUP
    LTEXT           "ans",IDC_STATIC,286,98,11,10,NOT WS_GROUP

    
END


Did I skip a step? Why isn't it working?

Merci,
MAB

Last edited on
Topic archived. No new replies allowed.