Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

My Project Object is misbehaving beyond my control

Status
Not open for further replies.

TrueCode

MIS
Joined
Sep 30, 2003
Messages
71
Location
LC
I hve this test project that I am using to learn WINSOCK. I decided to subclass winsock and placed it in a class library that I intend to use for all applications. There after, I added the class library into my test project. When I do a build, the test project gets automatically filled with forms and prgs from another project.

What am I doing wrong? Could someone help me please?

------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
I suspect something in your project, a form or class library (most likely), are making a reference to the items in the other project. Because of this, VFP adds them to your current project once you do a build.

Take a look at your current libraries and forms to see if there is a reference.

Jim Osieczonek
Delta Business Group, LLC
 
Jim

It is true that the class serves the forms in the other project. I thought more than one project can use a particular class. I am confused.




------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
You're correct, I thought more than one project can use a particular class, and that is exactly what is happening.

The 2nd project is referencing the class, which is shared by the 1st project. If the class, references forms or other items from the first project, they will be added as part of the 2nd project.

Normally, I have the forms, prgs, etc. reference the class libaries and my classlibs do not reference them because I want to avoid the situation you appear to be in. That is, their are forms and libaries in the project that you're not using for this particular app.

Does that make more sense?

Jim Osieczonek
Delta Business Group, LLC
 
Jimbo,

That situation makes your project unnecessarily cluttered
I wish that there is a way of avoiding this.


------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
It can be avoided. If you wish to share your classes with other projects, you need to look at your classes and make sure they are not referencing forms or programs that you do not wish to reference in all projects.

Here is another way to explain it.

MyForm ---> Myclass (to get text boxes, etc.) This is fine.

myClass ---> Referencing the form. If this is the situation, the form will be added to the project each time you include the class, whether or not you are using it for that particular app.

I suspect your classlib is referencing the forms and programs instead of the other way around.

Jim Osieczonek
Delta Business Group, LLC
 
Jim.

I am reviewing my classes again. I will repost next week. Please check out for me on Monday..

On the face of it, I don't remember doing the second type of referencing that you mentioned.


------------------------------------->

"I have sought your assistance on this matter because I have exhausted all the help that I can find. You are free to direct me to other source of help"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top