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.
User Profile
Collapse
-
...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;Leave a comment:
-
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.Leave a comment:
-
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. -
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?
... -
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.... -
CreateGraphics
Hi.
Is there an equivalent function in C++ for CreateGraphics( ), which is in C#?
Thanks. -
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);Leave a comment:
-
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?Leave a comment:
-
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? -
-
Hi.
Thanks for replying.
I have tried that but it gives an output of two lines like =.
Its not in terms of hex.Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: