473,383 Members | 1,922 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,383 software developers and data experts.

dotnet dll

Hi all

I have made a com dll .

Details are

OS : win 2000

Env: DotNet

I now want to execute this in the following env:

Win 98 and VB 6

This gives error.Page fault in VBA6.dll, and says that the it has performed
an illegal operation.

Please help.
Nov 20 '05 #1
4 1074
Ot
I have made just such a com dll and distribute it to other environments.
This worked for me. It may not be the best way, but hey, it works!

In the VS IDE I set up a second solution named xxxDeploy (where xxx is my
app). In that solution I have one deployment project named xxx. I include
the dll(s) that I want to package. I change the registration option to
vsdraCOM for all that I want registered on the target machine. As it
happens there is another registry key I need to update, so I add that to
the Registry settings.

You will find that the interop assemblies are generated. These are the
"wrappers" that the VB6 app will see.

When the user (in my case on anything from 98 to ME to XP) runs the .msi it
properly registers my library.

In my code I have:

<ComClass(xxx.ClassId, xxx.InterfaceId, xxx.EventsId)> _

Public Class xxx

....

End Class

#Region "COM GUIDs for xxx"

Public Const ClassId As String = "A81E8732-B8F8-4db0-864B-D40E78492EA9"

Public Const InterfaceId As String = "627BACD8-86E3-4ffc-B2BD-B3C2C2EC69DD"

Public Const EventsId As String = "B4BFAB80-B5DF-467b-BCE4-1F0C51B6E7E0"

Public Sub New()

MyBase.New()

End Sub

#End Region

Regards,

Ot

"Andry" <me@me.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all

I have made a com dll .

Details are

OS : win 2000

Env: DotNet

I now want to execute this in the following env:

Win 98 and VB 6

This gives error.Page fault in VBA6.dll, and says that the it has performed an illegal operation.

Please help.

Nov 20 '05 #2
Hi Ot,
I tried your steps, but the problem is still there.
Do you mind explaining it to me in a little detail?
Please help me here.
Thanks!
"Ot" <ur***@tds.invalid (use net)> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have made just such a com dll and distribute it to other environments.
This worked for me. It may not be the best way, but hey, it works!

In the VS IDE I set up a second solution named xxxDeploy (where xxx is my
app). In that solution I have one deployment project named xxx. I include the dll(s) that I want to package. I change the registration option to
vsdraCOM for all that I want registered on the target machine. As it
happens there is another registry key I need to update, so I add that to
the Registry settings.

You will find that the interop assemblies are generated. These are the
"wrappers" that the VB6 app will see.

When the user (in my case on anything from 98 to ME to XP) runs the .msi it properly registers my library.

In my code I have:

<ComClass(xxx.ClassId, xxx.InterfaceId, xxx.EventsId)> _

Public Class xxx

...

End Class

#Region "COM GUIDs for xxx"

Public Const ClassId As String = "A81E8732-B8F8-4db0-864B-D40E78492EA9"

Public Const InterfaceId As String = "627BACD8-86E3-4ffc-B2BD-B3C2C2EC69DD"
Public Const EventsId As String = "B4BFAB80-B5DF-467b-BCE4-1F0C51B6E7E0"

Public Sub New()

MyBase.New()

End Sub

#End Region

Regards,

Ot

"Andry" <me@me.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi all

I have made a com dll .

Details are

OS : win 2000

Env: DotNet

I now want to execute this in the following env:

Win 98 and VB 6

This gives error.Page fault in VBA6.dll, and says that the it has

performed
an illegal operation.

Please help.


Nov 20 '05 #3
Ot
The thing is, Andry, I am a bit new to VB.NET myself. I'll take my best
shot, but it is the newbie advising the newbie.

If I were having the same problem, I would try to debug it first on my
development machine. Have you tried that? Can you successfully access/use
your dll there?

Assuming that you have success on the development machine, you can note the
registry entries. This will allow you to see what is missing on the target
machine.

