Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

white jungle

@white jungle
About
Posts
67
Topics
37
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • using ADO to get a clob out value through store procedure in oracle
    W white jungle

    Hi there: I am trying to get a clob data via store procedure in oracle db by using ADO . But I don't know how many bytes should I allocated for the buffer to hold the clob out value. Is there a convenient way to get the clob out value properly ? I googled and found some guys say that ADO.Stream can be used on this problem but I failed to find how to use ADO.stream in Thanks a lot.

    ---------- Don't look at me in that way!

    C / C++ / MFC database oracle help tutorial question

  • How to get the original size of a pe file
    W white jungle

    At first!Thank you for help! I just want to get the orginal pe file's size,maybe the pe file was modified by some other program(ex.Append some data to the end of the orginal pe file).So the size I get from API is not the size of the original file. I want to get the original pe file size ,so I have to follow the pe format and sum all it's section size and directory size. Can you help me on getting a easy way to find out the original file size! Thank you very much! ---------- Don't look at me in that way!

    C / C++ / MFC json tutorial

  • How to get the original size of a pe file
    W white jungle

    But if I have a pe file and then I append some data to the file,I want to get the original pe file size,not the size after modified! I skim the winnt.h and find that I must sum all the section size and directory size to count the size of pe file.I want to if there is a structure member in the pe file that can show me the size directly! Thanks for help!

    ---------- Don't look at me in that way!

    C / C++ / MFC json tutorial

  • How to get the original size of a pe file
    W white jungle

    I just want to know how to get a pe file's size through the PE file its self.That is no API is used,just look up the data structure of the pe. I have checked the winnt.h and can't find a useful data member to show the size of the pe file.

    Don't look at me in that way!

    C / C++ / MFC json tutorial

  • two variable with overlapped memory address
    W white jungle

    In my project,there are a lot of global members. To my surprise that I found two of the global member has the overlapped memory address. For example: member a begin at address 0x00457280 and the size of a is 14D(hex) member b begin at address 0x00457380 and the size of b is 848(hex) obviously the two member overlapped! But why?I have no idea on finding out a solution! WINXP+VC6+SP6

    Don't look at me in that way!

    C / C++ / MFC performance tutorial question

  • vtable pointer initialize failed! [modified]
    W white jungle

    Thank you very much Hewitt! I think I solved the problem follow your reminder. now everything is seemed OK! the class CSite has also some static member,and these member is defined at the 'site.cpp' ,but I define the defaultSite instance at the other cpp file (services.cpp)before!I think this is why I get a error! Now I move the definition of defaultSite into the 'site.cpp'. Thank you again for your help! ^_^

    Don't look at me in that way!

    C / C++ / MFC debugging tutorial help announcement learning

  • vtable pointer initialize failed! [modified]
    W white jungle

    A is a static instance of class CSite class ISite { public: virtual const char* getSiteName() =0; virtual bool postRequest() =0; .....//there is a lot of method in this class! }; class CSite:public ISite { public : //implement of virtual method of baseclass ...... } in some other cpp file,I make a static member like this: static CSite defaultSite; Now I set Optimizations to normal in project setting!But the problem is still there!

    Don't look at me in that way!

    C / C++ / MFC debugging tutorial help announcement learning

  • vtable pointer initialize failed! [modified]
    W white jungle

    I dont' know how to named the title! My program is compiled by vc6+sp6+SDK2003 with release mode but have debug information in it And there is a static member called A(faked name). And is a instance of class CSite.CSite is inherited from a abstract class. example: class Base { void virtual int add(int a,int b)=0; }; class CSite:public Base { //blablabla... }; When debug the program and set a breakpoint at the construtor of the member A. I found that the vtable pointer was initlialized to NULL. And of course the program crashed! I have no idea with this issue! Can any one who please give me a handle on this! BTW:there is not anything wrong if I debug the program in debug mode! Thank you very much! I must appologise for my poor english,hope you can understand what I said! -- modified at 23:47 Wednesday 31st January, 2007

    Don't look at me in that way!

    C / C++ / MFC debugging tutorial help announcement learning

  • Can anyone help me with jms call in c language!
    W white jungle

    I use the lib in a simple way as follow: When the application run,I will start a new thread which will be end while application die! In the new thread I will check if there is any message in the message stack.If so,send it using JMS lib.or else,just wait a short while. The stack manager was written using STL. And I haven't allocate any memory explicity in my application. Do you have any idea! Today!I checked the running status of the application . I find that there are only 524K memory increasement while sending 570000 messages.Maybe it's a good news.^_^ Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Can anyone help me with jms call in c language!
    W white jungle

    Yes!I think . I am testing the program now. Now,it had sent 140000+ messages and memory increased 428K. I want to keep the program running for 4 or 5 days. each days it will send 144000 pieces of messages. And each mesasge has 800 bytes content. Hope it has a peek memory useage! ^_^ Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Can anyone help me with jms call in c language!
    W white jungle

    I have soled this problem now! I am sure that the number is not the peek value. I use the jms c lib in a multithread program,and whenever I create a text message,the lib will create the context for the message, so memory leaked. And now,I use a work thread to send the message and everything looks fine except re-connect to server.If I re-connect to server due to network issue,it looks leak some memory. Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Can anyone help me with jms call in c language!
    W white jungle

    According to Performence moitor ,I can find it! Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Can anyone help me with jms call in c language!
    W white jungle

    yes! But I need only topic! Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Can anyone help me with jms call in c language!
    W white jungle

    Hi,Every one: I just use jms lib to send message to jboss server. And I useing C to do this work. But I doubt there is memory leak when call jms api. I have a test with create one instance of Message and set the message with new text context when sending the message. After send 20000 messages,the memory requirement increase 2000K +. I don't know where I am wrong. So,please anyone can send me a sample with call JMS lib in C language. (include create context,connection ,send message and destroy all instance) Thank you very much! Don't look at me in that way!

    C / C++ / MFC sysadmin json performance help

  • Why CListView do not inherit from CListCtrl
    W white jungle

    I wrote some useful code in my class Class CMyListCtrl:public CListCtrl And now,I want to use these code in my new class CMyListView. Originally,I want to inherit CMyListView from CMyListCtrl. But I found that ListView do not inherit from ListCtrl. So how can I use my own code for CMyListView with less modification! Thanks a lot! Don't look at me in that way!

    C / C++ / MFC css question

  • Why I can't CreateDragImage in CTreeCtrl?
    W white jungle

    But if you drag a item ,the drag image is consist of the image and of course the text. SO I don't think that the only item which include image and text can be drag and drop! And I write some code to createDragimage with item which only has text. but there's some wrong in my code. That is,I can't check if there is a image with the item. for Example: if I retrieve the imagelist of the treectrl and return NULL.Obviously the item do not has a image. But if the the treectrl return a valid imagelist but the item DO not have a image with it.I use fcuntion GetItemImage(hItem,iImage,iSelImage) to check if the item has a image.but the function always return TRUE.even the item is only consist of text,the parameter iImage,iSelImage will be 0.SO I can't judge if the item has a image with it. Can anyone help me for this issue!? Thank you very much! Don't look at me in that way!

    C / C++ / MFC help question

  • Why I can't CreateDragImage in CTreeCtrl?
    W white jungle

    Hi,All: I create a subclassed treectrl which allow user drag and drop but if the Item is without image (neither normal image nor slected image) ,I can't create the Drag image ,it return NULL always. SetCapture(); Select(hSelItem,TVGN_CARET); m_pDragImageList=CreateDragImage(hSelItem);//Always return NULL,and the paramter is valid always because I add a check statement to avoid NULL HTREEITEM in it works well while item has image. Can any one help me to point where I am wrong ! Thanks a lot Don't look at me in that way!

    C / C++ / MFC help question

  • memory leak when using fstream,seek for help
    W white jungle

    the meory leak as before! char *buff=new char[7]; strcpy(buff,"123456"); ofstream fout("test.txt",ios::out); fout.write(buff,6); fout.close(); delete[] buff; I hope it's boundschecker wrong!:-D Don't look at me in that way!

    C / C++ / MFC csharp ios visual-studio debugging performance

  • memory leak when using fstream,seek for help
    W white jungle

    the program goes well. and the fout always has correct value! if I use fopen,fclose. the BoundsChecker report nothing example: char buff[]="11111"; FILE* pFile=fopen("www.txt","w+"); if(!pFile) return; fwrite(buff,1,5,pFile); fclose(pFile); Don't look at me in that way!

    C / C++ / MFC csharp ios visual-studio debugging performance

  • memory leak when using fstream,seek for help
    W white jungle

    int main(int argc, char* argv[]) { long start=0,length=0; char *pByte=(char*)malloc(sizeof(char)*10); if(pByte==NULL) return -1; memset(pByte,1,10); ofstream fout("test.bmp",ios::out); if(!fout) { return -1; } fout.write(pByte,10); free(pByte); fout.close(); return 0; } I debug this program with boundscheker,the bc report that there are 160 bytes memory leak which at if ( (p = (_PVFV *) _realloc_crt(__onexitbegin, _msize_crt(__onexitbegin) + ONEXITTBLINCR * sizeof(_PVFV))) == NULL )//《====Here these code was copy from "..\Microsoft Visual Studio\VC98\CRT\SRC\onexit.c" I do not know where I am wrong at. please anybody help me! Don't look at me in that way!

    C / C++ / MFC csharp ios visual-studio debugging performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups