@MooingDuck oh well i did. it's an insane argument, that because microsoft chose to pass those handles to WinMain (instead of e.g. and more efficiently just putting them in static variables), WinMain was necessary. there isn't room in such comments to address every incorrect assertion, and most all of them were incorrect.
Most 16-bit Windows apps let WinMain immediately copy the hInstance handle to a global variable, so in practice it was two places: on the stack frame, and in a static variable. Instead of being just one place.
@CheersandhthAlf ah. It was the only argument against you that I felt held water. Hadn't considered a static variable. (Or why didn't they just add a call to fetch that value?) Either way: what you say makes sense.
Actually as I recall in 16-bit Windows there was a data export from the kernel DLL, but I'm not sure if it was or related to those handles. I remember it surprised me when I found out about it. I thought until then that only functions could be exported.
@CatPlusPlus hah. Out of curiousity I converted that Hg repo into a Git repo. Now it is only 31Mb in size and the initial upload to Github took only 2m28s. Using a bandwidth of only 230Kb/s on average
I'll keep working with Hg. Can only help to know. By the way, I ended up doing manual merges (apparently I borked the first patch, so things wouldn't apply anyway).
@CatPlusPlus Right. It's not like making an std::vector<std::string> form of main is going to prevent people from using the other forms when they care about std::bad_alloc anyway.
@LucDanton The only added value would be that of vision. So we don't have to keep pointing at Stroustrup et al. saying that, really, C is obsolete and, no you don't need to use pointers
The shell is does not limit this
You can see the limit for your system with (run on my 64bit linux:)
$ getconf ARG_MAX
2097152
See this very informational page http://www.in-ulm.de/~mascheck/various/argmax/
@CatPlusPlus Entirely feasible to run with minimal crt or one optimized for e.g. embedded systems - arguably leaving the standard behind then
"You, the X players, wake up in a sci-fi dormitory with no memories. You open the door to observe a gigantic maze of corridors with endless twists, turns, and doors. Who knows what could be out there? But one thing's for sure- there's no toilet in here."
@CatPlusPlus I thought that Raw Input gave relative co-ordinates from the last message?
This story "The Anorexic Startup: Sex, Drugs, C++" is extremely misleading. A quick control-f reveals that the only mention of anorexia, sex, drugs, and C++ is in the title :(
I need to expend way more effort on my game if I wish to actually launch it, even as an indie game, and get my foot in the door of any kind of software engineering job
I have a piece of code when compiled gives me this warning
#define SKM_sk_set_cmp_func(type, st,cmp) \
((int (*)(const type * const *,const type * const *)) \
sk_set_cmp_func(CHECKED_PTR_OF(STACK_OF(type), st), CHECKED_SK_CMP_FUNC(type, cmp)))
#define sk_X509_set_cmp_func(st, cm...
It seems that here it is explained how to get DX headers from SDK work with MinGW: http://d.hatena.ne.jp/tbk/20110115/1295080728
Use Google Translate to translate page to english.
Alternatively try using DirectX headers from mingw64 project from here: http://sourceforge.net/projects/mingw-w64/fi...
after I sent the developers the source code like a responsible person, they banned modding from their next game because they couldn't figure out how to prevent it
I did the responsible thing- I found a hole, I proved that it existed and that it was absolutely gigantic, and then I was totally honest about it and never abused it
besides, it was not thousands
SupCom always had a relatively niche appeal
especially since the hardware requirements were frankly absurd for the time of release and it didn't scale well to higher hardware eithr
It is my first time using pointers. If I set *option = 5; and checked line 23. It will print out `Enter option: 5'. But I don't want it to do anything when it is 5.
@DeadMG : After getting my ass kicked for 2 hours in Team Fortress 2, I feel quite frustrated. That's why I'm questioning the healthiness of that activity. Too old to play online with the young folks with ninja reflexes, I guess. lol
@EmileCormier That's got nothing to do with the content of the game and everything to do with the fact that you feel frustrated that you got your ass kicked :P