| |

VerySource

 Forgot password?
 Register
Search
View: 866|Reply: 3

Program fails to exit when registering controls

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 20:00:01
| Show all posts |Read mode
1. Use vc to write a .ocx suffix control. Compilation is fine. When connected to register activex (registered generated control), the program has been stopped here and cannot be exited. Stop build also does not work.

   I tried not to let vc register the control directly after connecting, and instead manually register it (using the statement regsvr32 * .ocx), the popup dialog registered successfully, but the cmd.exe program has been unable to stop running. (Generally after the registration control is over, cmd.exe automatically exits).
Reply

Use magic Report

0

Threads

55

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-4-28 07:00:01
| Show all posts
Register with the Release version and take a look.
Reply

Use magic Report

0

Threads

59

Posts

43.00

Credits

Newbie

Rank: 1

Credits
43.00

 China

Post time: 2020-4-30 23:30:01
| Show all posts
Write a batch and let your program execute the batch
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-6-27 10:30:01
| Show all posts
The release version does not work, tried.

Write batch processing will not work, and will not move when the statement that registers the control is executed.

Checked the dllregisterserver function, no problem. Initially, there was no such problem. Later, some functions were extended in the control, so a library (written by myself) was used. Since using the library, there will be situations where registration cannot be exited, and the use of the library will be cancelled. There is no such problem.
I'm wondering, the registered control will not call the statement that uses the library, but as long as the library is called, it will have problems.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list