473,411 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

CreateObject does not work consistently in X64 systems

Hi,

I have an application that creates an instance of a COM component. It works
consistently in XP x86 but not in XP x64 systems.

My code looks like the line below:
m_appInventor = CType(CreateObject("Inventor.Application"),
Inventor.Application)

I would appreciate any suggestion on how to make it work consistently in x64
systems.

Also, is there an equivalent VB.net class for this?

Thanks,
Glenn
Aug 8 '06 #1
3 2948
Hello Glenn,

If you just create a project reference to the COM library you can:

Dim tInventor as Inventor.application = new Inventor.Application

-Boo
Hi,

I have an application that creates an instance of a COM component. It
works consistently in XP x86 but not in XP x64 systems.

My code looks like the line below:
m_appInventor = CType(CreateObject("Inventor.Application"),
Inventor.Application)
I would appreciate any suggestion on how to make it work consistently
in x64 systems.

Also, is there an equivalent VB.net class for this?

Thanks,
Glenn

Aug 8 '06 #2
Hi Boo,

Thanks for your reply.

Unfortunately the COM library does not seem to allow creation in the context
below (unlike Excel). I get an error saying - 'New' cannot be used on an
interface.

Is there a workaround to this?

Thanks,
Glenn

"GhostInAK" <gh*******@gmail.comwrote in message
news:c7**************************@news.microsoft.c om...
Hello Glenn,

If you just create a project reference to the COM library you can:

Dim tInventor as Inventor.application = new Inventor.Application

-Boo
>Hi,

I have an application that creates an instance of a COM component. It
works consistently in XP x86 but not in XP x64 systems.

My code looks like the line below:
m_appInventor = CType(CreateObject("Inventor.Application"),
Inventor.Application)
I would appreciate any suggestion on how to make it work consistently
in x64 systems.

Also, is there an equivalent VB.net class for this?

Thanks,
Glenn


Aug 8 '06 #3
Hello Glenn,

No.. no workaround.. you can not instantiate interfaces (which is what the
New keyword does.. instantiate things).. you can only instantiate classes
and structures.

So.. you need to create (New) whatever class implements the interface you
are trying to mess with. Poke around in the Object Browser.

-Boo
Hi Boo,

Thanks for your reply.

Unfortunately the COM library does not seem to allow creation in the
context below (unlike Excel). I get an error saying - 'New' cannot be
used on an interface.

Is there a workaround to this?

Thanks,
Glenn
"GhostInAK" <gh*******@gmail.comwrote in message
news:c7**************************@news.microsoft.c om...
>Hello Glenn,

If you just create a project reference to the COM library you can:

Dim tInventor as Inventor.application = new Inventor.Application

-Boo
>>Hi,

I have an application that creates an instance of a COM component.
It works consistently in XP x86 but not in XP x64 systems.

My code looks like the line below:
m_appInventor = CType(CreateObject("Inventor.Application"),
Inventor.Application)
I would appreciate any suggestion on how to make it work
consistently
in x64 systems.
Also, is there an equivalent VB.net class for this?

Thanks,
Glenn

Aug 9 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bill | last post by:
I used to be able to run the following ASP code on our corp machine (W2K Server Edition and IIS-5) and successfully send a net-msg to anyone on our intranet. Last week it stopped working... and...
6
by: MacKenzie | last post by:
The statement in an asp page: dim objShell Set objShell = WScript.CreateObject("WScript.Shell") now gives this error: VB err= 424,Object required If I use...
1
by: Simple | last post by:
I have a VB Script that I call from my ASP page. One of the first things it does is: 'Launch Access Server.CreateObject("Access.Application") 'Open DB 'Preview Report This works fine on IIS...
2
by: Steve H | last post by:
I have created an object in c# that produces script for a legacy ASP page. Next, I created a setup project and installed it on the server. When I run a page that accesses it from the server, I get...
2
by: sbourdette | last post by:
Bonjour, I just install Windows Server 2003 (+IIS6) and my old application doesn't work anymore because i'm unable to use server.createobject. My error is : ...
0
by: quintesv | last post by:
hi all, Running VS.2003 , framework 1.1. I have a COM object written in Delphi which im trying to call through ASP.NET. The COM object connects to a folder on another machine and opens a...
130
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
2
by: auditor.software | last post by:
Hi. I need to run a function from another database, using: Dim App as Access.Application Set App = CreateObject("C:\LibDB.mde") App.Run "MyFunc", ... I use Access2K database format, and I...
4
by: fd97207 | last post by:
when I did a dir libm.a on my m/c I was surprised to find the size of the file is only about 500 bytes. What does it contain? And from which file does the math code actually come from? I have MinGW...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.