|
Hi Chris,
FWIW: there was a time VS was terribly slow at dealing with the first exception in an app. Not sure which versions and languages, but it was not very constant and in the order of seconds. Maybe that is what you're having?
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
hmm...
i don't recall seeing any exceptions in the output window, but i'll check again.
|
|
|
|
|
The heap manager for VS2005 is faster than that for Visual 6. I ran across this a few weeks ago.
How thread local storage is handled is different fore VS2005 as well, though I doubt this would affect performance in a significant way.
You also need to verify you really are testing what you think you're testing. How fast is the second thread even executing? Due to small changes in the CRT, the new thread may not be getting a quanta as quickly under 6.
Another possibility is that some paging is happening under 6 that isn't happening under 05 (seen that also.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Joe Woodbury wrote: How fast is the second thread even executing?
that's an interesting question. i never thought to time each thread independently.
|
|
|
|
|
Hello Friends,
I am creating a IE toolbar. I want to develop feature like "Google Toolbar" which allow us to add google's Gadgets in the toolbar. How does a toolbar notified by the webpage that user has selected(by clicking on the "Add" button on webpage) a perticular gadget?
Please suggest the way in which this can be achieved.
ritz1234
|
|
|
|
|
Please Help!
I want to pass variables from form1 to form2,
I want to pass structure (struct fff) from form1 to form2.
|
|
|
|
|
Ok, go ahead. Reading here wouldn't hurt either.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
Hi
I created an application in which ,there is a RichEdit control.But i am not getting
proper strings for unicode letters which I typed in.(eg: when I type a character it shows
"?").How to solve this.
thanks
|
|
|
|
|
We have a project at work that needs to support outputting various bits of data via SNMP. I've been playing with the WinSNMP APIs a bit, and I'm stuck on one concept. If you want to report these bits of data, through a custom MIB/OIDs do you have to use the extension DLL approach? In other words, the logic for where the data is located/generated is in another running app. Is it possible for that app to register itself somehow so that SNMP GET messages for our custom OID that come into the machine can get handled by that app? Or is the only way to accomplish this to use the extension DLL?
|
|
|
|
|
It's been ages since I did SNMP development, but looking at some old code, my vague memory is that you have to use extension agent DLLs. I did note I was using a shared queue to communicate with other programs, which reinforces this view.
After posting this, I recalled putting a data area inside the extension agent and updating it through the message queue so the agent could respond very quickly with responses and work regardless of whether the other programs were running. I do recall that one reason for this is the requirement by Microsoft's SNMP stack (at least in NT 4.0) required that you respond to a GET in a certain time window and really bad things happened if you didn't (I do have a vague memory that the "really bad things" issue was fixed in W2K, but hey, it's been seven years.)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
OK, thanks, I did just find this:
How to develop a SNMP extension agent DLL[^]
which confirms what I was afraid of, that you have to be an extension DLL. Not the end of the world, just requires a bit more set up.
|
|
|
|
|
Hello,
I have a CRichEditCtrl on CMDIChildWnd which is created on the window properly but it(CRichEditCtrl) cannot capture mouse control when the mouse is on the window(CRichEditCtrl).What must be the problem?
Prithaa
|
|
|
|
|
Hello,
This is continuation of the problem. The keyboard cursor is seen on the CRichEditCtrl but the mouse cursor is not seen.
Prithaa
|
|
|
|
|
what is the difference between Simple Mapi and Extended Mapi
|
|
|
|
|
Let me...[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The answer's contained in here[^], which is easily accessible through the programmer's best friend[^].
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Pleaseeeeeeeeee can any one help me to declare public struct or variable to use in all the forms in
"Windows Forms Application C++"
ex: i want to declare a connection and use it in all the forms.
i want to declare a structure and use it in all the forms.
|
|
|
|
|
Declare it as static class member in one of the classes.
|
|
|
|
|
In a .h file (let's call it my_global_struct.h):
#if !defined(__my_global_struct_h__)
#define __my_global_struct_h__
struct my_global_struct
{
};
extern my_global_struct;
#endif // !defined(__my_global_struct_h__)
In a .cpp file (let's call it my_global_struct.cpp):
#include my_global_struct.h
my_global_struct;
#include my_global_struct.h into any files that need to see the global struct variable.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thank you very much for your reply
but i need to user the same structure with the filled values in other form.
|
|
|
|
|
And there's nothing in my answer preventing you from doing so
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks again, I tried your solution but may i need another thing.
Ex: struct ggg{
int i;
int j;
}test;
in the first form1 i put "test fff;"
fff.i=1;
in the second form i want to use the value of the same structure fff.
Ex: i want in the form2 to give the value of fff.i to another variable in form2;
any solution? really i spend one day on this. 
|
|
|
|
|
wael_r wrote: in the first form1 i put "test fff;"
If you put test fff; in the form, then it's a member of the form class. So, you'd need to access it using an instance of the first form.
If you want to share fff across all instances of form1 and form2, then you could make fff a static (or class-wide) member[^] of form1 - like this:
class Form1
{
public: static test fff;
};
In Form1, you need to have a definition for fff (hte above is just the declaration like this:
test Form1::fff = { 1, 2 };
In form2, you can access it like this (I'm doing it in the constructor):
Form2::Form2()
{
this->other_variable = Form1::fff.i;
}
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
How can I change the background color of the tool bar to blue?
|
|
|
|