|
I have a problem when starting any application from my VC++IDE (running or steppping), a 30 seconds delay occurs before the program starts.
Do you have any idea ? (this is not a application defined delay )
Tx for any help.
GuimaSun
www.nexsun.com.br
NEXSUN TechZone
|
|
|
|
|
If it is a large project with lots of files, the IDE is most likely going out and checking dependencies. What keystrokes/menu are you using to start the application?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
If ur project contains more files then usaually ur workspace will be very slow
After you open ur project, close all the files, and kept open only the required file which makes it faster.
vidya
|
|
|
|
|
My current project has nearly 450 files. The IDE is fine except for the very first compile. It is at this time that a dependency check is done (and cached). All subsequent compiles behave just like any of my smaller projects.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Guys, the problem is the same with any project, even with a "hello world" with just one source file. Just typing F10/F5 after compile\link and the delay appear
Tx anyway.
GuimaSun
www.nexsun.com.br
NEXSUN TechZone
|
|
|
|
|
Hmmm, there is the remote possibility that the computer's AV software is getting in the way. If no AV software is installed, I'm out of guesses.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have some experience programming in C# .NET but am new to C++. Could somebody please tell me what the difference between "->" and "." are in C++, which is to say:
when is it appropriate to use
someclass.whatever
and when is it correct to use
someclass->whatever.
Thanks!
|
|
|
|
|
Nevermind, I found it in the documentation. Thanks anyway!
|
|
|
|
|
crushinghellhammer wrote:
someclass.whatever
CSomeClass myClass;
myClass.whatever;
crushinghellhammer wrote:
someclass->whatever
CSomeClass *myClass;
myClass->whatever;
The "." operator is used to directly access the object's members.
Artificial intelligence is no match for natural
stupidity.
|
|
|
|
|
-> dereferences a class object pointer.
SomeClass
{
public :
int a;
};
So if you have SomeClass *oSomeClass = new oSomeClass();
Accessing member variable a is done by first dereferencing the pointer and using the '.'operator: (*oSomeClass).a = 5; which is equivalent to the statement oSomeClass->a = 5;
|
|
|
|
|
In VC6 when creating a CFormView-based app I could still utilize the printing capabilities of the Doc/View architecture. In .Net when I started my app I chose to enable Print/Print Preview, but since I selected CFormView as the base class for my view it told me that I wouldn't be able to have printing functionality. Does anyone know a way around this? Thanks
[insert witty comment here]
bdiamond
|
|
|
|
|
Does anybody know where I can chat with programmers or wizkidz to help me with some questions?
Please give me some links or mirc-channels, thank you very much.
|
|
|
|
|
Anonymous wrote:
Does anybody know where I can chat with programmers or wizkidz to help me with some questions?
I've heard CodeProject.com is good for this, but can't say for sure!
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
Sorry if this is off topic. Is there a free windows equivalent of syslog you would recommend, preferably one that also works with linux.
Maybe it doesn't exist but what I'm looking for is a library that will allow me to call a function which will do just the right thing depending on which platform it is running on.
Thanks
Hua-Ying
|
|
|
|
|
|
Thanks for the link, it is interesting to see alternatives out there.
Maybe it doesn't exist but what I'm looking for is a library that will allow me to call a function which will do just the right thing depending on which platform it is running on.
Hua-Ying
|
|
|
|
|
For a example I want to create a child dynamic ListBox control like ComboLBox.
ComboLBox is a system class and can we use it?
Or another way?
|
|
|
|
|
I have a dual monitor pc that I need to PROGRAMATICALLY turn extended desktop on/off as needed.
In other words, I need to perform the same function as RT. mouse-click Desktop,
Properties->Settings, then turn the "extend my Windows Desktop on to this monitor" checkbox on/off as needed.
Please note: I do not want to simply change my application window size to accomplish this. I must be able to turn extended desktop on/off programatically.
Can anyone help me please??????
|
|
|
|
|
Search the machine's registry (HKLM hive) for a key named TwinViewDisabled. That's where I would start.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hummm. I am using Windows XP Home. Probably should have mentioned that. I cannot find the Reg Key you are talking about (TwinViewDisabled).
|
|
|
|
|
It may not exist for your display/adapter configuration. It might be specific to Nvidia. Either Google for it, or use Registry Monitor to see what changes are made to the registry when that checkbox is [un]checked.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello all.
I've developed this helper application that helps me to rename files. I have a main dialog that has a "Begin" button on it. When you press the begin button, it calls another dialog's .DoModal() method.
When the "helper" dialog loads, I want to automatically run code that begins to search the folders and populates a listbox.
I've tried to put a call to the method in my helper dialog class that does the processing in the OnInitDialog() method, but this does not work. Instead, it just hangs there until the call is completed (never displays the dialog).
The only other way that I've found around this is to create a new thread using AfxBeginThread. This works fine but I'm just curious as to is this the proper way to do this ... or if there is some other method of running code when a dialog starts up. (ie, the code that I want to run actually populates a list box on the dialog, etc...)
Thanks in advance
Shultas
|
|
|
|
|
At the end of the main dialog's OnInitDialog() method, post a "begin processing" message. In the handler for that message, populate the listbox.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I have two IF() statements that shouldn't be executing, but they are anyway. I'm using a CFormView-based class and I'm executing this code in the CFormView's OnInitialUpdate() function. Here's the code:
if(m_bRefresh)
{
m_nSeconds = theApp.GetProfileInt("Settings","Refresh",0);
if(m_nSeconds > 0)
{
m_nTimer = SetTimer(1,nSeconds,NULL);
}
}
both of these values , m_bRefresh and m_nSeconds, are equal to 0 but it still goes into the if blocks when I step through the code. I've never seen anything like this before, does anyone know what's going on?
[insert witty comment here]
bdiamond
|
|
|
|
|
Check if you have declared a variable with prefix 'm_' locally in your method somewhere above the code you have showed. Microsoft debugger gets confused when you have (by accident) a member varaiable and a local variable with the same name. It gives exactly the strange behaviour you described.
/Moak
|
|
|
|