|
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.
|
|
|
|
|
daavena wrote: but it's same
Not quite. If you'll notice the errors are different.
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
Error 1 error C2143: syntax error : missing ';' before '__stdcall' c:\program files\microsoft visual studio 8\vc\platformsdk\include\lmaccess.h 46
it's now complaining about something in lmaccess.h so you've likely included the headers too high up in your stdafx.h file.
Make sure the includes are toward the bottom of the Wizard generated Include statements in stdafx.h to make sure the whole mess of other junk is in place before it attempts to include your api headers. Do a "rebuild all" to ensure everything gets taken into consideration.
// All wizard generated stuff should be above this
#include "Lm.h"
#include "Lmjoin.h"
#pragma comment(lib, "Netapi32")
|
|
|
|
|
Thaks all for your help.
I am so stupid. I forgot include "windows.h" after that it is working.
Thanks.
Regards,
Daavena.
|
|
|
|
|
i have 4 flex grids in my application. how can i use a single horizontal bar to scroll all the flexgrids together? i am aware that we can use scroll bars within the flexgrids. but i wnat it externally? please give me some leads
|
|
|
|
|
Where are those flexgrid placed ? In a view, on a dialog, ... ?
Basically, what you will have to do is handle to WM_HSCROLL and WM_VSCROLL messages that are set to the parent, move the grid accordingly and adapt the scrollbars correctly.
You'll have to configure the toolbars yourself (set the range, the size of the 'gripper', ...).
EDIT: you can check this article[^], it will give you some clues as what to do.
|
|
|
|