Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[OCX problem] - Failed to import the ActiveX control Visual Studio

Status
Not open for further replies.

bryan1207

Programmer
Mar 7, 2018
28
PH
I'm using Visual Studio and SAGE 2020. In previous version of SAGE 2019. I can used the .ocx and installed it successfully. But after upgrading, I cannot use it anymore.

When I dragged the Item from ToolBox:
Capture_dvrkei.jpg


I even tried to manually register the .ocx file
Capture2_dnu4ad.jpg


Is there any thing that I missed? Or need to be done?

Btw, when I tried to rebuild the solutions, below is the error:
Code:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3283: Cannot find wrapper assembly for type library "AxAccpacOE1100". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.
 
Installing Sage would have caused it to run regacc.

Maybe try running VS as Administrator?
 
I'm already running my VS as Administrator. Till now it is not working. Spent 3 days already for this error.
 
Are you able to create a new project with the other sub components of the OE screen? Meaning - an Accpac data source, field edit control, etc? I'm wondering if there is an underlying issue affecting the OE screen.
 
I'm not sure where the issue is but I had the same problem when trying to bring the .ocx controls into Delphi to do customizations. Other people had success but the error messages that I was seeing was very similar to what you were seeing. I dropped back to VB6 and didn't look back - until Orchid's Extender came along.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top