|
I have created a splitter window inside another one as follows:
m_wndSplitter2.CreateStatic(&m_wndSplitter,1,2,
m_wndSplitter.IdFromRowCol(0,1));
ceated the two views
Now i have created a third splitter window
m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1,
m_wndSplitter2.IdFromRowCol(0,1));
m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext);
Here i am getting an Exception.
When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp
Anybody plz solve my problem
Thanks in advance.
-- modified at 3:14 Monday 29th May, 2006
|
|
|
|
|
sruti_p wrote: Here i am getting an Exception.
When i debug the program, iam getting the exception at pNode=m_pNodeHead in LIST_P.cpp
Check the call stack to see which statement of your file caused this error.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
I am not getting any error When i wrote
m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1,
m_wndSplitter2.IdFromRowCol(0,1));
m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext);
in OnCreateClient().
I am getting the exception only when i wrote the above statements in amy own function. I have written
int id=m_wndSplitter2.IdFromRowCol(0,1);
m_wndSplitter2.DeleteView(0,1);
m_wndSplitter3.CreateStatic(&m_wndSplitter2,2,1,id);
m_wndSplitter3.CreateView(0,0,RUNTIMECLASS(CMyView),pContext);
m_wndSplitter3.CreateView(1,0,RUNTIMECLASS(CMyView),pContext);
Can't we create the splitter window in a function other than
OnCreateClient()?
I am getting the exception at
POSITION CPtrList::Find(......)
{
ASSERT_VALID(this);
CNode* pNode=(CNode*)startAfter;
if(pNode==NULL)
{
pNode= m_pNodeHead;====>here i am getting the exception
}
.......
...........
}
This code is present in LIST_P.cpp.
When i debug the program, i am getting the exception at
mov ezx,dword ptr [edx+4]
I don't know why i am getting this exxception.
can anybody tell me why i am getting this exception
Thanks in advance.
-- modified at 0:36 Tuesday 30th May, 2006
|
|
|
|
|
sruti_p wrote: This code is present in LIST_P.cpp.
I don't know why i am getting this exception.
can anybody tell me why i am getting this exception
I know the exception is in the file LIST_P.cpp . But it could be caused by one or more statements in your file i.e. in the OnCreateClient function. So that's why I told you take a look at the call stack. Try to comment out all statements in the OnCreateClient . Then Uncomment all the others one by one. Trying the find out who is the real culprit.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
I did what u told me to do.But i am not at all getting any exception because of the code in OnCreateClient(). I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???
|
|
|
|
|
sruti_p wrote: I am getting th eexception only when i wrote the code in my function. I am not able to understand the reason for this. Can i create the splitter window in a function other than OncreateClient()???
AFAIK No! OnCreateClient is the function that is called during the creation of the client area. Hence you must create your splitter there.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
But i want the splitter window to create only when i select an item in the tree control. How can i do this??
output Before selecting the tree item:
first pane
----------------------------
tree |
control |
| third pane
|
|
output After selecting an item in the tree control:
first pane
------------------------------------
tree |
control | second pane
|
|--------------------------
|
| third pane
|
Thanks for ur reply.
-- modified at 6:05 Tuesday 30th May, 2006
|
|
|
|
|
Hello!
I came accross the article http://www.codeproject.com/tips/dirclean.asp[^] which is about some handy utility. Shell extension DLL is provided. Can somebody please tell me how to register this shell extension trough console maybe? I really don't want to learn about shell extensions right now. All I want, is to use this utility.
Best regards,
Rostfrei
|
|
|
|
|
Rostfrei wrote: Can somebody please tell me how to register this shell extension
Is it working with regsvr32 ? Start Menu -> Run and type regsvr32 YourDll.dll (where YourDll.dll is the dll you want to register). This dll has to be in the system32 directory (or you have to specify its path also).
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
Thank you! Works without a problem.
Regards,
Rostfrei
|
|
|
|
|
I'm created an dll (statically linked). Included this
dll lib and Header file in to my (test file folder).
But the compilation ends with an error undeclared
identifier Testdll. (Testdll, this function name was exported in static dll file)
You only have to do a very few things right in your life so long as you don't do too many things wrong.
Vivek.S
|
|
|
|
|
Can you be more specific ?
A statically linked dll doesn't exist, maybe you are speaking about implicit linking (you don't use LoadLibrary and GetProcAddress but you have a header file and a lib file).
Please, when you have an error message, post it completely and explain if it's a compiler or linker error.
I suppose you didn't add the library file in the project settings ? That may be the problem.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
vivek.s.vivek wrote: dll lib and Header file in to my (test file folder).
But the compilation ends with an error undeclared
identifier Testdll. (Testdll, this function name was exported in static dll file)
It Seems like MFC DLL linkage problem, Could you change you DLL COnfiguration from Statically linked DLL To MFC Shared DLL and then perform same task!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
How to keep the right order of what is sent?
|
|
|
|
|
Have a queue that is accessible from your threads and put the packets to be sent in the queue.
You can poll the queue with a timer to read packets from the queue and send them in the order they were written to the queue.
Don't forget that the queue has to be synchronized with e.g. a critical section in order to prevent data corruption.
Hope this helps
--
Roger
It's supposed to be hard, otherwise anybody could do it!
Regarding CodeProject: "resistance is pointless; you will be assimilated"
|
|
|
|
|
Im my coding i run the aplication by pressing F5,the application get executed and working properly.When i close my application the dubug assertion error is occured.The error is
"Damage:after norml Block(#2523) at 0x00d70ff8"
like this..wats the meaning for this.
|
|
|
|
|
This occurs while using delete to free an allocated block of memory. Mainly because you haven't allocated sufficient amount of memory.
Step through the code to find out where this happens.
An e.g. to reproduce this error
PCHAR pMsg = "Nibu babu thomas is a good boy! OMG!";
PCHAR pCh = new CHAR[ strlen( msg ) ];
strcpy( pCh, pMsg );
delete pCh;
PCHAR pCh = new CHAR[ strlen(msg) <code>+ 1</code> ];
strcpy( pCh, pMsg );
delete pCh;
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
There are other causes. In general it means the heap has been corrupted. There are many ways the heap can become corrupted. For example you may allocate some memory but write beyond the end or before the beginning and thus corrupt the CRT's book keeping data.
Steve
|
|
|
|
|
Stephen Hewitt wrote: example you may allocate some memory but write beyond the end
Exactly. That is what is happening in the sample that is given, strcpy puts a NULL char just after the last char which in fact is writing beyond the end.
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
Hello everyone?
I wanna display data which is stored in database, as like 3D using OpenGL or Direct3D.
How can I solve this? You have any idea about this???
|
|
|
|
|
Can you be more specific
what data? picture /text?
whitesky
|
|
|
|
|
Could any one help me? I've been having probelms in an animation project and i do not really have an idea on how to render images n stuff. These are the requirements. A person should walk into a car, drive through a stree, leave the car and enter into one of the buildings. If there's anyone out there, please assist.
Regards.
Reuben K.
|
|
|
|
|
This project is VC or 3dMax or MAYA
if isnt VC then
maybe it is some helpful to you (i think a little difficult)
like this of course this isnt perfect anyway
1-you need to poser for personal and you can declare walk in poser
2- import this file to max or maya (of course you need to frames save for example 1 2 3 4,....20)
3- import to maya frame to frame and then assign one maretial to your object
4- you need to declare key frame (for example 3)
5- you need to one motion path
6- i think you need to IK for body (neck,chest,head,...)
whitesky
|
|
|
|
|
WhiteSky wrote: like this of course this isnt perfect anyway
1-you need to poser for personal and you can declare walk in poser
2- import this file to max or maya (of course you need to frames save for example 1 2 3 4,....20)
3- import to maya frame to frame and then assign one maretial to your object
4- you need to declare key frame (for example 3)
5- you need to one motion path
6- i think you need to IK for body (neck,chest,head,...)
Easier said than done!
Nibu thomas
A Developer
Programming tips[^] My site[^]
|
|
|
|
|
yes but its possible
whitesky
|
|
|
|