Results 1 to 4 of 4

Thread: CmdDlgBx and RichTxBx

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Penang, Malaysia
    Posts
    9
    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.
    ^_^

  2. #2
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Smile

    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.
    ~Peter


  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Location
    Penang, Malaysia
    Posts
    9

    Question

    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?
    ^_^

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width