Recently, I was buzzed by the following problem STL std::string class causes crashes and memory corruption on multi-processor machines while using VC6.
I plan to use an alternative STL libraries instead of the one provided by VC6.
I came across 2 libraries : STLPort and SGI STL
I was wondering what is the difference between the 2. Which one I should use? Which one able to guarantee thread safety?
Thanks.
I know that if you write void function_name(int& a), then function will not do local copy of your variable passed as argument. Also have met in literature that you should write void function_name(const int & a) in order to say compiler, that I dont want the variable passed as argument to be copied.
So my question: what is the difference with this two cases (except that "const" enshures that the variable passes will not be changed by function!!!)???
Hi
this was the question me in the interview. What is the main difference between Unchecked exception and error as both are not caught.They will terminate the program. I was bit puzzled.
Can anybody elaborate on this.
In all examples I can find as well as the automatically generated code i Visual Studio, events are set using the following code:
button1.Click += new System.EventHandler(this.button1_Click);
But I can also write it visually cleaner by omitting the constructor wrapper:
button1.Click += this.button1_Click;
Which also compile fine.
What is the difference between these two?
And why is the first one mostly used/preferred?
i wonder what the difference between a library and a plugin is?
if a component creates a database (maybe comes with a .sql file or creates through a method) could it still be a library or is it called a plugin or module?
cause i am creating a address book component and it provides methods to insert and read records in database. i don't know if i should put it in library folder or plugin folder.
please shed a light on this.
thanks
Hi Folks.
I'm looking for a way to determine the difference between two dates.
A normal SQL DATEDIFF statement won't cut it because I need to excluded non working Hours and days Namely Weekends and any time between 16:00 - 7:00.
Something similar to the NETWORKDAYS function in excel.
I'm codeing an excel spreadsheet. Using VBA connect to a SQL server to pull data.
I need to get the difference of 2 signed integers.. Is there an ABS() function on Assembly language so I can do this. Any help would be greatly appreciated
I need to parse a string 'Open URN: 100000 LA: ' and get 100000 from it.
on python regexp (?<=Open URN: )[0-9]+(?= LA:) works fine but in php it gives following error:
preg_match(): Unknown modifier '['
I need it working php, so please help me to solve this problem and tell about difference in python and php regexps.
ZWOpenFile and NtOpenFile are both the functions of nt dll..ZwOpenFile is implemented as same as NtopenFile..but I dont understand why ZWopenFile is included in nt dll function.Can anyone please explain me the difference?
Hello All!
Could someone please explain what the difference is between using the ISupportInitialize interface methods (BeginInit/EndInit) and using SuspendLayout/ResumeLayout?
Is ISupportInitialize ONLY used during construction/"initial" initialization... or can it be used later when you want to add new child controls to an existing parent control?
Any particular differences?
I greatly appreciate your help!
Thank you,
Pato
When writing code errors, warnings and notices can occur. I know the idea behind errors. I suppose a warning is there to inform you about something that can cause an error, but isn't a notice exaclty the same? I suppose a notice is not a message of something doing right ;).
It's just a bit confusing to me. Can anybody tell the difference between those two and the way these messages should be treated.
What is the difference a changeset and a patch?
I was using hg today and I noticed the import command mentions that it is used to "import an ordered set of patches."
What is a patch?
Please guide me.
what is the difference between null != object and object!=null
same for "".equal("something") and "something".equals("")
which one is good for processing.
Hi,
both abstract and virtual are going to be override in child class than whats a difference.
is it Virtual method have body and abstract is just a signature ????
Hi, I couldn't find anything through Google, I suppose the search terms are too much to handle.
The VS built-in help only explains <%, which is just embedded code. There is no mention of <%:
EDIT:
My book says, that the only difference is that <%: returns a MvcHtmlString. Why do we need an extra symbol for <%: just to return something?
Thanks for any help! It would really help me to understand asp.net.
What is the difference between these two statements?
dbms_output.new_line('') // this is with arguments
dbms_output.new_line; // with no parameters,no round brackets
If there is function overloading,even for that close and open brackets are required after function name.
In C, what is the difference between these two?
float myF = 5.6;
printf( "%i \n", (int)myF ); // gives me "5"
printf( "%ld \n", floor(myF) ); // also "5"?
When is one preferable over the other?
In jQuery, I have seen both the following ways of defining a jQuery function:
$.fn.CustomAlert = function() {
alert('boo!');
};
$.CustomAlert = function() {
alert('boo!');
};
I understand that they are attached to the jQuery object (or $), but what is the difference between the two? When should I use one or the other?
Thanks.
For example in the jQuery documentation I find both JSON and JSONP mentioned. What is the difference exactly? How can I see which is which? Which one should be used for what?
And what does the PHP function json_encode generate?
When I am concatenating object values together to form a string in VB.NET, is there a difference in performance or a recommended best practice between using the & concat or the + concat with calls to .ToString() on each object?
Example (which is faster or best practice):
Dim result1 As String = 10 & "em"
Dim result2 As String = 10.ToString() & "em"
How are \r and \n different. I think it has something to do with Unix vs. Windows vs. Mac, but I'm not sure how exactly they're difference, and which to search for/match in regexes.
Hi
I wonder when saving plot into image file in matlab, what is the difference between saveas and print? In what cases both can be used and in what cases only one can be used?
Thanks and regards!