Programming

zhaozj2021-02-16  62

Programming

1. An error occurred while opening the dialog that contains the ActiveX control.

There is no problem with the program compile, and running in the system of Win2000 or in the development environment (not specified).

Running to the open dialog box when the Win98 or the environment is not developed (not specified).

Causes and solutions: The program uses Debug compilation. After the problem is resolved, the problem is resolved.

2. When there is a dialog that is turned on, the program is out of exiting.

Causes and Solution: Use the Domodal () method when opening the dialog. In one statement sequence, Domodal () is often not in the end, when the window is not closed, the following statement is not executed. When you use it directly to exit the program, those statements have not been implemented, and the program exits, resulting in accidents. By conditioning, DomLDal () is placed in a statement sequence, and the problem is solved.

3. When there is a message box to open, the program exits unexpectedly wrong.

Causes and solutions: The reason is unknown, and AFXMessageBox () is changed to MessageBox (), the problem is solved.

4. Using the program that explicitly calls the DLL library exits unexpectedly.

Causes and Solutions: Use loadLibrary () Dynamically explicitly load DLL libraries, pay attention to using FreeELibrary (), if the release is too early, it may cause an error when the resource is automatically released. You can simply do not use freeElibrary () and hand itself.

5. An error occurred while the MFC DLL used in WIN98 using the standard Windows library.

Causes and solutions: If you run in Win98 and other systems, the MFC DLL has restrictions. For example, the size of the resource ID number, see the online help. The DLL that calls the standard Windows library using the MFC project.

6, the function calls in the DLL, correct, failed when there is parameters.

Causes and solutions: Call agreement is inconsistent, to see configuration attributes in the DLL project àc / c à advanced à call agreement. Such as: __ cdecl, __ stdcall, __ fastcall.

7, try not to pointers, can be replaced by array.

8, StringTable If partial deletion, the static MFC running mode is erroneous, and the dynamic MFC library mode is fine.

转载请注明原文地址:https://www.9cbs.com/read-17343.html

New Post(0)