Solved

Problem to generate file

Posted on 2015-02-10
8
79 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
  • 5
  • 3
8 Comments
 
LVL 33

Assisted Solution

by:it_saige
it_saige earned 500 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 10

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 33

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
 
LVL 10

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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 33

Expert Comment

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

-saige-
0
 
LVL 10

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 33

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 33

Accepted Solution

by:
it_saige earned 500 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now