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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rossno

  1. rossno

    How do I make a window have a default text input???

    I don't do much MFC, but ... see MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cwnd.3a3a.setwindowtext.asp There example starts with: // set the text in IDC_MYEDIT CWnd* pWnd = GetDlgItem(IDC_MYEDIT); pWnd->SetWindowText(_T("Hockey is best!")); ...
  2. rossno

    user input handling

    Q1. A classic way to process a switch statement is something like: ... cout << your choices are: ... [whatever] << endl; while ((choice = cin.get()) != EOF) { switch (choice) { case 'A': //do something when a is found break; case 22: case 73: // do...
  3. rossno

    I want a better memcpy() function.

    Hey thanks Globos, Ya, I will ponder your embellishments some more and include those too. Yes, I have already overloaded several of the template functions. So far, I have made templates for memcpy, memcmp, memicmp, and memset. That's probably all I will need. I started programming in 1968...
  4. rossno

    I want a better memcpy() function.

    Not to worry Globos, I found the STAR thing at thebottom of your first post. You will never know [maybe] how helpful you have been. I'm gonna vote for you for President! Thanks again, Norm
  5. rossno

    I want a better memcpy() function.

    Hi Globos, I got this working right for me now. Here is the source: //*** src: boo.cpp #include <stdlib.h> #include <string.h> #include <iostream> #include <typeinfo> using namespace std; // ---------------- *** A generic memcpy: template<class G> G * gen_memcpy (G * dst, char * src) {...
  6. rossno

    I want a better memcpy() function.

    Hi Globos, The first test that I did was to comment out the s1.c[4]='0'; statement. The program is reading from a flat file directly into a struct that matches the data EXACTLY. There is no notion of null termination. The program only moves n number of characters from input structs to...
  7. rossno

    I want a better memcpy() function.

    OK ... I notice that you null terminated s1.c I don't have that luxary. I need the generic memcpy to be able to determine the length by somehow getting THE DECALRED LENGTH of s1.c which is 5 in this example.
  8. rossno

    I want a better memcpy() function.

    Hey. Thanks Globos, Geeee, I never would have thought of that!! I ran your sample. I ran just fine. Now I will massage it, [lol], to wotrk in my app. Thanks, thanks, thanks again, Norm
  9. rossno

    IEXPLORE RUNTIME ERROR!

    Hey, I just found this thru google.com http://support.microsoft.com/?id=kb;;Q307817 You might find other solutions thru google too. Norm
  10. rossno

    IEXPLORE RUNTIME ERROR!

    Does seem odd. Have you checked your machine for viruses?
  11. rossno

    I want a better memcpy() function.

    Hi C++ Pros, I have a lecacy C program that has been converted to C++, but is really still C. The program reads column delimited data into structures. The structures are designed to receive the data EXACTLY as mapped for each data element. To read each data element from the structures...
  12. rossno

    Accessing 2 tables from the database and outputting in HTML table

    Hi again, In order to show the table as the results of the SQLcmd string, just pass the string like: ... <% showTable SQLcmd %> Note that the showTable subroutine will accept any reasonable SQL command and try to build a HTML table by using the result set. Pretty nifty huh!! As for the SQL...
  13. rossno

    Accessing 2 tables from the database and outputting in HTML table

    Hi, Does this help? Your SQL might look something like: select Organization Name, Address, count(Category) from Organization O , Rooms R where O.Org_Id = R.Organization_Idi and R.Availability = 'yes' group by R.Category Then you can pass the select statement to a subroutine that...
  14. rossno

    ASP Using JavaScript

    Hi Dri..., Go to www.google.com and search on &quot;JavaScript Tutorial&quot; Also, Danny Goodman is the guru: www.dannyg.com Also www.gamelan.com ... Good luck, Norm
  15. rossno

    HI, I have NOT been able to get

    Yup, that worked. I was trying to be lazy by not specifying the table column names, but that doesn't work in ACCESS when using autonumber feature. I tried to keep my original post to a braindead example. The real ASP insert statement looks more like: SQLcmd = &quot; INSERT INTO RESERVATION...

Part and Inventory Search

Back
Top