VB6 error

Hi everyone.    When opening or compiling a project in VB6, sometimes I get this error:   "<projectname>\MSCOMCTL.OCX could not be located".     If I then go into the project,  and go
to Project>> Components (Controls tab),   and check the checkbox for 'Microsoft Windows Common Controls 6.0',   and save,  then the project will load and compile without any errors.    I then check the
project back into TFS....  and all is well.
However, if I then check the same project out of TFS again, the cycle of errors with "<projectname>\MSCOMCTL.OCX could not be located" starts all over again.   The setting in Components that I mentioned above is not retained.  
I have search Google for the "<projectname>\MSCOMCTL.OCX could not be located" error for 2 weeks... and I have tried every solution that I could find.   However, nothing that I have tried has resolved the problem.     
Does anyone have any ideas on what might be happening?    I am running Visual Basic 6 (SP6) on Windows 7.    Thank you!!
 Tommy
Tommy Boyette

Hi,
Welcome to MSDN,
I would like to suggest that there's proper for VB 6.0 support, this forum is for .NET platform,
Support for VB 6.0: http://msdn.microsoft.com/en-us/vbasic/ms788229.aspx
You can read this site, for alternative view,
http://social.msdn.microsoft.com/Forums/vstudio/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions?forum=vbgeneral

Similar Messages

  • Installation CR2008 trial error message in Windows 7.

    Hi,
    Current window : Windows 7
    I have install crystal report 2008 trial version in windows 7 and the error message:
    1) When i open my project in vb6  error msg : c:\windows\system32\crystl32.ocx could not be loaded -- continue loading project?
    2) then i went project,component and select the crystl32.ocx error message(Crystl32.ocx was not registerable as activex component).
    please assist.
    Thank you.

    Hello,
    The OCX was retired about 10 years ago. In CR 2008 your only option is to use Crystal Reports .NET Assemblies and move to Visual Studio .NET 2008.
    Moved your post to the Legacy SDK forum
    Don

  • Java goto?

    Hi!
    I am very new to java (i normally write in c#), but am currently faced with the task of debugging someone else's code. The problem is there is reams of the stuff, and none of it is commented. The person who wrote it is no longer here so I cannot ask them what on earth they were up to. I have made a few changes to their source code and now I cannot get it to compile. The error is on these lines:
    First there is an odd line label:
    _A3:
    followed by some code.
    Then there is this:
    if(true) goto A4; else goto A3
    further down the page there is the _A4 label that the previous statement seems to be pointing to:
    _L4:
    and this is also followed by code.
    So, firstly, can anybody explain what these line labels are doing. They look to me like the old VB6 error handling blocks, but they don't make any sense to me.
    Secondly, correct me if I am wrong, but I believe that java has no goto statement (and the compiler does indeed give an illegal statement error), so does anyone know why I would be finding one in the code?
    Thanks in advance for any help!
    Adam

    Hi Adam,
    I wonder the difference between the original code and the decompiled code for the "goto" section.
    I am having the same problem but can't get hold of the original code.
    Is it possible for you to send the original code for this goto part?
    Thanks,
    Ryan

  • Error 1334 (in LabVIEW Run-Time Engine 7.1.1 setup) when launching VB6's IDE

    What's going on here?  I have LabVIEW 7.0 and Visual Basic 6 installed on this Win-XP computer.  When I open VB6, I always get what looks like a Windows Installer error:
    First, it asked me for the location of "lvruntimeeng.msi", which I located for it.  The next progress-window says:
    NI LabVIEW Run-Time Engine 7.11
    Please wait while Windows configures NI LabVIEW Run-Time Engine 7.11
    Finally it fails with this error-message window:
    NI LabVIEW Run-Time Engine 7.11
    Error 1334.  The file 'NIMDFManifestFileId.53736431_DBEC_4582_B072_2F1F0A2C4EA6' cannot be installed because the file cannot be found in cabinet file 'lbruntimeeng_mft'.  This could indicate a network error, an error reading from the CD-ROM, or a problem with this package.
    [OK]
    The two windows repeat twice each time I launch VB6's IDE, and that causes a long delay.  What can I do to prevent this error?
    Message Edited by citizenDAK on 04-23-2008 01:34 PM

    Yes it occurrs every time I launch VB6.
    For a long time now, at least many months.  It's not every day that I need to open good old VB6.  I was hoping it'd just 'go away' but it hasn't.
    I don't know what changes lead up to it.  LOTS of things have been updated, security-patched, etc...  (It is XP.)  I've even un-installed the runtime, then re-installed it when I kept getting the same prompt.  Don't have any idea why, I was hoping you could tell me from the specific file named in the error.  (Google didn't find it for me, and neither did searching ni.com)
    p.s.,  Sorry I left out a decimal and copy/pasted it several times...  should've said "NI LabVIEW Run-Time Engine 7.1.1"

  • Crystal Report Error when Viewing in VB6

    Post Author: aquiintac
    CA Forum: General
    I'm using crystal report and vb6. My first problem was how to change the data source location of the crystal report. I found away by using this: crxReport.Databases.SetDataSource rsReport
    but I'm having an exception report : "The exception unknown software exception (0xe0434f4d) occurred in the application at location 0x77e55e02"The report shows for some time but after opening several reports the error message occurs.This is my scenario:"I'm using a udl for my connection. I have two databases namely TK and TK_MCC. TK is for other company and TK_MCC is for the subsidiary company. I used TK database when I created the crystal report. I used the setdatasource to pass the recordset to change the datasource location of the crystal report. So even if they change the database TK to TK_MCC they can still access the report. But when I did the setdatasource there was an exception report. (The exception unknown software exception (0xe0434f4d) occurred in the application at location 0x77e55e02)"Before it was working fine when I don't have to change the database. But when I used crxReport.Database.SetDataSource rsReport this error happened.By the way, i tried it also in another computer (just installed the program) but the error message was different. The other error was error28 out of stack space and sometimes the program closes by itself.Can someone help me on this...Thank you very much.

    Seems to be working now.
    I upgraded CR and adobe.
    Edited by: RolandWorms79 on Sep 7, 2009 10:52 AM

  • Error while adding user fields to user table using vb6.0

    Hi,
    I am adding a user tables using vb6.0 using DIAPI.
    I am able to add the user table successfully.
    I am getting the following error when i am adding the fields to the table.
    "The metadata object for this object cannot be updated, since it's ref count is bigger than 0."
    My code is as follows:
        oUserFieldsMD.TableName = TABLE_NAME_ITEM_LOCN
        oUserFieldsMD.Name = vTableFields(0, lCount)
        oUserFieldsMD.Description = vTableFields(1, lCount)
        oUserFieldsMD.Type = vTableFields(2, lCount)
        oUserFieldsMD.EditSize = CLng(vTableFields(3,lCount))
        lRetCode = oUserFieldsMD.Add
    This error does not come up when i try to add the field to my table using the vb sample provided by SAP.
    Your help will me much appreciated.
    Thanks.

    Hi Satish,
    The problem is that you added the table and the objetc that you used to add the table is not freed properly. You need to free the object and then the reference count to that table will be 0 - which will enable you to add the fields
    e.g
    Dim pUTables As SAPbobsCOM.UserTablesMD
    'Do your stuff
    Set pUTables = Nothing
    Dim pUFields As SAPbobsCOM.UserFieldsMD
    'Do your stuff
    Set pUFields = Nothing

  • Connection Error in VB6

    Hi,
    I need urgent help on connecting XE database from remote PC via VB6 application, I have install XEClient also on remote PC from where my application running.
    I am able to connect to database thru HOME page of XE as well as from SQLPlus, in local machine also my application is running, bu when i run it from remote pc it gives me an error.
    PLEASE HELP ME !!!.....

    Hi Vishal,
    here is a simple test script to connect to an oracle instance using OLEDB. Save that as "connectToOracleXE.vbs" and run it from the command line (this will give you the usage):
    cscript connectToOracleXE
    Option Explicit
    Dim g_tnsConnectStr, g_uid, g_pwd
    Dim g_objConn
    main()
    Sub main
       If WScript.arguments.count = 0 Then
          showUsage()
       Else
          g_tnsConnectStr      = WScript.arguments(0)
          g_uid                = WScript.arguments(1)
          g_pwd                = WScript.arguments(2)
          WScript.StdOut.WriteLine "g_tnsConnectStr      = " + g_tnsConnectStr
          WScript.StdOut.WriteLine "g_uid      = " + g_uid
          WScript.StdOut.WriteLine "g_pwd      = *****"
          Set g_objConn=nothing
          openDatabaseConnection()
          doSelect()
          closeDatabaseConnection()
       End If
    End Sub
    Sub showUsage
      WScript.StdOut.WriteLine ""
      WScript.StdOut.WriteLine "Usage: cscript connectToOracleXE.vbs <tnsConnectStr> <user> <pwd>"
      WScript.StdOut.WriteLine ""
      WScript.StdOut.WriteLine "Bsp. : cscript connectToOracleXE.vbs xe scott tiger"
      WScript.StdOut.WriteLine ""
    End Sub
    Sub doSelect
       Dim objRS
       Dim objCMD
       Dim i
       Set objCMD = CreateObject("ADODB.Command")
       Set objRS  = CreateObject("ADODB.Recordset")
       objCMD.ActiveConnection = g_objConn
       objCMD.CommandText = "select username from all_users order by username"
       objRS.Open objCMD
       objRS.movefirst
       Do While Not objRS.EOF
            WScript.StdOut.WriteLine "User=" & objRS.Fields(0).Value
            objRS.movenext
       Loop
       'Clean up
       objRS.Close
       set objRS = Nothing
       set objCMD= Nothing
    End Sub
    Sub openDatabaseConnection()
       If g_objConn is nothing Then
          'MsgBox "open connection"
          Set g_objConn = CreateObject("ADODB.Connection")
          g_objConn.Open "Provider=OraOLEDB.Oracle;Data Source=" + g_tnsConnectStr + ";User ID=" + g_uid + ";Password=" + g_pwd
       End If
    End Sub
    Sub closeDatabaseConnection()
       If Not (g_objConn Is Nothing) Then
          'MsgBox "close connection"
          g_objConn.Close
          Set g_objConn = nothing
       End If
    End Sub
    Function NVL(value, ifnull)
        If IsNull(value) Then
            NVL = ifnull
        Else
            NVL = value
        End If
    End FunctionYour problem could be related to security issues. Please try to run it as the local machine administrator.
    http://www.eggheadcafe.com/software/aspnet/31897247/oracleclient-oracle-10g.aspx
    Regards,
    ~Dietmar.

  • Vb6 ODBC - Syntax error or access violation in oracle 11g migration

    Hi,
    We have VB6 application with Oracle 10g and the same is working fine.
    Now, we are migrating to Oracle 11g now and we have updated the odbc drivers too.
    { call M_FR(?, ?, ?, ?, ?, ?, ?, ?) }
    L_ID = 890083
    V_ID = 1
    SUB_ID = 6955141
    SUB_SEQ = 1
    P_CODE = 1
    L_SUP_TYPE = 1
    L_REF_NO = 1
    DELETE_REASON_CODE = 1
    When calling the above sp in oracle 11g getting error: [Microsoft][ODBC driver for Oracle]Syntax error or access violation.
    But user has all the right and no issue with access. Also no syntax error. In SQLplus the same is working fine.
    Kindly help us to resolve this issue.
    Regards,
    Sathiya

    Try downloading the latest version of the 8.1.6 driver off OTN.
    That sounds like a bug that was fixed a while ago.
    Justin

  • AcroForm.api throws an error when instantiated in VB6

    When I try to create a new instance of AFORMAUTLib.AFormApp in vb 6, the code throws the error "ActiveX component can't create object."  I am using Adobe Acrobat v9.1.  Is there anything I can do to fix this error?

    We do not support development around Acrobat 9 with VB6.  In fact, I believe the last version that we supported with VB6 was Acrobat 7.

  • Automation error element not found in vb6 2147319765 after upgrading the os

    Hi we had updated our OS to windows 7 from XP.Previously we had an application in XP which is built on Vb 6 .The application throws an error message like Automation error --element not found with error code 2147319765 .The application shows the same error
    message even after I ran the application in XP compatability mode.
    The application is using data from other servers and all the servers are windows server 2003.
    muneer

    Double post:
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/229b4e46-9bcb-411e-901e-fec376dc36da/automation-error-element-not-found-in-vb6-2147319765-after-upgrading-the-os
    This forum is about VB.Net. If your question is about a VB6 project, have a look here:
    Where to post your VB 6 questions
    Armin

  • Installing NIDAQ 7.5 cause error in VB6 "nidaq32.dll not found"

    Hi,
    Anyone had this problem? I installed the NI-DAQ 7.5 drivers because
    I've been trying to get an application working with my 6533 card which
    just had DAQmx support added for it in 7.5. I have old code in VB6 that
    makes straight driver calls that I was trying to migrate to VB.NET. So
    I installed the new drivers and now I can access the card fine in
    VB.NET, however, my old VB6 application no longer works. It gives me
    the following error:
    Run-time error' '48':
    File not found: nidaq32.dll
    I went searching and the nidaq32.dll is still sitting in my
    Windows/SYSTEM32 folder, so that should be fine. The only thing I've
    changed since it stopped working is the installation of NI-DAQ7.5. I've
    tried reinstalling the driver. I've also tried overwriting the three
    nidaq32.bas files that I had in my project directory with the new ones
    in the nidaq/includes folder. Anyone else have this happen and/or know
    a solution for it?
    Thanks,
    Chris

    Dear Chris,
    Please see this post.
    Have a great day!
    Marni

  • "Error 13 type mismatch" appears in a VB6 under XP but not under wWindows 2000 ...

    Hello !
    I would like to use Daqmx functions in a VB6 program I am currently writing. In order to gain ideas about how to do it, I ran an example code DigPulseTrain-Cont.vbp included in Labview 8.2 intsallation. It works OK when ran on a Window 2000 PC, but delivers an arror massage "13 Type mismatch" when using a XP platform. Is it documented somewhere and any fix I can use to bypass this ?
    Thank you !
    Nicolas GINET

    Hi,
    Here there is an explanation of this type of error:
    http://digital.ni.com/public.nsf/allkb/8800DECF0D358C9D86256B1700656C04?OpenDocument
    Regards.

  • Runtime Error in Vb6. Error Loading DLL Error Code 48

    Hi
    We are facing an issue with one of the dlls hosted in Window 2008 Server R2.
    To give a background. The application is a VB6.0 Application having ASP as the front end. There are over 5000 Dlls in the application and this is an application running for more than 20 years (but first time in Win 2008 R2). There has been no code changes
    or recompilation in the DLL.
    The DLL that my ASP directly refers is VerificationApp.dll (This is a COM+ Dll). This inturn accesses a TaskVerification DLL (COM DLL-registered using regsvr32). When I do any operation on this page in this server, it shows me
    Error Log. ID:(38718) Error in loading DLL:in:VerificationApp.clsVerificationApp.InsertUpdateDelete:Err:48
    This happens only in this server. I have various different hosted instances of this which works perfectly Ok. I have tried many options as mentioend in the google
    links, but nothing seemed to work. Pls suggest

    On 7/25/2012 3:36 AM, XforSys wrote:
    > Hi
    >
    > We are facing an issue with one of the dlls hosted in Window 2008 Server R2.
    >
    > To give a background. The application is a VB6.0 Application having ASP
    > as the front end. There are over 5000 Dlls in the application and this
    > is an application running for more than 20 years (but first time in Win
    > 2008 R2). There has been no code changes or recompilation in the DLL.
    What a nightmare..... Maybe it's time to rewrite the application.
    >
    > The DLL that my ASP directly refers is VerificationApp.dll (This is a
    > COM+ Dll). This inturn accesses a TaskVerification DLL (COM
    > DLL-registered using regsvr32). When I do any operation on this page in
    > this server, it shows me
    >
    > Error Log. ID:(38718) Error in loading
    > DLL:in:VerificationApp.clsVerificationApp.InsertUpdateDelete:Err:48
    >
    > This happens only in this server. I have various different hosted
    > instances of this which works perfectly Ok. I have tried many options as
    > mentioend in the google links, but nothing seemed to work. Pls suggest
    >
    http://msdn.microsoft.com/en-us/library/aa232611(v=VS.60).aspx
    I say you may have to go back to Bing or Google and search some more for
    a resolution.
    The other thing is Win 2k8 server has security that may not allow access
    to the registry, file system or resources without the proper permissions
    in the context the program is running under. Win 2k8 server is not like
    Win 2k3 server, Win 2k server or Win NT 4.0 server in this regard.

  • Error 20544 Access Denied with Crystal ActiveX control in VB6

    Post Author: beckybear
    CA Forum: General
    We have a piece of legacy software written a while ago that is in VB6 using the Crystal ActiveX control crystl32.ocx.  We use 8.5 of Crystal Reports.About 50 or so users have this program loaded and it runs a single crystal report from a server location.  Most days, everything runs just fine, but lately more and more we've been having a problem where our some of our users get the message "Runtime Error 20544.  Access to report file denied.  Another program may be using it."  The same user will continue to get this error, even after rebooting, while others continue with no issues.  It's never the same people affected day to day.  And it always works for everyone the next day.I've read about a 20 limit on reports, but new users can log in and use the program with no problem, so if it's a connection limit, it doesn't seem right that new users would work.  Also, the workaround for that I found for that particular limit problem, setting it as a temporary report, doesn't seem to be available with the ActiveX control.  We cannot reliably reproduce the problem.So I guess my questions are, do you have any idea why it would work the next day without a reboot of the server or the user's machine?  If this is a limit problem, where is that limit stored, or how can I test to see that it is the limit problem?  What else could it be and is there anything I can add in the VB program to try and prevent this (cleanup, checks, etc.)?  Is this ActiveX control still supported and recommended with version 8.5?  Is there a different component we should be using?Thanks in advance for any help you can offer for this frustrating problem.  I searched the old archives and found others reporting this problem, but no solutions.

    Post Author: RayK
    CA Forum: General
    Did you find a solution for this problem?  I'm having the same sporadic problem with Crystal 8.5.  It usually goes away for a user by logging out and back in, but I'm getting a lot of complaints.  The report is being sent directly to the printer - no Preview mode as has been reported as the cause for some people.
    Thanks

  • Register failk error when invoking ActiveX control for a JavaBean from VB6

    J2RE v1.4.2_09
    Visual Basic 6.0 SP5/Visual C++ 6.0 SP5
    Windows 2000 SP4
    We have our existing production applications written using VB6 and VC++6. We are in the process of moving them incrementally to J2EE. Before everything is totally re-written in J2EE, we need to do something for interoperability between existing VB6/VC++6 and J2EE. ActiveX Bridge seems to be the solution we need, if only it works.
    Problem that I am facing....
    Register failk error when I try to insert a java bean activex control on a VB6.0 or VC++6.0 form or create an instance of the activex "Person.Bean.1" using CreateObject function, it throws the following error. I am able to create an instance of Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully though which means that the ActiveX control is registered properly and working.
    Error Message Box Title: asdas
    Error Message: register failk
    And then another error message pops up.
    Error Message Box Title: Java(TM) Plug-in Fatal Error
    Error Message: Cannot load class sun/plugin/JavaRunTime
    The Bridge was installed at <D:\PROGRA~1\Java\J2RE14~2.2_0> but the class is not there. Modify the registry key to reflect the new bridge location. The key is HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Plug-in or Change your CLASSPATH to include the new directory.
    I have this sample java bean class.
    a) Person.java
    import java.io.*;
    public class Person implements Serializable{
    private String fName,lName;
    public Person(){
    fName = new String();
    lName = new String();
    public void setFirstName(String firstName){
    fName = firstName;
    public void setLastName(String lastName){
    lName = lastName;
    public String getName(){
    return fName+" "+lName;
    b) person_manifest
    Name: Person.class
    Java-Bean: True
    Steps followed:
    call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat"
    set path=D:\j2sdk1.4.2_09\bin;%path%
    javac Person.java
    jar -cvfm Person.jar person_manifest Person.class
    mkdir "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin"
    D:\j2sdk1.4.2_09\bin\packager -out "d:\Program Files\Java\j2re1.4.2_09\axbridge\bin" -reg Person.jar Person
    Person.dll file created under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin and Person.jar copied under d:\Program Files\Java\j2re1.4.2_09\axbridge\lib.
    I am able to create an instance of this Person Bean ActiveX Control using ActiveX Control Test Container that comes with Visual Studio 6.0 and invoke the methods in the bean successfully. But, when I try to insert the activex control on a VB6 or VC++6 form or create an instance of "Person.Bean.1" using CreateObject function, it throws the above mentioned errors.
    I checked the registry and it shows J2RE1.4.2_09 version properly under that key and the Person.dll file exists under d:\Program Files\Java\j2re1.4.2_09\axbridge\bin. I also explicitly added the plugin.jar, person.jar to the classpath. Still it gives the error.
    Any ideas? Any fix or workaround for this problem? Thanks.

    Sometimes solutions are simpler than expose the problem.
    Did you add the dll to the project references?
    Sometimes also it is usefull to use the regsvr32 program to register the DLL.
    Pedro

Maybe you are looking for

  • Can I associate an existing TM backup with a new replacement hard drive?

    Hi all. I have a Mac Pro and just added a new, larger and faster hard drive as my primary system drive. I used Super Duper to clone the original over to the new. All is working fine on that front. My question is as follows. I was using a Time Capsule

  • Time machine is not backing up - starts to, then stops.  No error.

    Time machine has stopped backing up.  I have plenty of space on the external drive.  When starting a backup, whether automatically or manually, the process will begin, and may even get to the backing up stage, then stop.  No error message, but no bac

  • Condition Type not considered during Tax calculation in PO

    Dear Experts , I made  a new condition type called Freight before CST , as this was a requirement for one of my PO. This new condition is such that its to be considered before calculation of CST , but added after excise duty calculation . CST =%{(net

  • Suggestions for blending audio from one clip to next?

    I'm learning editing and PP and am practicing by editing different clips from a movie to make my own trailer. The problem I'm having is that going from one clip to another has obvious and abrupt changes. I could add audio transitions to each clip, th

  • Auto Apply Custom Color Palette to photo?

    I have two questions: 1) Is there a way to automatically capture colors from a photo to automatically create a custom color palette? (for example, if I want a color palette of 20 colors, it would automatically pick 20 colors and create a palette). 2)