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 wOOdy-Soft 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 LuckyStarr

  1. LuckyStarr

    Compile Error: Functions cannot return arrays or functions

    Hi All, I'm a C++ newbie. I'm having a problem compiling the following code: <code> typedef char Message[20]; class StaticHelloWorld{ public: static Message hello; static void setMessage(Message message){ strcpy(hello,message); return; } static Message getMessage(){ return hello...
  2. LuckyStarr

    windows OS user name

    You can try to retrieve the user's account name: System.getProperty("user.name"); --- There is no Knowledge that is not power ---
  3. LuckyStarr

    Version control problem

    Thank you guys! I think that's what I was looking for. I will study this pattern and try to organize this mess. --- There is no Knowledge that is not power ---
  4. LuckyStarr

    Version control problem

    Hi, I have a system written in Java that shares the same code for three different versions. The version logic is made using IFs, like the example: if(currentRelease == ManagedProducts.SW_540){ ... } else if(currentRelease == ManagedProducts.SW_530){ ... } else if(currentRelease ==...
  5. LuckyStarr

    Static Variables/Methods and Threads

    LukeJW, Yes, static variables can be used as a communicaion between different threads, but only within the same application. To communicate between separate applications you can use RMI (but it's not usual to do this in the same machine), or you can use sockets to connect the to applications...
  6. LuckyStarr

    Does the switch statement accepts a byte to evaluate?

    I will take this as a "Yes, the switch can evaluate a byte". Thanks --- There is no Knowledge that is not power ---
  7. LuckyStarr

    Does the switch statement accepts a byte to evaluate?

    Hi all, I'm getting a very strange exception in my code and I started suspecting about a switch statement. I noticed that it evaluates a byte, but I've never seen a code like this, I learned that the switch only evaluates integer expressions. Even the java tutorial doesn't mention anything...
  8. LuckyStarr

    InstallAnyWhere newer version bug

    Hi, I have a java application which its installer is generated using InstallAnyWhere. I always used the InstallAnyWhere v5.5 and everything was fine. But when I updated my InstallAnyWhere to v6.0, the java application stopped working properly! The java code is the same; the only difference is...
  9. LuckyStarr

    RMI: weird conection problem using a single computer

    That's it. Thanks very much sedj. You've helped me a lot! &quot;There is no Knowledge that is not power&quot;
  10. LuckyStarr

    RMI: weird conection problem using a single computer

    Hello sedj, I was not shouting. I only wanted to emphasize the word TEST, just to let you know that I was not playing with the cable to see if some error happens! :-) Nothing personal buddy. That's Ok, and I thank you for your help. What I really need to know is: 1. An RMI connection will...
  11. LuckyStarr

    RMI: weird conection problem using a single computer

    Unplugging the network cable is a TEST. I'm trying to test what would happen if the entire network stops working. &quot;There is no Knowledge that is not power&quot;
  12. LuckyStarr

    RMI: weird conection problem using a single computer

    Hi All, I have a RMI server and client running in the same machine. They can connect normally, just using the 'localhost' address as the RMI address for retrieving the remote objects. The problem occurs when the network goes down (more specifically, when I unplug the ethernet cable from the...
  13. LuckyStarr

    JTextField: Keyboard with different language problem

    Hi all, I have a JTextField that forbids, for some reason, the entering of special characters like '@', '[' or ']' when using a german keybord. Other kinds of keyboard (like the american) work well. The german keyboard has its keyboard layout set for German, input locale German (or English, it...
  14. LuckyStarr

    JBuilder X Foundation: differences between Enteprise and Developer

    Hi, I'm trying to use the JBuilder X Foundation because it is free. I loaded my code, it seems it works just fine. It doesn't have the import option, but anyway I could read my existing project. Will I have any surprise in the future, like some kind of message refusing to do something...
  15. LuckyStarr

    Writing in files with VB: I Don't wan't &quot;^M&quot; written

    Thanks guys, both the binary write solution and the &quot;Print #relat_file, unix_fct_id; vbLf;&quot; solution worked! Thanks a lot.

Part and Inventory Search

Back
Top