OCX's/windows regsvr32

来源:互联网 发布:汽车之家的团购 知乎 编辑:程序博客网 时间:2024/06/06 07:24
I am new to writing OCX's/windows programming but have managed to    modify an existing OCX with new functionality. But when I build the OCX    in release mode and try to add this OCX with a simple visual basic    project, it crashes upon exiting the project. But if I build the OCX in    debug mode and do the same, it does not crash. Do you have any idea,    why??    Also the debug version of the OCX is having problem registering on a    machine other than it was built on with an error "Debug Assertion    Failed. File: oletyplb.cpp line 32". But if we build the OCX on that    machine and then register it, then it's okay. I don't know if both the    above problems are related or different.    Any help will be appreciated.    Thanks,    kshah

<script type="text/javascript"><!--google_ad_client = "pub-8682474657542641";google_alternate_ad_url = "http://www.eggheadcafe.com/alternateads.asp";google_ad_width = 300;google_ad_height = 250;google_ad_format = "300x250_as";google_ad_channel ="2428473602";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "008000";google_color_url = "666666";google_color_text = "000000";//--></script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script> <iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-8682474657542641&amp;dt=1152516796023&amp;lmt=1152516796&amp;alternate_ad_url=http%3A%2F%2Fwww.eggheadcafe.com%2Falternateads.asp&amp;format=300x250_as&amp;output=html&amp;channel=2428473602&amp;url=http%3A%2F%2Fwww.eggheadcafe.com%2Faspnet_answers%2Fvcactivextemplatelib%2FJun2006%2Fpost27052727.asp&amp;color_bg=FFFFFF&amp;color_text=000000&amp;color_link=008000&amp;color_url=666666&amp;color_border=FFFFFF&amp;cc=100&amp;u_h=768&amp;u_w=1024&amp;u_ah=740&amp;u_aw=1024&amp;u_cd=16&amp;u_tz=480&amp;u_java=true" frameborder="0" width="300" scrolling="no" height="250" allowtransparency="allowtransparency"></iframe>

6/8/2006 8:59:32 AM    Re: Error in OCX
<mail2kinashah@yahoo.com> wrote in message    news:1149772543.120727.198670@j55g2000cwa.googlegroups.com...    Debug mode will automatically zero uninitialized variables for you. Release    mode won't. This is one of the common reasons Release mode will crash when    Debug mode won't. The bottom line is, you have a bug that you need to track    down.    It's probably not related, but you need to get rid of your bugs first.    Before moving your OCX to a target machine, make sure that any dependent    DLL's are also moved. See http://www.dependencywalker.com for a tool to help    identify dependent DLL's.    Brian
 
原创粉丝点击