Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Problem to generate file

Posted on 2015-02-10
8
Medium Priority
?
93 Views
Last Modified: 2015-02-11
Hi,
I want to adjust this option - "Register for COM interop", to Visual studio project, but I don't know where to adjust the option below
https://dl.dropboxusercontent.com/u/40211031/t973.png

to the project?

I now cannot generate TLB file to this project
https://dl.dropboxusercontent.com/u/40211031/CSDemo%20150207.zip
0
Comment
Question by:HuaMinChen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 34

Assisted Solution

by:it_saige
it_saige earned 2000 total points
ID: 40600750
You have opened the solution properties -Capture.JPGNot the project properties -Capture.JPGWith the project properties open, select the 'Application' tab and press the 'Assembly Information...' button.Capture.JPG-saige-
0
 
LVL 11

Author Comment

by:HuaMinChen
ID: 40602222
Thanks.
I enable the Checkbox

Application\Assembly Information\Mark assembly COM-visible

and then re-generate the solution/project, but I still get no TLB file generated.
0
 
LVL 34

Expert Comment

by:it_saige
ID: 40603325
Make sure that your project is a 'Library' type:Capture.JPGThen on the 'Compile' page, you will see an option for 'Register for COM interop':Capture.JPG-saige-
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 11

Author Comment

by:HuaMinChen
ID: 40604791
Thanks. I don't know why the option is disabled (see the attached). Can you please refer to the project (attached in above), if possible?
t982.png
0
 
LVL 34

Expert Comment

by:it_saige
ID: 40604849
The option is disabled because you are not building a library.

-saige-
0
 
LVL 11

Author Comment

by:HuaMinChen
ID: 40604853
Previously, when re-building the solution, .TLB file would be generated. I don't know why now it would not. What is the reason to this? Thanks.
0
 
LVL 34

Expert Comment

by:it_saige
ID: 40604873
HuaMin,

I downloaded your project and unzipped it.  I cannot replicate your issue.  All of the required options are selected for the CSDemo project and it does build the tlb file.Capture.JPG
Are you perhaps looking in the wrong folder?

-saige-
0
 
LVL 34

Accepted Solution

by:
it_saige earned 2000 total points
ID: 40604883
I think I have identified your problem.  Did you recently change the configuration from 'Any CPU' to 'x86'?Capture.JPGIf so, the updated files are located in the x86\Debug folder -Capture.JPG
Proof of concept (results after changing the configuration to Any CPU and rebuilding):Capture.JPGCapture.JPG-saige-
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question