Search:
Type: Posts; User: sockman
Search:
Search took 0.04 seconds.
-
December 15th, 2011, 05:29 PM
OK thanks everyone for your replies. I think it is pretty much as I expected - order of execution is not guaranteed. Again, thanks for taking the time to answer.
Cheers,
BJW
-
December 14th, 2011, 11:35 PM
Hello,
On a multi-core machine, am I guaranteed to have my code executed in the precise order it was written?
Cheers,
BJW
-
March 3rd, 2011, 05:04 PM
The following code fails as expected because I am passing an invalid pointer:
void func2(char* c, char* d) {
c = d;
}
void func() {
char* c = NULL;
char* d = new char('f');
-
October 18th, 2010, 12:24 AM
As for your intellisense issue, try deleting your project's .ncb file. It's probably in the same folder as your project file. That should force VS to regenerate the intellisense. It's an issue that...
-
October 15th, 2010, 01:40 AM
First of all your function is not set up to return a const char. You need to declare it thusly:
const char *ftostr(float dVar) {...}
Secondly, you are returning a pointer to a local...
-
October 4th, 2010, 07:36 PM
Hi all,
I'm looking for a vs plugin which can graph buffers of signal information. Basically I want a buffer visualisation tool which I can use while the debugger is running to inspect the contents...
-
Hi monarch_dodra,
I considered this as an option, but I have a hunch it's going to to get me into hot water because whenever I have to perform one of these mutually exculsive operations I will have...
-
Thanks Russco,
That was my initial plan. I just thought I'd see if anyone had other ideas. The problem I have with that method is I have to query the object to see what type it is. I was hoping to...
-
@Lindley
Yes, I do plan to treat them as the same type of object - they basically are. It's just that in their specialisation there are a couple of mutually exclusive operations.
Cheers,
BJW
-
@Amleto
Sorry I probably wasn't specific enough about the problem. I want to have a list of objects of type C and treat them generically. Which I can't completely do since there are a couple of...
-
Hi all,
I have a design issue and want to get some feedback on solutions.
I have two classes, let's call them A and B. They have very similar interfaces and are 98% polymorphic. It is in the 2%...
-
Work hard, be good to your mother and maybe one day you will learn the value of doing your own homework.
-
April 28th, 2010, 04:24 PM
Yes, that was a great solution - fits perfectly for what I need. Thanks a bunch!
BJW
-
April 27th, 2010, 07:14 AM
Yes. Hence the question.
@John
Thanks for that. From the quick look I just had it seems spot on. I will have a proper look when I get back to work tomorrow.
-
April 27th, 2010, 02:19 AM
I have a design issue which I've had in the past and never really found a satisfactory solution for, so I was hoping to get some fresh ideas on how to handle it.
I have a list of objects. Each...
-
April 15th, 2010, 04:35 PM
There are times where bracing in case branches is necessary such as the following. Case 1 is how I like to format my braces. Case 2 is how Visual studio lays it out. I find the second way much harder...
-
April 15th, 2010, 12:11 AM
Thanks Mike. Yes 2005 has that option - I have it unchecked, but it doesn't seem to govern the bracing in switches.
I just don't know where VS got this indent style from and why it only applies it...
-
April 13th, 2010, 12:55 AM
Visual Studio (2005) automatically indents braces for each case in switch statements in what I consider to be the most impossibly idiotic manner. I have always ignored it and fixed it manually but...
-
March 1st, 2010, 05:03 PM
The compiler (certainly VStudio anyway) generates the same code for both cases so there is no performance gain in shifting over multiplying.
I agree with both superbonzo and D_Drmmr. I try to pick...
-
February 28th, 2010, 05:30 PM
You declare Bow one and two as member variables of Test. Then in the constructor of Test you redeclare Bow one and two. Here you are declaring two new variables which will last for the scope of the...
-
February 28th, 2010, 04:55 PM
Sometimes it can be helpful to run plug-in engines in a separate process because of unexpected crashes caused by dodgy 3rd party dlls. If there is a crash you can shut down the plug-in process, but...
-
February 26th, 2010, 06:35 AM
@olivthill:
Maybe you need to review some basic text books? This loosing function as you call it has very specific signal processing purposes and is called from hundreds of places in my code. This...
-
February 26th, 2010, 04:54 AM
Thanks for the responses.
@lindley: Good idea, I'll try it on Monday when I get back to work.
@cilu: I know the inline is just a suggestion to the compiler - seems like most of the time the...
-
February 25th, 2010, 11:16 PM
I have the following simple function:
inline int Gain(int in, int mq)
{
return (in * mq) >> 9;
}
-
February 11th, 2010, 11:54 PM
As Lindley says, that's the way arrays on the stack work. When you write:
int myarray[] = {5, 6, 7};
You are creating a memory block three ints long. The address of that block is myarray[0]...
|
Click Here to Expand Forum to Full Width
|