User Profile

Collapse

Profile Sidebar

Collapse
UnknownBlue
UnknownBlue
Last Activity: May 24 '07, 04:30 AM
Joined: Jan 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • UnknownBlue
    started a topic serialize function
    in C

    serialize function

    Hi.
    Im confused about the serialize function. I am doing a MDI application and I want to have a file open dialog which will read data from a binary file. I do not need to save any file. So must I use the if(ar.IsStoring ())... else? How do I go about doin this?
    Thanks.
    See more | Go to post

  • UnknownBlue
    replied to Access Violation.
    in C
    It works! Thanks a lot!...
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    replied to Access Violation.
    in C
    Code:
    class CCVPlot : public CStatic
    {
    // Construction
    public:
    	CCVPlot();
    
    // Attributes
    public:
    
    // Operations
    public:
    
    // Overrides
    	// ClassWizard generated virtual function overrides
    	//{{AFX_VIRTUAL(CCVPlot)
    	//}}AFX_VIRTUAL
    
    // Implementation
    public:
    	int m_factor;
    	int m_colour;
    	int m_blackRect;
    ...
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    replied to Access Violation.
    in C
    Hi.

    I have a program which is able to run. But when I add a member variable, int m_factor, through Classview, I cant run the program anymore. And if I delete int m_factor, it works again! I dont know why I cant add member variable.
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    started a topic Access Violation.
    in C

    Access Violation.

    Hi.

    I have this error after I run VC6 program; "First-chance exception in CV_13.exe (NTDLL.DLL): 0xC0000005: Access Violation."

    I have this error after I add a member variable to a class. If I do not add this member variable, the program works fine.

    What does this error means? And how can I fix it?
    Thanks.
    See more | Go to post

  • UnknownBlue
    started a topic gnuplot
    in C

    gnuplot

    Hi.
    I am trying to plot a 3D graph using gnuplot through visual C++ using *.bin file with 12 columns, in which only the 1st, 6th and 8th column is used as x,y,z axis to plot the 3D graph.
    My first question is that must I rewrite the file into 3 columns for the gnuplot or can I use the original file (12 columns) to plot the graph? If the latter can be used, what are the codes that I must use to use the 1st, 6th and 8th column?
    ...
    See more | Go to post

  • UnknownBlue
    started a topic Picture control with type rectangle
    in C

    Picture control with type rectangle

    Hi.

    I need to display a graph using a dialog, using data from a file that I have put in an array. I am using VC6. Some of the graph program that I saw over the internet uses picture control with rectangle as the type. The problem is I don't know how to use picture control. Is there a link that teaches picture control with rectangle as the type? I have already tried searching on the internet and some books but I can't find anything....
    See more | Go to post

  • UnknownBlue
    started a topic CreateGraphics
    in C

    CreateGraphics

    Hi.

    Is there an equivalent function in C++ for CreateGraphics( ), which is in C#?
    Thanks.
    See more | Go to post

  • UnknownBlue
    replied to Little Endian & Binary
    in C
    Hi. Sorry for not being specific. Im trying to do the second one. The one on swapping the low order bytes with the high order ones. Im using VC6.
    Code:
    #include <iostream>
    #include <fstream>
    using namespace std;
    
    ifstream file;
    ofstream newFile;
    
    int main ()
    {
    	int j = 0, i;
    	char array[10], chg[5];
    
    	file.open ("s0455_re.dat", ios::in|ios::binary);
    ...
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    replied to Little Endian & Binary
    in C
    The hex display of the data is like this: 2E FA CC F6 9F FC... So since it is little endian, do I have to change the data to FA 2E F6 CC FC 9F?
    And Im supposed to divide the data by two. Do I just divide 2E by two or FA 2E by two?

    I just cant figure this out. Can someone help me?
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    started a topic Little Endian & Binary
    in C

    Little Endian & Binary

    Hi.

    How do I display a binary data that is formatted in little endian in Visual C++ 6?
    Can I just display it as per normal or is there an additional code to use to read and display it?
    See more | Go to post

  • UnknownBlue
    replied to Reading Binary
    in C
    It sort of work!
    Thanks!
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    replied to Reading Binary
    in C
    Hi.

    Thanks for replying.
    I have tried that but it gives an output of two lines like =.
    Its not in terms of hex.
    See more | Go to post

    Leave a comment:


  • UnknownBlue
    started a topic Reading Binary
    in C

    Reading Binary

    Hi.

    I am trying to read .dat files which is in binary using visual C++ 6.0. I want to display the first 100 char (in hex). But instead some weird char are being display. I opened the file through hex editor and this is what i am supposed to get: 2EFACCF69FFC84. ..

    Can anyone help me in this? Thanks in advance!
    Code:
    char *memblock;
    ifstream::pos_type size;
    ifstream file;
    
    int main
    ...
    See more | Go to post
No activity results to display
Show More
Working...