one method i know about application block by pooling process table and if it matches then terminateprocess() . but is their any method to close the application before getting launch. if it is their how to get this.
GudduRanchi
Posts
-
Application Block -
[Message Deleted] [modified]Hi What you have suggested it is good.it works fine but ? i am giving you total my problem. I am having two structure. as you kmow. typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; CListmy_example; i have created an object of PTEST as: PTEST test; Allocating an memory. Filled this structure. check (my_example.Isempty()){ // This is my First Node my_example.AddHead(test); } In this condition i am getting problem if i am alocating the memory of PTEST my_example= new TEST; them i am not able to call all the member variable of CList. So what i have to resolve my problem Regards and Thanks Neeraj Kumar Jha
-
Delete a FileI think the file you have opened didnot get closed so First close the file using CloseHandle or fclose.
-
[Message Deleted] [modified]I have created a structure as typedef struct __test{ char buf[10]; }TEST,*PTEST; then i created a CList object as CListmy_firststruct; then i am using to store linklist if( my_firststruct.IsEmpty()) my_firststruct.Addhead(pTest); else my_firststruct.AddTail(pTest); It is working fine. But problem start when i am using as typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; if(pTest->my_secondstruct.IsEmpty()) when i am trying to call this is giving me error error code is C0000005: This error is with memory. So how i will resolve this error. Can any one help me on this...?
-
[Message Deleted] [modified]I have created a structure as typedef struct __test{ char buf[10]; }TEST,*PTEST; then i created a CList object as CListmy_firststruct; then i am using to store linklist if( my_firststruct.IsEmpty()) my_firststruct.Addhead(pTest); else my_firststruct.AddTail(pTest); It is working fine. But problem start when i am using as typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; if(pTest->my_secondstruct.IsEmpty()) when i am trying to call this is giving me error error code is C0000005: This error is with memory. So how i will resolve this error. Can any one help me on this...?
-
Problem using CList ?I have created a structure as typedef struct __test{ char buf[10]; }TEST,*PTEST; then i created a CList object as CListmy_firststruct; then i am using to store linklist if( my_firststruct.IsEmpty()) my_firststruct.Addhead(pTest); else my_firststruct.AddTail(pTest); It is working fine. But problem start when i am using as typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; if(pTest->my_secondstruct.IsEmpty()) when i am trying to call this is giving me error error code is C0000005: This error is with memory. So how i will resolve this error. Can any one help me on this...?
-
Problem in using CListHi All, I was trying to explore the working of double Linklist in MFC using CList. I have created a struct such as struct XXXX{ char buff[10]; char buff1[10]; }YYY; then CList my_list; my_list.AddHead(); This is working fine . But my problem is when i want do ... struct zzzz{ char buff[10]; char buff1[10]; }PPP; struct XXXX{ CListmy_second_Struct; char buff[10]; char buff1[10]; }YYY; Is it help me to achive my goal. If Not please help me Regards &Thanks Neeraj Kumar Jha
-
[Message Deleted] [modified]I have created a structure as typedef struct __test{ char buf[10]; }TEST,*PTEST; then i created a CList object as CListmy_firststruct; then i am using to store linklist if( my_firststruct.IsEmpty()) my_firststruct.Addhead(pTest); else my_firststruct.AddTail(pTest); It is working fine. But problem start when i am using as typedef struct __Second{ char buf[10]; }SECOND,*PSECOND; typedef struct __test{ CListmy_secondstruct; char buf[10]; }TEST,*PTEST; if(pTest->my_secondstruct.IsEmpty()) when i am trying to call this is giving me error error code is C0000005: This error is with memory. So how i will resolve this error. Can any one help me on this...? -- modified at 9:41 Wednesday 27th September, 2006