My guess would be that the registry is not correctly set up on the target
machine.

I didn't explicitly mention the *.tlb, but the msi must be set up to
register that as well.

If the registry is set up correctly, I suppose the framework could be the
problem. Is the .NET framework set up right on the target? There are ways
to distribute it yourself, but in my case I simply make it a prerequisite
that the users must install themselves. If they don't, executing the msi
prompts them.

That is about the extent of what a fellow newbie can recommend. If the
problem persists you might post back here or in a new thread with as much
detail as you can.

Regards,
Ot

"Andry" <me@me.com> wrote in message
news:ev**************@tk2msftngp13.phx.gbl...
Hi Ot,
I tried your steps, but the problem is still there.
Do you mind explaining it to me in a little detail?
Please help me here.
Thanks!

Nov 20 '05 #4
Thanks Ot. I really appreciate your efforts and your will to help me out.
I am very grateful!!
Thanks again :)
"Ot" <ur***@tds.invalid (use net)> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl...
The thing is, Andry, I am a bit new to VB.NET myself. I'll take my best
shot, but it is the newbie advising the newbie.

If I were having the same problem, I would try to debug it first on my
development machine. Have you tried that? Can you successfully access/use your dll there?

Assuming that you have success on the development machine, you can note the registry entries. This will allow you to see what is missing on the target machine.

My guess would be that the registry is not correctly set up on the target
machine.

I didn't explicitly mention the *.tlb, but the msi must be set up to
register that as well.

If the registry is set up correctly, I suppose the framework could be the
problem. Is the .NET framework set up right on the target? There are ways to distribute it yourself, but in my case I simply make it a prerequisite
that the users must install themselves. If they don't, executing the msi
prompts them.

That is about the extent of what a fellow newbie can recommend. If the
problem persists you might post back here or in a new thread with as much
detail as you can.

Regards,
Ot

"Andry" <me@me.com> wrote in message
news:ev**************@tk2msftngp13.phx.gbl...
Hi Ot,
I tried your steps, but the problem is still there.
Do you mind explaining it to me in a little detail?
Please help me here.
Thanks!


Nov 20 '05 #5

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

Similar topics

1
by: GChong | last post by:
Hi, Im looking for some general 'marketing' info on dotnet: how long it has been in use (i.e first release date), how many companies are using it, number of .NET developers in the world,...
12
by: tmb | last post by:
1 - Is Microsoft dotnet a Virtual Machine... like the Java Virtual Machine... that will run on any operating system? 2 - If so, does Microsoft give away the dotnet development system like Sun...
5
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written...
0
by: Justin Kennedy | last post by:
Hi, I'm new to dotnet. In fact, I'm a Java/web dev. guy mostly. I was debating on whether to use Java or dotnet for a recent project. The main requirements are: 1. Tools to create a "rich"...
10
by: Darren | last post by:
OK, I'm trying to understand the need for this. If I understand correctly without this anyone can reverse engineer and obtain the source code of my application - is this correct? And this tool will...
0
by: Joe Bloggs | last post by:
Hi all, I take the pleasure to inform that Dotnet Commons Logging has been released for use. Dotnet Commons Logging, a subproject of the Donet Commons project currently located under the...
4
by: Peter Hemmingsen | last post by:
Hi, I have a dotnet object (implemented in mc++ and used in c#) which have a property called "Info". The Info property is also a dotnet object (implemented in mc++). In the constructor of the...
4
by: Peter Plumber | last post by:
OK, this is a rather strange request Is it possible to use dot-net dlls in VB6 projects? Is anyone doing this or is this completely useless? thx Peter
3
by: gg | last post by:
My standard version of dotnet 2003 basic does Not have vbc.exe have class library template produce dll when outputtype is changed to classlib for .vbproj it seems that standard version is not...
7
by: Peted | last post by:
Hi, im hoping someone cane provide or point to a definitive accurate explantion of dotnet compilation when run and the best way to optimise peformace when dotnet code is run first time and...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.