Type: Posts; User: OReubens
Search took 0.10 seconds.
December 16th, 2014, 05:29 AM
For 16bit DOS you will need either an old compiler, or you will need a version of GCC that's capable of doing so (not sure if there are any).
If GCC doesn't provide it, finding a C++11 compatible...
December 13th, 2014, 04:16 AM
But it does.
Java and C# do not offer you the means to create classes WITHOUT them being of the "top class".
While the C++ language doesn't even introduce the basic top class to begin with (it...
December 12th, 2014, 08:49 AM
if the fork joins back into master at some point, you can then use those changes normally.
if not, you'll either have to manually merge the forked changes into your local (making them non...
December 12th, 2014, 08:41 AM
C++ is not managed so there isn't a concept of a "generic base object" like there is in C#
So if you have a need for a "clone" feature...
1) you have too implement this yourself
2) you have to...
December 10th, 2014, 09:46 AM
It goes a bit beyond just semantics. ANY function call will cause a gating except when the compiler "knows" the function can't touch the variable.
Yes, it is. :)
And for C++11 the manual...
December 10th, 2014, 08:41 AM
You forgot rule 3.
If you are 100% sure you need to block the UI thread, bang your head against the wall 3 times, while saying out loud rules 1 and 2.
December 10th, 2014, 08:38 AM
This is part of why globals are bad.
IN this particular case, you're confusing the students. This isn't a normal question a sane person would ask.
THis is a convoluted trickery and for that...
December 10th, 2014, 08:31 AM
Maybe that the compiler he uses but still wants a portable solution
Maybe he doesn't use VC and just posted it here because none of the other subforums looked better to him.
December 10th, 2014, 07:55 AM
use "google translate" or "bing translate" for free.
both provide their translation service through a webservice interface.
Expect any and all computer based translations to be "flaky" even...
December 10th, 2014, 07:50 AM
As I already indicated in your other post. Does your flash drive behave as an actual harddisk/SSD or does it behave as a memory stick or as a memory stick (a block device)
memorysticks can't be...
December 9th, 2014, 08:22 AM
No they don't. or tather, the sync primitives don't do this in and by themselves.
Rather, the C++ language definition will take care of creating a read/write gate because it needs to "resolve all...
December 9th, 2014, 08:09 AM
the benefit of the macro's is that you can switch between ansi and unicode build.
if you ONLY care about a unicode binary... you don't have to use the _T() macro for all strings, you don't have to...
December 9th, 2014, 08:06 AM
depending on your background:
* if you have an OO background:
lambda's are syntactic candy around function objects, they allow you to easily create function objects without all the hassle of...
December 9th, 2014, 07:58 AM
Or alternatively, that may actually be the way you do get at it.
install your own global new/delete operators and do any sort of allocation tracking you want from there.
December 9th, 2014, 07:57 AM
"there is no portable way to do so".
going into specific compilers there are ways by which you can get free store information or even go lower level and get OS heap management information.
December 9th, 2014, 07:54 AM
short answer there is no portable way to do so.
There are ways if you want to go into specific compilers like the _msize() trick which will work in so far as the memory allocator isn't being...
December 9th, 2014, 07:50 AM
While unique_ptr will work since it has support for array-delete. it's worth mentioning that shared_ptr does not and should thus not be used for arrays. There was talks about adding this to C++14 but...
December 8th, 2014, 08:04 AM
This is not what happens, no copying of the binary value occurs.
the naming is much more in line of what happens.
you have a pointer to a long long (and that pointer is being (re)interpreted as...
December 5th, 2014, 08:07 AM
don't worry too much about about efficiency in your first few programs. as a beginner you are lacking some elementary 'project management' skills that I've not really seen taught in any book.
December 5th, 2014, 07:50 AM
well yes, it'll fail if you pass NULL if the resource you're looking for is not located in the module that created the process.
December 4th, 2014, 09:11 AM
I don't see anything wrong there. And the docs are clear enough imo.
if you pass NULL, only the module used to create the process (usually the launched .exe) is searched.
so it could fail if the...
December 4th, 2014, 08:54 AM
If you're doing the change to a diff CPU "anyway" or for reasons unrelated to the flash size memory issue you have now, then "ok", by all means benefit from the upgrade.
If the issues are what...
December 4th, 2014, 08:35 AM
There's more than one way to achieve this...
As said above, hardcode the strings. This, btw, is very flexible, change the strings to change the pattern ;-) It's a much more flexible and visble...
December 4th, 2014, 08:08 AM
hmm, right those don't have output.
1) use a project wide custom build step instead of a pre-build step
2) the better approach is to add the "source" files that are used to generate the output to...
December 3rd, 2014, 09:50 AM
If from TVN_SELCHANGED or TVN_SELCHANGING, you shouldn't query the selection, rather, you should use the itemNew from the NMTREEVIEW that gets passed as part of the TVN_SELCHANGED/TVN_SELCHANGING.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.