?
Solved

Compiling and Building DLLs through program!!!!

Posted on 2003-02-19
2
Medium Priority
?
257 Views
Last Modified: 2010-04-17
Hi experts,
   I have written so many DLLs in Visual Basic 6.0 and all the DLLs are interdepent means some DLLs I am using in some anpther DLL. So the problem is when I change one DLL I need to Compile it and build the DLL but at the same time I need to compile and build the other DLLs also which are used by this DLL because of dependencies.
   So the sequence is necessory. But I have soooooooo many DLLs so I can't compile and build each and evry time.
So I want to write an application which will build DLLs of VB.
  So is it possible? and if yes then can you please direct me?

thanks
Bharat
0
Comment
Question by:bharat_mane
[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
2 Comments
 
LVL 5

Accepted Solution

by:
yronnen earned 270 total points
ID: 7981270
Because of the issue you've just raised, many large software systems do not use the early binding option when calling activeX dlls (when you use MS activex dlls like ADO, it's usually OK).

The reason is that the moment you change one of the DLLs interfaces, you need to re-compile all the dependent components to point to the new Class ID of the DLL.
When using late binding you only need to compile the DLL itself, and if you changed one of the existing functions/methods signatures (for example changed a function type from string to long) you need to update and re-compile only the DLLs that uses the updated functions.

If the changes you made to the DLLs include adding new methods or changing the code within existing methods (without changing the signature of the method), yuo do not need to recompile any of the DLLs, as long as you made sure that you've set the updated DLL compatability to binary.

Another prossible option: combine all the DLLs in one project group in VB and choose "make project group" from the VB FILE menu. This doesn't change the fact that binary compatabilty should be selected in every project to avoid a mess in your computer.
0
 

Author Comment

by:bharat_mane
ID: 7981855
Thanks a lot yronnen
    for such a nice explanation
    I got ur point now I am following the vb6.exe /Make
Command line building. so now I am puting all the lines in one batch files and i am runing that batch file but if I build the DLL in IDE then it is building but through the command line it is giving me one error message

  "One or more of the properties in 'filename.vbp' was bad
SOme or all the properties minght not be set correctly"

But I created new simple DLL to add tow bumbers and I compiled it through Command line it is working fine.

So I am getting confused about where is Error.

Can you please help me?

Bharat
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

764 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