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: *

  1. Bloosy

    Can't set the size of the JTextfield. Need help

    I want to make a panel which shows four quarter final football matches, so that user can input result for each match. As I haven't got time for fancy design, I've decided to lay out text fields vertically, using Box layout. So, for one match I need two fields with 40 columns for team name (which...
  2. Bloosy

    How to pass an array of objects as argument

    Yes, when I call function without [], it works! Now I am sure I had tried it before, (cause I tried every combination, even the sensless ones :)). The vector also works. Many thanks
  3. Bloosy

    How to pass an array of objects as argument

    Almost there. The only error is in line cout << it->getName() << endl; Wholesale.cpp(162) : error C2227: left of '->getName' must point to class/struct/union I tried with it.getName() but with same result
  4. Bloosy

    How to pass an array of objects as argument

    Thank you very much, I'm gonna try that
  5. Bloosy

    How to pass an array of objects as argument

    I have changed my array declaration into std::vector<Supplier*> suppliers; and put a definition as you sad, but I got 27 compile errors, the first being: error C2039: 'vector' : is not a member of 'std' and also the last two: Wholesale.cpp(148) : error C2143: syntax error : missing ';' before...
  6. Bloosy

    How to pass an array of objects as argument

    I've got a class Supplier and in main program I have declared an array: Supplier* suppliers[10]; then I filled it with ten objects. Now I need to call a supMask() function from the other file, mask.cpp, where I defined it like this: void supMask(Supplier* suppliers[]) { for(int i=0...
  7. Bloosy

    How to input from file to two-dim. array

    Thank you for qick response. No, we haven't learned new delete either. But this is how I think: every char pointer we can assign a string, like this char *string2 = "Hello"; so because I declared an array of char pointers, I should be able to assign a string to each, ie suppliers[0][0]...
  8. Bloosy

    How to input from file to two-dim. array

    Yes but we haven't learnd vectors yet. I have seen the example in two different books for this thing: infile>>string1>>string2>>string3... and it would put words from file separated by space respectively into strings. In my case instead of strings, I have...
  9. Bloosy

    How to input from file to two-dim. array

    Hi everybody. I want to put 4 strings from a file into a two-dimensional array. This is how I declared it: char* suppliers[10][4]; I intend to have a file wich stores 10 suppliers, all having 4 attributes: Name, Address, Contact and Telefone. I have edited the file suppliers.txt, each...
  10. Bloosy

    Mad Mouse Disease.

    I have the same problem and can't find the solution, and this is the only topic about it I have found (the problem seems to be rare). 10 months ago, a friend of mine, who had just bought the laptop had the problem with the mouse. The pointer would after some time start straying aside, to the...
  11. Bloosy

    DAO 360.dll dependency information

    I have finished a vb6 application and when I try to make setup with P&D wizard, the following happens I choose Standard Setup Package as Package Type. Then after I choose the folder where the package will be assembled I got the list whith files for which the dependency info couldn't be found...
  12. Bloosy

    dao360.dll dependency information

    Well, I installed SP5, succesfuly, but nothing's changed. Any other possible solutions?
  13. Bloosy

    dao360.dll dependency information

    I have finished a vb6 application and when I try to make setup with P&D wizard, the following happens I choose Standard Setup Package as Package Type. Then after I choose the folder where the package will be assembled I got the list whith files for which the dependency info couldn't be found...
  14. Bloosy

    Table name stored in variable and SELECT statement

    Thank you. The _ is from books, meaning that the next line is the same line in your code. Not in right place here
  15. Bloosy

    Table name stored in variable and SELECT statement

    Hi everybody I have a table name stored in a variable. Now is there any way that I can use that variable in SELECT statement. Example: Dim rs As Recordset Dim whichmenu As string whichmenu = &quot;tablename&quot; . . rsname = &quot;SELECT * FROM whichmenu WHERE field1 ='&quot; &_ something &...

Part and Inventory Search

Back
Top