Menu

Problem nOOb

Help
Tomislav
2014-04-14
2014-08-20
  • Tomislav

    Tomislav - 2014-04-14

    Hello everybody, I'm new to programming and have to make one program that connects to PLC and write some data in C++ so I have some questions...

    first question is why those applications in "win" folder immediately terminate themselves? Is there any way to read what is written in console window?

    second question is a little bit tricky...
    I'm trying to run testISO_TCP, but I get a lot of errors (9) like
    error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__daveSetDebug@4" in Funktion "_main".
    error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__daveNewInterface@24" in Funktion "_main".
    etc

    I'm using VS2012.

    I'm a little bit new to programming and I really hate those linker issues because they are always bugging me and waste more time than overall programming :( :(

    Hope somebody can help!
    Cheers!

     
    • David

      David - 2014-07-15

      I merely wanted to echo your frustration with the immediately terminating windows (first question). I know its probably a newbie hurdle that is obvious to everyone more clever than a sheep, but I'm stuck and sad.

       
      • David

        David - 2014-08-20

        I figured it out for all fellow newbies.

        Run the test programs in Command Prompt, rather than from directly in Windows Explorer. Add arguments to make the programs do stuff! (e.g. "testISO_TCP -w 192.168.0.1")

         
      • David

        David - 2014-08-20
         

        Last edit: David 2014-08-20
    • Anonymous

      Anonymous - 2019-04-16
      Post awaiting moderation.
  • Tomislav

    Tomislav - 2014-04-14

    ok, I solved this second problem by linking "libnodave.lib" in Linker and it looks OK, I'll test it tomorrow how it works with turned on PLC :)

     

Anonymous
Anonymous

Add attachments
Cancel