Redimming/Using An ActiveX DLL's UDT?
Sep 7, 2009
I am converting an application to Visual Basic .NET.I have an ActiveX DLL that I must use that contains a PublicNotCreatable class that contains these user defined types:
Public Type CSGSelectionItem
Primary As Long
Sub As Long
[code]....
I have come across a couple of problems with this. The most important problem is that VB.NET doesn't want to let me Redim the 'ItemList' of a variable with a type of CSGShapeSubSelection:
Dim cdtShapeSubSelection As CanvasSG.CSGShapeSubSelection
ReDim cdtShapeSubSelection.ItemList(lSelectionItemListCount - 1)
I get an error: 'Redim' statement requires an array.Also, it seems as though VB.NET has no knowledge of what CSGSelectionItem is. So, when I type:cdtShapeSubSelection.ItemList(0).I get no auto-complete suggestions of any value. I would have expected suggestions of "Primary", "Sub", and "OperationControlEffect", but instead I get "Equals", "GetHashCode" etc.
View 7 Replies
ADVERTISEMENT
Apr 8, 2009
I am trying to load an actixex component in a VB project which was made in Visual C++.n VBA it works fine.In VB6, when I try to load the component on the toolbox I get an "Error 35005"In VB2008 the component can be added to the toolbox, but when I try to place it on the form, the following error occurs: "Failed to import ActiveX control. Please ensure it is properly registered."
View 1 Replies
Oct 20, 2010
How to Resolve following Error in .netNon-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page.
View 1 Replies
May 27, 2011
I've seen quite a few questions about calling 32 bit ActiveX components on 64 bit platforms - as I understand it you can't create a 32 bit ActiveX component from a .NET application running in X64 (native) mode. This is OK and I think I understand it.But my question is more basic. Is there such a thing as a 64 bit ActiveX component? or is ActiveX always 32 bit, period?
View 5 Replies
Nov 19, 2009
I have a COM dll that has been developed under vb.net. The Control works just fine in IE 6 and IE 7, but when IE 8 tries to load the control, the browser crashes. I look at the event viewer and I get an error 1000 about iexplorer.exe and mshtml.dll. Do I have to build this com dll with IE 8 on my development machine? How can I track down what is wrong with the Control?
View 2 Replies
Sep 23, 2009
I created an activex in vb6 and used it asp.net. It work perfectly in ie6 . But not working in ie8 . No errors showing. In security setting I enabled activex option just like i changed in ie6. Only the small square i can see in ie8.
View 2 Replies
Jun 17, 2009
I added an ActiveX dll to my program in VB.NET (Project/add reference/COM Tab).i put the control on a windows form, but when i try to start debugging it gives this error: 'Unable to get the window handle for the'AxMyActivex'control. Windowless ActiveX controls are not supported.
View 1 Replies
Mar 5, 2011
I use thrid party activex control/ dll/ocx file. I add them by using choose items and browse the desire file. When i deploy the application is that works?If not where i add these files which are use at any system where i install my application.
View 2 Replies
Apr 15, 2008
I have an activeX OCX which i used in my program in vb6 (it is a 3rd party component), it actually interfaces with a PLC to do some work. Now i am porting my VB6 app to vb.net (Console application), i tried to reference it and create an instance of the activeX. But i realised that my instance is always = nothing. Here is the code snippet of what am i doing and i have attached the activex ocx in a zip file. Will anyone test it if it will work in vb.net (Console apps only).
[Code]...
View 5 Replies
Dec 14, 2010
I am trying to create an ActiveX.DLL file. I have created them before with VB 5.0. However, I can't find this option in Visual Basic 2010. Has it been renamed?
View 1 Replies
Jun 9, 2011
I created a program with a textbox on it and a button that does something with the text in the textbox.How do I make that program COM visible, load it and automate it from another project?My goal is to be able to automate the program using COM:
Dim myProj as object = createObject("myProgram")
myProj.setText("Hello World")
myProj.buttonClickEvent()
Similar to how you can load a new excel and automate via interop:
dim xl as object = createobject("excel.application")
Dim wb as object = xl.workbooks.add
Dim ws as object = wb.worksheets(1)
ws.cells(1,1) = "i love stackoverflow"
How do programs do this? I'm looking for the answer VB.Net specific.
View 1 Replies
Jan 12, 2010
how can i get activex contol for firefox 3.0.17
View 2 Replies
Sep 28, 2011
Do we have an activex control for sending sms using a modem?
View 1 Replies
Apr 27, 2009
I created an ActiveX Control in ATL, which I can succesfully use in for instance Internet Explorer. When I want to put that object in a VB.NET (2003) app, I get some problems.
First I 'Import' the control, using Visual Studio, so there are COM Interop DLLs created. Then I insert the control in the toolbox and drag/drop on a form. The control is succesfully created.
However, when I run the VBApp, it crashes. The debugger tells me that it gets a 'Class Not Registered' error.
Same when I create a pushbutton and create the object manually:
Code:
Dim AxQuest3DCtrl As Object
AxQuest3DCtrl = CreateObject("MyControl.MyCtrl.1") //crashes here
If AxQuest3DCtrl Is Nothing Then
[Code]....
View 3 Replies
May 20, 2012
I have created a created a webbrowser on a form and pointed it to [URL]..when i use the web form to change a verb, part way through navigation i get an the error:
Title Windows Internet Explorer body one or more activex controls cannot be displayed because either:
1) Your current security settings prohibit running activeX controls on this page or,
2) You have blocked a publisher of one of the controls
As a result the page might not display properly.
View 1 Replies
Mar 30, 2010
I have created a VB ActiveX Control. I embed the DLL using the following semantics. It appears to be working fine in my local machine. However, it does not in other's workstation. But I was not able to generate the LPK file using the LPK_tool.exe since the ActiveX control did not show up in the list.
<object id="printUtil" name="printUtil" classid="CLSID:440616e0-8d63-47b8-b16d-4fd281dc652b" >
</object>
View 1 Replies
Nov 1, 2010
I develeped VB.NET solution composed of two projects: 1 Win Form project and 1 class library (.dll) project.I need to import all the .NET solution to a "Lab View" project ("National Instruments" product) as an ActiveX object (or suitable LabView object to import from .NET as well). The "Lab View" view interface shoulf have a button which call the WinForm interface.Is it possible? I think that there could be some problems with Win Form project, that is difficult to set inside an ActiveX .NET project.
View 2 Replies
May 5, 2010
I wont to add swf file to my Vb.net project. I'm using Visual Studio 2010. How can i insert swf file to vb.net project ?
View 7 Replies
Nov 1, 2009
I didnt know if this was the correct location to post this kind of question. My code is in C# however I am using the visualBasic. Interaction. CreateObject to connect to a OCX file. I notice that this works great for a while but if it continues to do its job for lets say a few days then I get and exception... "Can not create an ActiveX component." I am 100% sure that the ocx and dlls are registed correctly to the system.
View 2 Replies
Jan 27, 2009
I am using the following code to send an email thru Outlook 2003:
Dim omsg As Object
Dim oRcp As Object
Dim objCDO As MAPI.Session
[Code].....
View 4 Replies
Jan 23, 2010
Working on getting a legacy app up and running again for work. I'm getting an error at run time that I can't create an activeX control. The suspect call is
oSQL = CreateObject("SQLDMO.SQLServer2")
I did a bit of googling and found that SQLDMO should be in a SQLDMO.dll. I've got that DLL referenced in my project but it is still failing.
View 1 Replies
Feb 2, 2010
I wrote an app that writes to an excel file. It works fine on my computer. I create the install through VS2008 and it adds the needed files such as the office dll files. After installing it on another machine it shows it cannot create activex. Does excel need to be installed on the machine? Or is this another type of error?
View 2 Replies
Jun 30, 2010
I am develpoing a small vb.net forms application. From that trying to load the Autocad using the following code.[code]When creating the application for first time, it works fine. Loads the Autocad correctly. But for second time if run the application the following runtime error is occuring. "Cannot create ActiveX component" at the CreateObject line.I cant predict what is the problem. I've included the following references in my program.[code]
View 1 Replies
Jul 26, 2010
I am developing a VB2008 application that makes use of the Office Access runtime.I started development on Win7 64-bit & Visa 32-bit machines.The application runs just fine on the machines with VB2008 installed.I have used a number of tools to build the application installation and I am running into the same thing on all target test machines (currently XP Pro).The system fails when the Office Access portion of the code starts to run.Below is the Just-In-Time debug info.
I also notice that .NET 2 is being called.Is it wise to make .Net3x the preferred .Net client?In the application, I have specificed .Net3 (however, it does not look like it is being called).The target test machine (XP Pro) has .Net 2.3 and 4 installed.See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Exception: Cannot create ActiveX component.[code].....
View 12 Replies
Aug 27, 2009
How to coll activeX into asp.net for publish interface?what can i do?what's step i can use?
View 1 Replies
Jan 15, 2010
I have looked all over the web for a way to create an activex DLL in VB 2008. I have seen instructions for VB 2005 and VB 6. They both mention that I need to create a new project and use the template Activex DLL for the project, but I do not have the option "Activex DLL" for a template. Is there a way around this or can i download the template from somewhere? The background to the problem is that I have a DLL file (compiled in Delphi) that I can load and use correctly in VB 2008. I want to use VB 2008 to make this an Activex DLL so that it can be used with ASP.net. I have had no such luck. I have created a DLL using the Class template, but this DLL cannot be registered with the regsvr32.exe for usage with ASP.net.
View 2 Replies
May 10, 2012
I have a activeX control. In activex control have a DGV control. I fill this DGV on project load time (Run Time, Not Degine Time). If I place this activex on some form I don't want load data again because data fill in dgv on project load time (Run Time, Not Degine Time).
View 1 Replies
Jan 9, 2009
I am working on a project that needs to using an activeX driver (libaray), a .ocx file. The driver have some properties and methods. I added the reference and have a new instance. When I try to put values to the properties, I got error messages from the driver.
Imports CBMCOMMLib
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[URL]
MaxTraces is one of the properties. Am I using the library correctly?
View 2 Replies
Apr 4, 2009
Lets discuss about those created active x which got created in VB6 and not working in Vista.Here i will let you know my problem,no idea wheather we need to upgrade any runtime file in VB6 or in vista?
I have done an ActiveX to get client MAC address as its major part and runs over IE.it is successfully running in Win2000, Win2003, WinXp and even with IE7 with previously mentioned Window versions.
This ActiveX was developed in VB 6.0.
This ActiveX gets installed atomatically through a cab file, whenever the application was accessed first time.
this cab file work fine in WinXP but when we try to run this cab file in vista IE get hang
Now, we have to support it with IE7 over Vista.
let me know what should I do to make it compatible with IE7 and Vista. I am using Vista Business right now.
When the application was accessed through IE7 for the first time, ActiveX installation dialog appeared. I pressed the Install button but then IE7 threw an error message that "Internet Explorer has stopped working". After that each time, whenever the application was accessed IE7 threw the same error message.
Cab file i made in VB6 using internet and deploy package wizard,along with cab file we will get one HTM file also to get Object id and code base along with version,even if we try to open this HTM file then also IE get hang.
I tested by manually registering the ocx, also turned off the Protected Mode and enabled my ActiveX through Manage Ad-on as well, but to no avail.
View 1 Replies
Aug 3, 2009
I want get make project which need use activeX in VB to design and include code. that project necessary so that computer can read port usb outer diameter and then can read that programme and what code can be used
View 2 Replies