|
chris175 wrote: You kind of see where I am going with this?
I believe so and it still sounds like Source Code Control.
chris175 wrote: I would like to go out to a file structure or something where that function is stored and then put it into ProjectD.
A) File structure will not hold a "function" it will hold "files" so you are still referring to source code.
B) Source control systems provide sharing of files across projects so they manage that part for you.
chris175 wrote: because I always want the newest version.
Wow, have you never introduced new code and then decided you didn't want to keep it? Happens all the time to me then all I have to do is "undo the checkout" and I am back to where I started with a single mouse click!
Have you never made a change that introduced a "bug"? Source Control Systems provide "differencing" which simplifies finding "what" changed that might help "find the bug".
I see nothing in what you posted that would not be solved using Source Code Control system. Personally I never develop anything without using source control.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
I have introduced new code and then decided I didn't want to keep it. Maybe more examples may help understand...
GetDefaultPrinter.txt
-----------------
Setup:
-----------------
- Add an include directory, C:\Program Files\Microsoft SDK\include
- Add a link to Winspool.lib
-----------------
DOxygen File:
-----------------
-----------------
.h File:
-----------------
bool GetCurrentDefaultPrinter(std::string& s_printer_name);
-----------------
.cpp File:
-----------------
#include "Winspool.h"
bool GetCurrentDefaultPrinter(std::string& s_printer_name)
{
s_printer_name = "";
CPrintDialog cpd(FALSE);
if(!cpd.GetDefaults())
{
return false;
}
s_printer_name = cpd.GetDeviceName();
return true;
}
stdstring - Is Digits.txt
-----------------
DOxygen File:
-----------------
-----------------
.h File:
-----------------
bool Is_String_Digits(const std::string& s_digits);
-----------------
.cpp File:
-----------------
bool Is_String_Digits(const std::string& s_digits)
{
if (s_digits.length() == 0)
return false;
for (int i = 0; i < s_digits.length(); i++)
{
if (!isdigit(s_digits[i]))
return false;
}
return true;
}
I am not trying to argue with you that putting these files into source control is a bad idea. You could if you want to. I just choose not to. What I want to get at is how all these different files are organized. What type of file structure? Do you use any software (besides version control) to accomplish this?
Chris
|
|
|
|
|
I haven't looked into it myself. Seems to me from your replies that you are looking for something that manages a snippets library or code repository type of thing.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
|
hello,I'm 18 years old and i'm starting my new computer life now,i wanted to know if i should start with visual c at first or with C# and .net technology,which one is more useful?????
thanks,bye.
kh-pakdaman™ development studio.
|
|
|
|
|
|
kh.pakdaman wrote: ...which one is more useful?????
Like any tool, each has its own strengths and weaknesses. Pick the one that best fits the job.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I must say C# is a 100 times easier than C++. I started my career with C++ and am very thankful I did so. After a pretty extensive knowledge of C++, I was forced to learn C# (work related). After programming in C++ for around 2-3 years I moved over to C#. In about a month of programming in C# I was nearly an expert....with the basics at least...because it is so incredible easy after C++ (especially with the tab control). The things you dont have to worry about (deleting stuff). You really appreciate how easy custom control can be made and the reuse of code. Simple things no longer take forever to figure out. Simple things no longer have 5 hidden steps inbetween that noone talks about. (Like for instance finding if the current user is an administrator. I search on the net for 4-5 hours and finally found 1 web site that shows how to do it. In C++ there is about 5 to 6 special functions for this and they all have funky names. In C# I think there is a special namespace for this and its so self explanitory.)
Anyway if you are looking for easy I would say C#.
Chris
|
|
|
|
|
If you want to be able to look at any language and see what is going on even without knowing that language, learn C++. It will take you longer to learn than Basic, C#, or Java, but once you understand it, you can look at anything else and work well in it with little to no learning curve.
Also, is you are planning to go to college and work towards a computer science/computer engineering degree, most of your programming classes will likely be using C++.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
All Java at UW Madison. People come out of school not knowing how to really program. I think Java is a fine second or third language, but not a fine first one
earl
|
|
|
|
|
My opinion of Java is that it is a language designed for lazy programmers. Its almost ironic at the moment since the project I'm on at work requires a heafty amount of java programming
If you learn C++ first (and well), you never need to pick up a Java programming book (just need to look at the documentation on java.sun.com for reference). Going that route also teaches you one very important thing: OO programming is useful, but many times it gets in the way of what you really want to do and a functional or structural language would better serve the purpose. This is one of the reasons why C/C++ is far more versatile than Java, Basic, C#, etc.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hello,
I want to improve my skills on Visual c++ anf MFC and I want to build a project but I don't know about what...
any ideas?
SnaidiS(Semion)
|
|
|
|
|
arbitrary
ideas around must look
Kuphryn
|
|
|
|
|
Ok...ty..
SnaidiS(Semion)
|
|
|
|
|
Find something that interests you and then try to learn all you can about it. "Improving" VC++ and MFC is a very open field and you will get lost quickly.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
Agree.
A better idea is to find a project and finish it. Like design a simple calculator?
|
|
|
|
|
You can always try rentacoder
|
|
|
|
|
thank you!
SnaidiS(Semion)
|
|
|
|
|
One of the things that I used to do when I had time to kill was to pick a function, or an API, and write a whole program around it. I learned a lot this way.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Got to the MFC src file (..\Microsoft Visual Studio\VC98\MFC\SRC ) it has lot of good code and will give you internal details about each thing.
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
OK thank you!
SnaidiS(Semion)
|
|
|
|
|
OK-Thank you man!
SnaidiS(Semion)
|
|
|
|
|
Anybody know,How to use GetKeyboardState()function?
Please give me some example about this?
|
|
|
|
|
BYTE state[256];
GetKeyboardState((LPBYTE)&state);
if(state[VK_CONTROL] & 1)
{
...
}
|
|
|
|
|
Does anyone know of any tutorial tools that might be helpful in getting up to speed with VC 8?
Time past, whenever MS came out with a new version of VC, they'd produce a CD for those who might need a little help getting acquainted with the product.
I've just barely become acquainted with VC 7, and now VC 8 has me stumbling all over the place.
Thanks.
William
Fortes in fide et opere!
|
|
|
|