U have 3 issues here.
(1) Reading the file
(2) Processing it
(3) Sending it by Email.
All the three are not that complicated though.
Reading and processing the inputs are not difficult.
For sending the email, if its an SMTP server, u need to implement the SMTP protocol.
For yr file operations...
Aria
As said by Ion, it is a problem with the usage of the pointer 'x'. Given that code, I don't see a memory allocation done to that pointer. Its failing due to that and not releated to int i=0, etc.
U must be have a malloc call for x before using it.
Check that.
IF u are still confused, send...
Hmmm, am not sure.
Can the destrcutor of the derived class be called without making the virtual ? (maybe make the base class destructor).
Am concerned too.
Srik
remember to use getch() and not getche(), the 'e' in the latter case will echo the character typed.
Also, you could also display '*' as the case in windows when it comes to echoing password.
Sriks
char *s = "Hello" declares a pointer of a constant, hence you cannot modify that location.
I would also be curious to know what was in 'those' lines in your code.
Sriks
Its correct.
To simply int *p[10] means that you have 10 pointers pointing to integers. Since each of these are pointers (like p[0], p[1], etc), they can in turn point to a single number or an array of numbers.
Srik
Nos,
I guess u answered your question. The base class should in reality handle the management of those data members that is universally applicable in that design.
I would move the management of elements that are particular to the derived in the derived class.
Good question
Srik
I did something like this for a group of byte elements. See if u can convert this to yr array
UNSIGNED32 seed = 0x746d7361;
UNSIGNED32 i, icVal0 = seed, icVal1 = 0;
BYTE* pg = *ptrToBeginningOfArray;
for (i = 0; i < numBytes; i++, pg++)
{
icVal0 += *pg;
icVal1 += icVal0;
}
Sriks
My guess would also be "yes". COnsider the scenario where u have a process with n threads. If u delete the process, then all the threads in the process will automatically be deleted.
Sriks
Do u have member variables created to yr edit controls using the class wizard.
Create them first, it makes life easier.
Assume these are the variables for each of the controls
m_edit1
m_edit2
m_edit3
All u need to do is
OnButtonClick ()
{
m_edit3 = m_edit1 + m_edit2;
UpdateData(true) //...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.