Forum: C++
Aug 15th, 2005, 7:22 AM
|
|
Replies: 2
Views: 172
GUID generation
Anybody happen to know of a C/C++ language based implementation, or available library to generate a GUID (globally unique identifier)? I'm basically looking for something similar to the Win32...
|
Forum: C++
Jul 29th, 2005, 11:47 AM
|
|
Replies: 11
Views: 407
|
Forum: C++
Jul 27th, 2005, 7:40 AM
|
|
Replies: 11
Views: 407
Visual C++ 6.0 for Windows. That code I posted...
Visual C++ 6.0 for Windows. That code I posted isn't a direct copy, I just typed it up to generally describe what I'm working with, so don't mind any syntax errors, but the first snippet would be the...
|
Forum: C
Jul 26th, 2005, 9:08 PM
|
|
Replies: 8
Views: 407
There's also usleep() in the UNIX world for...
There's also usleep() in the UNIX world for microseconds, if you need finer granularity. I think the man page says on some platforms giving usleep() a delay over 1000000us (1 sec) is an error on some...
|
Forum: C++
Jul 26th, 2005, 9:05 PM
|
|
Replies: 11
Views: 407
In Windows this was initially a namespace that...
In Windows this was initially a namespace that contained a list of static const "MyString"'s, where MyString is our in-house reference counted string class.
Sorry I wasn't as clear in the original...
|
Forum: C++
Jul 26th, 2005, 2:32 PM
|
|
Replies: 11
Views: 407
Initialization of static members
Is there a standard specification on when static class or namespace members are initialized?
I'm working with a namespace that contains a list of strings used by a particular module (represented...
|
Forum: Assembly
Jul 11th, 2005, 5:53 PM
|
|
Replies: 1
Views: 210
Inline asm - earlyclobber operand
With GCC, the '&' character can be used to specify an "earlyclobber" operand of asm modules. I was reading a piece of code that used this for an output constraint, and got into reading more about...
|
Forum: Assembly
Jun 25th, 2005, 9:50 AM
|
|
Replies: 5
Views: 371
|
Forum: Assembly
Jun 24th, 2005, 8:55 AM
|
|
Replies: 5
Views: 371
|
Forum: Assembly
Jun 23rd, 2005, 12:16 PM
|
|
Replies: 5
Views: 371
Access variable within inline asm
Is there a way to access a local variable via inline assembly? I'm working on a Solaris machine with g++. What I'd like to do is this:
long myWrapper(long *value1, long value2)
{
int tmp;
asm("...
|
Forum: C++
Jun 22nd, 2005, 5:21 PM
|
|
Replies: 2
Views: 285
Thanks a lot eggbert. :D
That clears things...
Thanks a lot eggbert. :D
That clears things up quite a bit. The whole multiple definition being undefined thing clears up the different behavior I've been seeing.
So I'm assuming using something...
|
Forum: C++
Jun 22nd, 2005, 2:58 PM
|
|
Replies: 2
Views: 285
|
Forum: C++
Jun 20th, 2005, 6:48 PM
|
|
Replies: 4
Views: 361
|
Forum: C++
Jun 20th, 2005, 1:56 PM
|
|
Replies: 4
Views: 361
nontype default template parameters
Is it possible to have a nontype default template parameter that is not an int or a pointer? Every example I see uses the integer example to initialize something like a Stack or Queue template.
For...
|
Forum: C++
Jun 19th, 2005, 5:12 PM
|
|
Replies: 2
Views: 241
Thanks AD. That solution wasn't as easy due to...
Thanks AD. That solution wasn't as easy due to the nature of what I'm working on, but you nudged me in the right direction. The situation involves some symbols in a main module that need to be shared...
|
Forum: C++
Jun 19th, 2005, 10:18 AM
|
|
Replies: 2
Views: 241
Visual C++ - DLLs reverse resolve symbols
Does anybody know how to create DLLs with VC++ 6.0 such that it will reverse resolve symbols? I'm getting a linker error obviously, because the function I want the DLL to use is defined in the...
|
Forum: C++
Jun 16th, 2005, 7:21 PM
|
|
Replies: 12
Views: 558
|
Forum: Assembly
Jun 14th, 2005, 9:29 AM
|
|
Replies: 2
Views: 408
|
Forum: Coder's Corner Lounge
Jun 13th, 2005, 5:53 PM
|
|
Replies: 21
Views: 372
|