thank you for the reply. here are my answers:
1.i don't know about the value of file header. how do i get it?actually the hex string values i retrieved from database and assign to CString variable.
2.do you mean i have to convert hex string to BYTE?
3.i am using fwrite function which i assigned hex string values into unsigned char variable
Some body tell me that this program use 10% CPU Time.
That means that the program was using the CPU 10% of the time it was running. So, if it ran for 10 minutes, I would have used 1 minute of CPU time.
How can I write the code for check CPU Time of my program,
Use GetProcessTimes[^]. The total CPU time your program has used is the sum of the user and kernel times. The total elapsed time is the creation time substracted from the current time. You can express the CPU time as a % by dividing the total CPU time by hte elapsed time.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
You are going to have to traverse through the entries and find the language code you are looking for. There should be code out on the web on how to traverse through registry entries to find a particular key.
Here you will find a list of Windows language codes:
I am in need of help here. I have a dll which create a text file using FILE* and CFile class ( I tried both ways). At each line of text, text are "\t" delimited and "\n" at the end of text. The dll is created in C++ Visual Studio v6. There used to be a application (writen in version 6 as well) calling this dll and it works fine. Now, the application is ported into C++ VS2005 platform and calling this dll. It crashes at the end of file. Basically, it doesn't pick up the last "\n" and it run into while loop one more time. Since the additional loop doesn't see an EOF or "\n", it crashes. Can anyone tells me what's going on?
One interesting thing is that the same file reader function is used elsewhere in the same application and it works fine. Please help. I've run out of ideas and tests.
Everything is as usual. Here is a fragment of the code. Note that COXCsvFile class is a wrapper from Ultimate Toolbox.
// Open the input file
int nColumns = GetOurApp()->m_MIUtility.GetFileColumnCount(sFile, "\t");
if (!inFile.Open(sFile, CFile::modeRead, &fe))
return 1;//no record added
inFile.SetFieldDelimiter(_T('\t'));//set delimiter as tab
// Read the records in one at a time from the second table.