|
How about EndDialog() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i m using this but the property sheet not closed.
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
Hi all,
I installed VC6 with SP6 on my Vista x64 system and have noticed the following problem with my MFC application. When I run in debug mode and am stopped at a breakpoint (or the debugger has stopped because of an error), and then I press Shift-F5 to stop debugging, then the IDE will return to it's normal non-debug state but my application will not be stopped. I can see the application in the task bar but just get the error dialog "This program is not responding" when I try to close it.
After the problem occurs I cannot make changes to any files because I get the following link error when I try to rebuild: LNK1168: cannot open [filename].dll for writing.
The application will close properly if I use Shift-F5 from the IDE when the debugger is not at a breakpoint. Also if I close and restart the IDE the zombie processes will be closed as well but this is not an ideal workaround. Does anyone know how to properly fix the problem so the application will always be closed when I use Shift-F5 (this is what used to happen when I was working on my Win2000 system).
Thanks,
Kevin
|
|
|
|
|
I've never used x64, but I haven't seen that problem on Vista x86. Are you running VC6 elevated? VC6 (and its MSDN) need to be run elevated to work properly.
|
|
|
|
|
Hi Mike,
> Are you running VC6 elevated? VC6 (and its MSDN) need to be run elevated to work properly.
No, I'm not doing this. (In fact I just turned off User Account Control to get things going without all of the Vista prompts.) Can you point me in the right direction to set this up?
Thanks,
Kevin
|
|
|
|
|
Right click on executable and then chose "Run as Administrator".
-Saurabh
|
|
|
|
|
I tried running VC6 as administrator but it seems to make things worse - VC++ crashes when I close my app after running it in debug mode.
|
|
|
|
|
I think I had this error but do you have this problem with your all projects or with this project?
|
|
|
|
|
I've only been working with the one project so far so I'm not sure what happens with other projects. If I can't figure out the problem I might try testing with another project. Is there something in the project settings that you think might be causing the problem?
|
|
|
|
|
On the property pages of your project go to Linker and see does "Generate Debug Info" set to "Yes(/DEBUG)" or no?
|
|
|
|
|
The setting for "generate debug info" is turned on.
|
|
|
|
|
Answer to some errors is difficult without see source code but you have two ways:first you can send your project to me(of course Im using of Visual Studi 2008),but if you dont like,you can make a new project and start to copy your functions to new project for find error.
|
|
|
|
|
Are you logging in with an admin account? In that case, everything you run is elevated just like in XP. If you're using a regular user account, you can use Run As Administrator, but be aware that the app will then run in the context of a different account, and it may not behave as you expect (eg it will save options under the admin's per-user area, not your account's area).
|
|
|
|
|
I'm logging in with an admin account so it seems like the problem must be caused for some other reason.
|
|
|
|
|
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means.
some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!?
And what is that kind of assigning called? Just so i'm able to look up more info about it...
|
|
|
|
|
bool b = false;
bool not_b_1 = !b;
bool not_b_2 =! b;
and now, not_b_1 == true and not_b_2 == true
|
|
|
|
|
Thanks man
|
|
|
|
|
Jan Sommer wrote: What does =! mean!?
This might help. It assigns the "not" value of some_variable .
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
It means the opposite.(NOT of)
If it was 1, makes it 0
If it was 0, makes it 1
Simple is it *not* ?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
modified on Saturday, June 14, 2008 4:27 AM
|
|
|
|
|
2b|!2b = ?
William Shakespeare Hamlet
Seriously - I am not so sure this variable =! variable is a proper C syntax anyway.
By itself it is a "logical NOT operator".
In this example the compiler (VC6.0) sees it as variable = !variable assignment.
(Space after = sign is “assumed”?)
Not too clear since if you write variable != variable it is interpreted as variable not equal variable as used in if(variable != variable) test condition.
A completely different operator!
Again - by itself it does not make any sense in if statement.
Would be nice to know if someone knows what the ANSI standard for C says.
I have not found "=!" in MSDN by itself.
Personally I would stay away from using it without space after the equal sign – it reads better.
Vaclav
|
|
|
|
|
=! is not an assignment operator
int some_variable;<br />
some_variable =! some_variable;
means assigning (! some_variable) to some_variable
|
|
|
|
|
Hi all,
I want to use NetJoinDomain function. It always ends by errors(89) in Lmjoin.h or Lm.h. I have linked netapi32.dll.
Here is one of 89 errors:
Error 1 error C2146: syntax error : missing ';' before identifier 'NET_API_FUNCTION' c:\program files\microsoft visual studio 8\vc\platformsdk\include\lmjoin.h 99
What am I doing wrong?
Thanks.
|
|
|
|
|
I think you've just included Lmjoin.h . It needs Lm.h also. Just include both as follows.
#include "Lm.h"
#include "lmjoin.h"
Me too had the same error by just including Lmjoin.h .
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Thank for your reply but it's same
Error 1 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft visual studio 8\vc\platformsdk\include\lmaccess.h 46
Regards,
Daavena
|
|
|
|
|
Could you paste your code snippet? the header include section and the relevant code section.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|