|
Thanks for your tip, at this point I`m still not sure what I want to use.
|
|
|
|
|
This should likely be in a lounge rant, but it is technical.
I have a project on a system that I need to compile to fix an issue. The issue is trivial. But when I go to Build...all it gives me is "Run Code Analysis on Solution".
I've reset permissions on the folder, I have made sure 2015 is up to date, but 2015 won't give me the prompts.
What am I missing?
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Did you try to Rebuild All (or how is it exactly called in VS2015? - I cannot recall ...)?
|
|
|
|
|
It's not in the menu. This is maddening
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
How about:
Rebuild <project>
Rebuild solution
in the menu "Build"?
Or just "Clear solution"?
|
|
|
|
|
|
|
Rep-point fluffing to get his spam link shown in his profile.
Message and user reported.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Victor Nijegorodov wrote: What is it?
Spam.
|
|
|
|
|
Check that your .vcxproj files are there. If they are, check the Properties of your project(s) to see if their dependencies are correct and if they generally make sense.
|
|
|
|
|
Weird, never figured it out. Pulled the project from a zip file, and it built.
Appreciate all the suggestions.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
charlieg wrote: What am I missing? Presidents shouldn't be compiling software. You need a software developer.
|
|
|
|
|
lol, true. I'm also the treasurer. It's oh dark thirty here and thanks for the laugh.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
This is what is in the Build tab: image-2022-04-22-062801040 — ImgBB[^]
This code lives on a VM that was migrated into a zero trust cloud. I can go back to the original VM, and 2015 there has the full build menu.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
As I recall, Visual Studio has never supported working with solutions that are located on network/remote drives.
Are you working with Visual Studio on the virtual machine where the solution resides?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
No, I just RDP into it. Nothing too fancy.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
A STL container is not your typical c++ class, how do you declare a vector pointer and pass it to a function.
class someclass
{
public:
int ID;
}
void somefunction(vector<someclass>* vec)
{
someclass scitem;
vec->push_back(scitem);
}
vector<someclass>* vec;
somefunction(vec);
I`m also not sure how a vector of pointers would work.
void somefunction(vector<someclass>* vec)
{
someclass * scitem;
scitem = (someclass*)malloc(sizeof(someclass));
vec->push_back(scitem);
}
vector<someclass*>* vec2;
somefuntion(vec2);
|
|
|
|
|
Yes, STL containers are just template classes and can be manipulated the same as any class objects. And as such, a vector may contain objects, or pointers to objects. But remember in the second case that the items pointed to, must not be removed while the vector still owns them.
std::vector<char*>* pMyvec = new std::vector<char*>(); pMyvec->push_back("A string");
pMyvec->push_back("Another string");
int result = myfun(pMyvec);
BTW you should not use malloc in C++ code, as new and delete is the correct way to manage memory.
|
|
|
|
|
Quote: And as such, a vector may contain objects, or pointers to objects
But when you add a class object, the vector doesn`t make a copy of the object, it creates a pointer to the object being added. A linked list deals with pointers not objects.
|
|
|
|
|
If you add an object to an STL container (vector , list , set , map ...), the object is copied into the container. The objects must all be of the same type, however. The only way to put polymorphic objects into a container is to use a container of pointers to their common base class, in which case the objects need to survive outside the container, probably by having been allocated from the heap.
modified 16-Apr-22 7:34am.
|
|
|
|
|
thanks Greg, I`ll keep that in mind.
|
|
|
|
|
CalinNegru wrote: when you add a class object, the vector doesn`t make a copy of the object, it creates a pointer to the object being added. No, the vector copies whatever type you have declared it with. For example:
std::vector<std::string> myVec;
std::string newstr = "A string";
myVec.push_back(newstr);
CalinNegru wrote: A linked list deals with pointers not objects. Well sometimes it does; but what has that to do with this question?
|
|
|
|
|
ok, I think I get your point
|
|
|
|
|
Message Closed
modified 15-May-23 19:06pm.
|
|
|
|
|