PDA

Click to See Complete Forum and Search --> : CmdDlgBx and RichTxBx


ohboy
Mar 21st, 2001, 11:58 AM
Hello gurus....

I have a 'bug' which i m striving hard to fix and wish can obtain help from you guys.

I have included 2 components in my design, one is Common Dialog Box and the other is Rich Text Box. When i compiled the source into exe file, it works fine on my system. But when it's been used in other person's computer which does not have V. Studio installed, the error occured showing that RICHTX32.OCX and COMDLG32.OCX not found.

I realised that for some reason when compiling, i did not include the object library into the compilation. There is no 'static link' in the compilation.

My question is, how can i set the static link when compiling?

Million thanks.

MrGTI
Mar 21st, 2001, 01:37 PM
Correct me if i'm wrong here, but you do realize that you need to install RICHTX32.OCX and COMDLG32.OCX on the target machines? Most people do that by making an install package.

ohboy
Mar 21st, 2001, 01:51 PM
Base on the solution given by MrGTI, is that meaning we have to 'physically' copy those 2 files into installation package and then copy into c:\winnt\system32 ?

Isn't there a way to link directly into the exe file so that we only need the exe file to run?

Lord Orwell
Mar 22nd, 2001, 05:54 AM
NO!
by physically linking (which is what you WERE doing, by the way) you really mean COPY INTO MY FILE.
.ocx files are easy to use interfaces for windows apis. With a little study, you can get rid of the common dialog one (i did), but believe me when i say that you are better off keeping the richtext one. And you have to distribute them with the program. If you want them to all be one file, zip them together. The .ocx will work just as well in the same directory as your program as it will in the system directory.