registered for COM Interop (newbie)

M

mp

I have started with some previous code (code that was purchased from outside
developers) to create new app (being new to dotnet)
trying to use some parts of existing code just as a boilerplate beginning
point and change other parts to create different app.

somewhere in the code, and i don't know where, some com lines or settings
exist that are throwing the following warnings when i do a build
"C:\PathToDll\MCS_DXF.dll" does not contain any types that can be
unregistered for COM Interop.
"C:\PathToDll\MCS_DXF.dll" does not contain any types that can be registered
for COM Interop.

where would i look in the properties/code for the offending settings that
makes the compiler think i want to build for com use?

thanks
mark
 
P

Phill W.

somewhere in the code, and i don't know where, some com lines or settings
exist that are throwing the following warnings when i do a build
"C:\PathToDll\MCS_DXF.dll" does not contain any types that can be registered
for COM Interop.
where would i look in the properties/code for the offending settings that
makes the compiler think i want to build for com use?

Project Properties > Build
"Register for COM InterOp"

HTH,
Phill W.
 
M

mp

Phill W. said:
Project Properties > Build
"Register for COM InterOp"

HTH,
Phill W.

I should have mentioned I'm on express version
I don't find a Build tab under project properties
I do find Application tab, and on that tab Assembly INformation button, and
on the dialog that pulls up a check box "Make com visible" but that is not
checked.
 
M

mp

Phill W. said:
Project Properties > Build
"Register for COM InterOp"

HTH,
Phill W.

according to the help files it should be on the compile tab of project
properties
To register a component for COM interop
1.. With a project selected in Solution Explorer, on the Project menu,
click Properties.

2.. Click the Compile tab.

3.. Select the Register for COM interop check box.

but in express i don't see that check box

is there a way to un register it in express?
 
M

mp

mp said:
according to the help files it should be on the compile tab of project
properties
To register a component for COM interop
1.. With a project selected in Solution Explorer, on the Project menu,
click Properties.

2.. Click the Compile tab.

3.. Select the Register for COM interop check box.

but in express i don't see that check box

is there a way to un register it in express?

I think I finally found it.
You have to open the project.vbproj file in notepad
find the line
<RegisterForComInterop>true</RegisterForComInterop>
and change to
<RegisterForComInterop>false</RegisterForComInterop>

seems to work
thanks
mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top