|
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.
|
|
|
|
|
i am using a dialog based application for this. i will check it with the logic that u gave me and will certanily go thru the document which u added in ur post. thanks for the reply
|
|
|
|
|
Hi all,
I have a edit box and a button and on button click event i am placing a particular text in edit box.....
Now suppose if i am having "ab" in edit box and i place my cursor between a and b then after pressing button the text should display in between a and b.....(i.e i should get cursor position and whereever the cursor is the text should be appended there only)....
How can i do this....
Thanks in advance
|
|
|
|
|
|
i don't want to replace i want to append new text with older text but the text should be appended where the cursor is placed....
|
|
|
|
|
You want to append text or insert text in the middle? They are two different things!
For appending, you could use GetWindowText() followed by a SetWindowText()
For inserting, you could use ReplaceSel(), as Cedric already pointed out.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Did you follow the link and read the information ?
Did you understand this sentence ?
If there is no current selection, the replacement text is inserted at the current cursor location.
Isn't that what you are looking for ?
|
|
|
|
|
Ya actually sorry i didn't read whole sentence.....
thanks...
i'll try it
|
|
|
|
|
sounds like a case of the /. "google makes us dumber" syndrome
|
|
|
|
|
In a Win32 console application a timer should call a member function of a C++ class.
But how can I make the API function SetTimer to call this member function?
Thanks in advance.
|
|
|
|
|
Pass the class pointer as the argument of the timer callback function.
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
|
|
|
|
|
SetTimer() doesn't take a member function as an argument.
You can, however, use a static member function with the right signature:
class MyClass
{
...
static void CALLBACK TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime);
...
};
You can pass &MyClass::TimerProc to SetTimer().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: SetTimer() doesn't take a member function as an argument.
I was afraid of that.
Thanks anyway.
|
|
|
|