CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 14 of 14
  1. #1
    Join Date
    Oct 2009
    Posts
    4

    Experienced Java coder now using Vis C++

    So now I know C i thought I would make all my java programs faster.
    But when I try to run them inside of C they dont seem to work.

    Please help!

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Experienced Java coder now using Vis C++

    You did something wring. Hope that helps.

  3. #3
    Join Date
    Oct 2009
    Posts
    4

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by Lindley View Post
    You did something wring. Hope that helps.
    What's 'wring'? Do I have to link with that or something?

  4. #4
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Experienced Java coder now using Vis C++

    A typo, actually.

    Seriously, how do you expect us to help you with absolutely no details. We aren't psychic.

  5. #5
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by biffta View Post
    What's 'wring'? Do I have to link with that or something?
    I guess Lindley meant "wrong", not "wring".

    Read your own question. Do you expect to get help by asking your question that way? You have to be specific as to what doesn't work, not just say "it doesn't work".

    Regards,

    Paul McKenzie

  6. #6
    Join Date
    Oct 2009
    Posts
    4

    Re: Experienced Java coder now using Vis C++

    I know my question was a little bit brief but I cannot give away my source code, it's too precious.
    I'm sure you are nice guys really but you might steal it and then I am losing money.
    I don't have a license for it yet but when I do it will probably be a very expensive one.

    Do you understand now? Please help.

  7. #7
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by biffta View Post
    I know my question was a little bit brief but I cannot give away my source code, it's too precious.
    I'm sure you are nice guys really but you might steal it and then I am losing money.
    I don't have a license for it yet but when I do it will probably be a very expensive one.

    Do you understand now? Please help.
    Your error is on line 36 of your main() function.

    Seriously, unless you're a troll, you need to tell us what exactly "does not work".

    If you called a mechanic on the phone and just told him "my car doesn't work", what would you expect the mechanic to do or say?

    Regards,

    Paul McKenzie

  8. #8
    Join Date
    Mar 2003
    Location
    India {Mumbai};
    Posts
    3,871

    Re: Experienced Java coder now using Vis C++

    I'm sure you are nice guys really but you might steal it and then I am losing money.
    A funny thread after a long time!
    My latest article: Explicating the new C++ standard (C++0x)

    Do rate the posts you find useful.

  9. #9
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Experienced Java coder now using Vis C++

    biffta, open other threads in this forum. Programmers post their code fragments and describe what exactly doesn't work. Of course, we are here to steal crappy code which is not working, but posting 1 of 10000 lines here is the price you need to pay.
    BTW, don't ask me what to do if your project contains 15000 lines. I don't know exactly. Maybe post 1.5 lines

  10. #10
    Join Date
    Feb 2002
    Posts
    4,640

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by biffta View Post
    So now I know C i thought I would make all my java programs faster.
    But when I try to run them inside of C they dont seem to work.

    Please help!
    Well, Java isn't C, so I wouldn't expect them to compile and work.

    Viggy

  11. #11
    Join Date
    Oct 2009
    Posts
    4

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by Ajay Vijay View Post
    A funny thread after a long time!
    Looks like the game's up, I was only pulling you legs! I hope no one will begrudge me for wasting too much of their time. Thanks for all the responses, I was astonished anyone even took the time to try and answer my initial Q. You really must be nice guys! ;-)

    P.S. I really am a Java dev who just installed Visual C++ this week!

  12. #12
    Join Date
    Apr 2005
    Posts
    107

    Re: Experienced Java coder now using Vis C++

    I just want to know how you are even attempting to "Run Java programs inside of C"...
    What, you dropped your Java code into an editor window and tried to build it?

  13. #13
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Experienced Java coder now using Vis C++

    Maybe running Java programs inside of C++ gives better results...

  14. #14
    Join Date
    Mar 2008
    Posts
    70

    Re: Experienced Java coder now using Vis C++

    Quote Originally Posted by rdrast View Post
    I just want to know how you are even attempting to "Run Java programs inside of C"...
    What, you dropped your Java code into an editor window and tried to build it?
    it seems to be he did that
    ok that's some differences between c++ and java

    java code
    Code:
    Person per=new Person();
    you can't write this in c++ you write it like this in c++
    Code:
    Person* per=new Person();
    here we use pointer
    and we must delete it like this
    Code:
    delete per;
    but in java we needn't to do this yourself

    java not c++
    there are alot of difference

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured