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
H

hrishiS

@hrishiS
About
Posts
336
Topics
141
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Hi function with variable arguments
    H hrishiS

    Hi I just came across a function like void (int a, int b,...) { //code } I assumed it as variable argument..But am I correct? If yes, how does it work exactly?...

    ----------------------------- I am a beginner

    C / C++ / MFC question learning

  • dynamic wave creation
    H hrishiS

    thanks I will go through that and if u dont mind, i will get back to you for further doubts..

    ----------------------------- I am a beginner

    C / C++ / MFC performance learning

  • dynamic wave creation
    H hrishiS

    Thanks for the reply I know my questions is not specific. I am just doing this to just to learn.I am a VC++ learner. when i was looking at the windows task manager performance tab, it strike my head to create something like that, ...since then i am breaking my head....I guess you can assume just drawing a signal....

    ----------------------------- I am a beginner

    C / C++ / MFC performance learning

  • dynamic wave creation
    H hrishiS

    Hi to All, I want to create a sine-wave like the one in (Windows Task Manager->performance Bar)..which should be moving depending upon some input..... Please give me some hints

    ----------------------------- I am a beginner

    C / C++ / MFC performance learning

  • protocol Analyser / Bus analyser
    H hrishiS

    No actually I tried...But it shows different vendors or software available for that.....I have not got any generic explanation for it...like how it works and what it does...

    ----------------------------- I am a beginner

    Hardware & Devices question tutorial learning

  • protocol Analyser / Bus analyser
    H hrishiS

    Hi to All, I wanted some information or idea on protocol analyzer (Bus analyzer).... Can anyone please give me a brief idea on Bus Analyser... I want to know what is it and how it works..like (I have read that bus analyzer comes with a hw and sw....now how anyone connects it..to USB?..and how we can analyze) One small example would be very very great... Thanks in advance.

    ----------------------------- I am a beginner

    Hardware & Devices question tutorial learning

  • fread() for file system
    H hrishiS

    Hi to All, I have some problem in Logic, while reading a file (which has many objects of structure A,)...and buffering it to a dynamically allocated memory... What I am doing exactly is that....I need to read the file...and if there is any data available, then put it to a new structure (dynamical allocated memory)... Problem is ..<b>where do I declare/allocate memory for the structure</b>, I cannot declare in beginning of the loop, because fread() will overwrite into the same memory location... something like.... A     *lpA     =     new A; while(fread(lpA,sizeof(lpA),1,ptr_myfile)     !=     EOF) {    ...do something(Add the pointer into a List) } Similar problem with declaring it inside the loop... fread() needs the first parameter...

    ----------------------------- I am a beginner

    C / C++ / MFC performance help learning

  • Over Writing in File System...
    H hrishiS

    i guess the new method would be very simple..i think i will adopt that.

    ----------------------------- I am a beginner

    C / C++ / MFC help performance learning

  • Over Writing in File System...
    H hrishiS

    oh sorry for the miss interpreting...its not error,...but its some junk values...

    ----------------------------- I am a beginner

    C / C++ / MFC help performance learning

  • Over Writing in File System...
    H hrishiS

    sorry...its not error,...but its some junk values...

    ----------------------------- I am a beginner

    C / C++ / MFC help performance learning

  • Over Writing in File System...
    H hrishiS

    I guess thats the easiest method, it dint strike my head...Hehe Thanks anyway, But for my knowledge I wanted to know, if we can do the other way....

    ----------------------------- I am a beginner

    C / C++ / MFC help performance learning

  • Over Writing in File System...
    H hrishiS

    Hi To All, I have written a code to write some data to a binary file system ...(I am writing 3 structure with different size)...one after another. like A,B,C I dont have any delimiter or special object to know the next size(bytes) to read from the file . Because of that I always read one by one.... Now I want to overwrite the middle structure...(B).....While over writing I am having some problem... what I did is... ...Read the file with size of A (in order to point the file pointer to the next memory..ie starting of struct B)...then write the second structure with the sizeof(B)... I have open the file in r+b mode.... Now when I read the file its showing some error please help me for the same...

    ----------------------------- I am a beginner

    C / C++ / MFC help performance learning

  • character comparision...case insensitive
    H hrishiS

    thanks a lot

    ----------------------------- I am a beginner

    C / C++ / MFC help learning

  • character comparision...case insensitive
    H hrishiS

    Hi to all. I am having a problem in comparing characters in a string. I need to do it character by character only. Currently I am checking something like if(*st1 == *st2){.....} But It results different when the characters are in different case. So Can anyone please help me in MODIFYING THE SAME STATEMENT FOR CASE INSENSITIVE COMPARISON. Thanks in advance

    ----------------------------- I am a beginner

    C / C++ / MFC help learning

  • reading writing to a file system
    H hrishiS

    thanks... I quickly read the article, its somewhat interesting...I need to write the different type of class..not only the one....in that case please help me ... One more important thing is that I am not using MFC...its a pure C++ console based application

    ----------------------------- I am a beginner

    modified on Thursday, December 17, 2009 12:42 AM

    C / C++ / MFC algorithms help learning

  • reading writing to a file system
    H hrishiS

    thanks a lot...but i need a file system only ...not INI file...preferably a binary file

    ----------------------------- I am a beginner

    C / C++ / MFC algorithms help learning

  • reading writing to a file system
    H hrishiS

    Anyone please help me to read write 3 differnt structure to a file...and read them searching the file....like struct A { int id; int data; }; struct B { int id; float data; }; struct C { int id; double data; int data2 };

    ----------------------------- I am a beginner

    C / C++ / MFC algorithms help learning

  • C++ File system
    H hrishiS

    thanks , that's the exact one i was looking for...In fact I dont have knowledge on serialization, But i have also reached t that point..Now I am having problem on reading... just for ur information.....my incomplete code is given below I have used class instead of struct class tableSructureUnknown { }; class tableSructure1: public tableSructureUnknown {     public:      int x;      int y; }; class tableSructure2: public tableSructureUnknown { public:      int x2;      int y2; }; class listTable { public:      int id;      int size;      char tName[20]; }; listTable ArrTableInfo[]= {          {TFX_TABLE1,sizeof(tableSructure1), "first"},               {TFX_TABLE2,sizeof(tableSructure2),"Second"},               {TFX_UNKNOWN,0,"Unknown"} }; FILE *ptr_myfile; int writeToFileTable(int tableId,tableSructureUnknown *lpbaseTableClass) {      ptr_myfile=fopen("test.bin","w");      if (!ptr_myfile)      {           printf("Unable to open file!");           return 1;      }      for(int i = 0;   (ArrTableInfo[i].id != TFX_UNKNOWN) || (ArrTableInfo[i].id != tableId) ;i++)      {           fwrite(&ArrTableInfo[i], sizeof(listTable), 1, ptr_myfile);           ptr_myfile=fopen("test.bin","w");           if (!ptr_myfile)           {                printf("Unable to open file!");                return 0;           }                                        fwrite(&lpbaseTableClass, ArrTableInfo[i].size , 1, ptr_myfile);

    C / C++ / MFC question c++ help learning

  • C++ File system
    H hrishiS

    thanks for your reply. But my problem is I have more then 2 structure and I need to search or write at runtime.

    ----------------------------- I am a beginner

    C / C++ / MFC question c++ help learning

  • C++ File system
    H hrishiS

    Hi to All, I have 4 rows of data has to be saved in a binary file system . I haven't use it before, Can anyone please help me with this EG: struct A { int a1; int a2; } struct B { int b1; int b2; } struct C { int c1; int c2; } How do I write and read this values from the file system??

    ----------------------------- I am a beginner

    C / C++ / MFC question c++ help learning
  • Login

  • Don't have an account? Register

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