|
BirdOfPlay posted:SQL Stuff When you create a record the database will automatically create the key for you. You can use DBCC commands in SQL Server to find the current identity value(DBCC CHECKIDENT "tablename") if you for some reason you need the ID before creating the record. Reference material: http://www.w3schools.com/sql/sql_autoincrement.asp
|
# ¿ May 17, 2013 09:31 |
|
|
# ¿ Apr 28, 2024 14:04 |
|
e: quote is not edit.
|
# ¿ May 17, 2013 09:33 |
|
Ciaphas posted:Depends on if you define "willingly" as "because I like my job otherwise". Yep we use it too, although we're currently in the process of moving off of Solaris and onto Linux, so hopefully not for much longer.
|
# ¿ Sep 27, 2013 09:46 |
|
xgalaxy posted:QTCreator is an abomination and I don't know why anyone recommends it. CLion is great if you like having a cross platform IDE with great refactoring support for C++. However it is a huge disappointment in the debugging department because it just uses GDB -- which I don't know why I expected different. If I need to debug something nothing beats Visual Studio. Care to elaborate on what is wrong with QtCreator? We've been using it to develop cross platform qt/c++ code on Windows and Linux and I've not had any problems with it. The keyboard navigation shortcuts and auto complete have been spot on. Debugging on windows with it can be a bit sketchy though.
|
# ¿ Dec 23, 2014 14:04 |
|
ani47 posted:If you're getting vs get the community edition - it's the free version of the pro version. It has everything that the pro version has including plugins which the express version don't. g++ has more descriptive/less obtuse error messages that VS. VS error messages can be incredibly opaque sometimes and require googling. Luckily stack overflow usually has the answer.
|
# ¿ Dec 25, 2014 18:33 |
|
MrBadidea posted:I want the poo poo out of this for Visual Studio. How many limbs is this going to cost me??? Do you mean the mouse over tooltip variable values? It does that already, doesn't work so well for stl types though.
|
# ¿ May 5, 2015 13:47 |
|
MrBadidea posted:No, the inline variable view; the not-quite-a-comment poo poo appended to a bunch of the lines in that screenshot. It makes way more sense to me than the watch window, and it kinda sits better with how I headspace code I'm working on. I see what you mean. Yes that would be very handy.
|
# ¿ May 5, 2015 16:15 |
|
I'm surprised no one has attempted to do this as a one-liner yet.
|
# ¿ Jun 9, 2015 14:37 |
|
Ekster posted:Yeah I'm already doing that. I was just looking for a generic data structure library for the long run, but judging from the responses the library I linked is bad. I think I'll look into it later when I know enough about data structures/algorithms so I can actually tell which libraries are bad or not myself. How about the STL?
|
# ¿ Sep 4, 2015 21:33 |
|
QtCreator is a pretty nifty IDE nowadays. Cross platform too so you can use the same tool on Windows and Linux. If you use a project(.pro) file well you can even use exactly the same code on Windows and Linux. QtCreator uses qmake to turn your pro file into a compatible makefile for the platform you're building on e.g. nmake for msbuild/visualstudio and gmake on Linux. It will even generate solution files if you want to use Visual Studio IDE.
|
# ¿ Sep 8, 2016 15:55 |
|
Hyvok posted:Is there any way to read contents of a file to a variable (string) at compile time? I don't want to ship shaders and database schemas and stuff like that as separate files with the binary. Having them in an included file is a hassle since you need to escape all newlines and quotation marks and such. I could always write some script and/or cmake thing that mangles raw data contained in a file to a .h file but that is a bit too complicated. When I've wanted to include data at compile time I've added a build step which runs a python script to generate a header file with the compile time data i wanted, then include that header file.
|
# ¿ Mar 9, 2017 10:52 |
|
b0lt posted:Or the world's worst sampling profiler: attaching gdb and randomly ctrl-c'ing to check the status of everything. (this also has the side benefit of helping make sure you properly handle EINTR) This is how I do profiling, (attach debugger, randomly hit pause in the debugger and see where you are in the call stack), law of probability says you'll likely hit the offending method that's taking up all the time.
|
# ¿ Aug 4, 2017 12:41 |
|
leper khan posted:Why not spend less time and get more information by opening a single window? Ok not profiling, more figuring out why the application is suddenly going slow for no apparent reason.
|
# ¿ Aug 4, 2017 12:46 |
|
F_Shit_Fitzgerald posted:I’m writing a hangman program to practice using std::map (this is not a class assignment). I’ve created a std::map<string, int> where string is a letter in the alphabet, and int is the number of times it appears in a puzzle. Simplest method is the following: "a" is the key, 3 is the value. code:
http://www.cplusplus.com/reference/map/map/insert/
|
# ¿ Oct 26, 2017 09:40 |
|
|
# ¿ Apr 28, 2024 14:04 |
|
hackbunny posted:Since I don't see a Windows thread, I guess I'll ask here Tell your cow-orker to learn Qt? Plenty of resources around.
|
# ¿ Jan 17, 2018 12:27 |