|
u may not find the old class wizard as it was in previous versions...rigth click on any control to add variables and message handlers...
|
|
|
|
|
Thnaks but can you tell me how to access exisitng handlers and variables. I want to remove a variable and a handler so I can delete the controls from the dialog.
|
|
|
|
|
Go to Class View. Select the dialog's class. Go to the Properties window (right-click on the class and select Properties). The tool bar at the top of the Properties window has icons for events (the little lightning bolt), which gives you access to dialog control notification handlers (you can create or delete handlers or navigate to them from here).
The other icons on this toolbar are Messages (handlers for Windows messages sent to the dialog class) and overrides (base class overrides, obviously).
If someone can suggest a shorter way to this window, from the resource editor, say, I'd like to know
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
How to find the numeric position of the first occurrence of a string in another string?
|
|
|
|
|
|
HAVE YOU GOOGLED?!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hiii
How to convert UINT64 to LARGE_INTGER.....????
Thanking you
Krish
|
|
|
|
|
Taken from the documentation[^]:
If your compiler has built-in support for 64-bit integers, use the QuadPart member to store the 64-bit integer.
|
|
|
|
|
You mean... there's a documentation?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Yeah, I was also amazed when I discovered it in a hidden place on the net...
|
|
|
|
|
Rajesh R Subramanian wrote: You mean... there's a documentation?
Yes, but only on days that end in Y.
"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 All
I am getting Debug Assertion failed.Message is here
Program: ...
File:f:\sp\vctools\vc7libs\ship\atlmfc\include\atlsimpstr.h
Line: 876
Expression: nLength >= 0
and in the atlsimpstr.h file:
void SetLength( __in int nLength )
{
ATLASSERT( nLength >= 0 );
ATLASSERT( nLength <= GetData()->nAllocLength );
if( nLength < 0 || nLength > GetData()->nAllocLength)
AtlThrow(E_INVALIDARG);
GetData()->nDataLength = nLength;
m_pszData[nLength] = 0;
}
I could not figure out what the problem was from this output.
|
|
|
|
|
MsmVc wrote: I could not figure out what the problem was from this output.
You should try using your debugger and take a look at the call stack to see where to problemt relates to your code. Then you can set breakpoints just before the crash location and inspect the different variables to see if something is wrong.
|
|
|
|
|
thanks for reply.
How can i use debugger?Plz help me
|
|
|
|
|
You mean that for the last months that you are posting on CP, you never used your debugger ? Wow, time to get started on that I guess...
Using your debugger is not that difficult: simply set breakpoints by double clicking in the margin next to your code and press F5 to start the debugger. You'll need to investigate a bit yourself to see how it works.
|
|
|
|
|
This will help you in debugging [^]
|
|
|
|
|
Analyse the parameter nLength that you are passing to SetLength method. From the code-snippet,
ATLASSERT( nLength >= 0 ); // Line 876
ATLASSERT( nLength <= GetData()->nAllocLength );
it's clear that the nLength must be >= 0 and <= GetData()->nAllocLength.
You may not have properly initialized nLengh parameter.
|
|
|
|
|
MsmVc wrote: How can i use debugger?Plz help me
For the sake of God, please buy a beginners book on programming.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i have 3 projects included in my work space.when i release build them one of the projects cause link error 1257 code generation failed.No error comes in debug build.how can i remove the error in release build.
|
|
|
|
|
|
thanx it helped a little bit but dont tell how to overcome the problem.so the problem persists.
|
|
|
|
|
explain how far the problem is solved.
ali kanju wrote: helped a little bit
that statment is a little vague.
|
|
|
|
|
i mean it tells that it may be a linker problem...bt dont exactly tells how to overcome the problem..i have visual studio 2005 in use..
|
|
|
|
|
hi all,
people may feel that the question what i ask is very basic but guess what i didnt found the right answer for this
thats the reason i am posting here so please help me...
1. when we allocate 50bytes of memory via malloc or new
and while using free or delete[] on this variable how does it knows to delete all those 50 blocks.....
2.
<br />
int i = 10;<br />
int &a = i;<br />
a = 30;<br />
how does compiler knows that it need to change the value of i to 30.
please help me.......
|
|
|
|
|
1. The OS keeps track of all allocated blocks on the heap. So it knows about the total size, number of objects etc. This information is used to free the heap.
2. a is a reference to the variable i.
Even though references were introduced in C++, internally it is still implemented as a pointer.
So int &a = i; means pointer a that holds the address of variable i.
a = 30; means put the value 30 into the address where a is pointing to.
Since i is the variable assigned to that address, its value becomes 30.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|