Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 19 of 19
Search took 0.01 seconds.
Search: Posts Made By: earl
Forum: C++ Aug 15th, 2005, 7:22 AM
Replies: 2
Views: 172
Posted By earl
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
Posted By earl
It's basically similar to the code you presented,...

It's basically similar to the code you presented, DaWei. The issue would be those cString objects never being constructed.

I seem to have actually narrowed this down. This type of thing was...
Forum: C++ Jul 27th, 2005, 7:40 AM
Replies: 11
Views: 407
Posted By earl
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
Posted By earl
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
Posted By earl
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
Posted By earl
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
Posted By earl
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
Posted By earl
Certainly. I've read a little bit about "function...

Certainly. I've read a little bit about "function preludes/prologues" with regard to pushing parameters onto the stack, etc. Don't recall much about return values, other than maybe having dedicated...
Forum: Assembly Jun 24th, 2005, 8:55 AM
Replies: 5
Views: 371
Posted By earl
Thanks DaWei. This is for SPARC assembly, so the...

Thanks DaWei. This is for SPARC assembly, so the syntax is different and I'm not sure I can reference variable names within inline asm with my compiler.

But I found a similar solution:

register int...
Forum: Assembly Jun 23rd, 2005, 12:16 PM
Replies: 5
Views: 371
Posted By earl
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
Posted By earl
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
Posted By earl
static class members and libraries (linking question)

OK I have to apologize in advance for this obscure question, but hopefully somebody can point me in the right direction... :)

Consider a class with a static member, initialized in that class'...
Forum: C++ Jun 20th, 2005, 6:48 PM
Replies: 4
Views: 361
Posted By earl
uman is correct. I understand how type parameters...

uman is correct. I understand how type parameters work, along with template specializations, etc.

But you can also do something like this:

template<class T, int size = 10>
class Stack
{
...
T...
Forum: C++ Jun 20th, 2005, 1:56 PM
Replies: 4
Views: 361
Posted By earl
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
Posted By earl
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
Posted By earl
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
Posted By earl
Don't know much about pipelining, but I'm curious...

Don't know much about pipelining, but I'm curious about that snippet you posted.

How exactly do the first two instructions change the value of the 3rd instruction? Looks to me like you store a value...
Forum: Assembly Jun 14th, 2005, 9:29 AM
Replies: 2
Views: 408
Posted By earl
A good resource: http://www.linuxassembly.org/

A good resource: http://www.linuxassembly.org/
Forum: Coder's Corner Lounge Jun 13th, 2005, 5:53 PM
Replies: 21
Views: 372
Posted By earl
Another diddler free. :mad:

Another diddler free. :mad:
Showing results 1 to 19 of 19

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC