Using bits of sample code/other peoples code on dissertation [closed] - licensing

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am writing a dissertation for university final year.
I want to put a large amount of source code on a DVD for the appendix.
95% of code is written by me, but some code is copy and pasted from samples and taken from forums.
Do I have to label each bit of code that is not mine or something?
What would I write if I don't know who's code it is anymore?

You should definitely cite your source if the source specified you do so. However, if you are taking samples and adapting them to your environment you usually don't have to cite it (as long as it has changed in a significant way).
Usually, I try to include a comment in my code if I just copy and paste something, even if it is free and open to copy. However, this is more of a preference than a specification.
In the end, it is up to the people you got the code from (if they specified a license for the code) and your advisor at the university.

Related

Reverse engineering or Code from scratch [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I got a project that is already developed, in other words I have an API for some software that coded in C language, but the company haven't the source code, thus my mission is to write the source code for this application. Now I have the executable program and I want to write the source code, regarding to my less experience I'm asking, which is better, to write the source code from the scratch or to use some reverse engineering tool to find out the source code? But notice that reverse engineering tools results with some hard to read files since there are not enough comments!
No reverse-engineering tool will give you a source code (with or without the comments). So you can safely abandon this idea.
It is definitely better (in your case) to write new code from scratch using the existing executable as your black-box reference point.
Make sure to have many test cases that should cover as much of the original functionality as possible and when you are done writing your code run them all to affirm that your code is a reasonable replica of the original.

VisualBasic.net Adding Mysql database check [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Hello good people of stack overflow i am in dire need of some and little bit of help so i been looking at this program done in vb.net here link http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8869&lngWId=10
it is made to stop people from opening any app or webpage with any of words in here a pic
http://imgur.com/kuTFKls
i mark some stuff out so people wont get fended here put with programs name you can guess what they were ok so what i am asking is how would i make this work with mysql data base could you help me i got database up on server but how do i make program check the database for any word that are in TextBox3.Text.Contains so it just check the database so i can get rid of this list as i remaking what programs for
p.s if my spelling wrong i am so sorry edit as you wish or just tell me thanks people of stack
Load the .sln into Visual Studio
Search the code for these words: File and Stream
Replace the file I/O with MySQL functionality. There are many places on the Internet that will tell you how to do this. For example: Connecting-to-MySQL-databases-using-VB-NET

Porting old C project into C++/CX [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm rather new to C++/CX, and right now have an old C project which I need to port into C++/CX.
The output are flushed into text-file or standard output, but it's not that important right now since I can just take them into the Message Dialog there.
My question is that, do you have any tips for porting this project?
I just tried to copy a C file into CPP but failed to compile.
I mean, do I need to wrap the old functions into some kind of Class structure now?
Thanks in advance!
For the differences between C and C++, a starting point is David Tribble's "C99 vs C++98". Without any more details (original C environment, current C++ environment, some details on exact error messages) it is next to impossible to answer the question.

Where to begin reading SQLite source code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to understand how sqlite is implemented. And, want to read the source code( I have already downloaded the source). Which part of the code I should start looking at?
The SQLite documentation page has a great section named SQLite Technical/Design Documentation with articles on the internals of SQLite. I think it's essential to read and understand those before you start reading the source code itself.
There are many gems there, but the most interesting for you is probably Architecture of SQLite, as its description says:
An architectural overview of the
SQLite library, useful for those who
want to hack the code.
That page contains a nice block diagram of SQLite's code:
And then explains where in the source to find the implementation of each such block.
Another great resource (linked from here) is the Oreilly mini-book ("Short Cut") named "Inside SQLite" which goes into the design and code of SQLite to explain how it works.

Licensing c program [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
How would i licence my c command line program, e.g limited functionality without a serial number?
Depends what licensing means ...
Write the license text into the source code resp. show the license text when installing or starting the program.
If you want prevent users from copying the program, things get complicated, you might need some hardware dongle.
Or just make it GPL and give the source code away ...
Include a EULA (End User License Agreement) in your program which users will have to accept while installing/using your application. You can get lots of sample EULAs in Internet. Replace the Names appropriately. But remember, you are gonna do things at your own risk. Read the EULA well, modify it to suit your needs.

Resources