Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vkavith
  • Order by date
  1. vkavith

    reading file and sending to email

    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...
  2. vkavith

    Long type conversion

    char str[100]; unsigned long num = some number; _ltoa (num, str, 10)
  3. vkavith

    syntax-question : array of pointers...

    I've had similar problems and prefer to use typedefs I also makes the program more readable. As said no compiler to 100% correct. Sriks
  4. vkavith

    Which Compiler???

    For gcc, u might have to install the cygwin tools (which includes GCC). Sriks
  5. vkavith

    Arrays, pointers, and Segmentation Faults

    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...
  6. vkavith

    Non-Virtual Destructors...

    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
  7. vkavith

    hiding a password typed in an Xterm using C

    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
  8. vkavith

    Arrays, pointers, and Segmentation Faults

    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
  9. vkavith

    how to use int (*p)[3]

    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
  10. vkavith

    Derivation and base class member initialization

    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
  11. vkavith

    unsigned byte

    U could use unsigned char. Let me know Srik
  12. vkavith

    Calculate a Checksum

    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
  13. vkavith

    Win32 API Command?

    Hmmm my guess wud be NO. You may have to do it programmatically
  14. vkavith

    DLLs and Multithreading...

    My guess would also be &quot;yes&quot;. 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
  15. vkavith

    Simple Edit Control Problem on MS Visual C++

    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) //...
  16. vkavith

    Need to make an array of pointers

    int *array_ptr[100] is an array of pointers. Similarly - myClass *ptr_ob[100] is an array of object pointers to the class 'myClass'. Each element in this array is a pointer to myClass. To use the first element it would be something like.. array_ptr[o] = new myClass Hope it helped. As again...
  17. vkavith

    How to create Directory Tree in VC++

    Nope... my guess would be that you should use the tree control available as a resource and then write your code to behave it that way. Sriks
  18. vkavith

    How can i identify the active web browser?

    You do have a document member to get the active web browser or this navigator.appName == &quot;Netscape&quot; ? will also help. Sriks
  19. vkavith

    CDaoRecordset - Handling Empty Recordsets

    The AND condition is wrong. It would be 'OR'. Sriks
  20. vkavith

    How do you create a Directory Tree in VC++

    You will need to create a tree control and program it to behave that way... Inside VC++ by Kruglensky gives u an example. Sriks

Part and Inventory Search

Back
Top