I wrote a small program, using MFC generated exe can be run directly itself, but with the help of TeeChart8 this control, ocx files, need to register first to use, if not register my little program can't start, but my program for others still have to teach others how to register, although wrote a bat run can register on your own, but still very troublesome,
Want to ask, how to make the installation package, a program can automatically put ocx is not easy to user accidentally delete the directory, and then automatically registered, this program to others with others can understand it, is a need to install the program,
CodePudding user response:
In a 64 - bit Windows: 64 exe and DLL in the directory c: \ Windows \ sys tem32 directory. 32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory. So pay attention to: In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory, And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL Under win64 a system set up 32-bit programs use a database alias to c: \ Windows \ \ syswow64 \ cliconfg exe Under win64 a system set up a 32-bit application system DSN to c: \ Windows \ \ syswow64 \ odbcad32 exe A 64 - bit Windows platform attention point of the file system redirection http://www.cnblogs.com/jiake/p/4981555.html 64 - bit Windows platforms attention point of the registry to redirect http://www.cnblogs.com/jiake/p/4956218.html
Learn how to use the depends. Exe view exe dependent DLL