Page 2 of 6 FirstFirst 1234 ... LastLast
Results 16 to 30 of 77

Thread: VC++ Express?

  1. #16
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,809
    This is what I get as an error
    ------ Build started: Project: PLUG01, Configuration: Debug Win32 ------
    Compiling...
    hello.cpp
    f:\colkaicode\msvce_projects\plug01\plug01\hello.c pp(121) : error C2857: '#include' statement specified with the /Ycstdafx.h command-line option was not found in the source file
    Build log was saved at "file://f:\ColKaiCode\MSVCE_PROJECTS\PLUG01\PLUG01\Debug\B uildLog.htm"
    PLUG01 - 1 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    The SDK is the one linked to: Windows® Server 2003 SP1 Platform SDK

    What's odd is, the first time I compiled it, I'm sure it came up with 5 errors
    Too old to die young.

  2. #17
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    I actually meant the LW SDK... sorry.

    But we're getting there. In your Project Settings -> C/C++ -> Precompiled Headers : Set "Create/Use Precompiled Header" to "Not using..."

    Then try again.

    Cheers,
    Mike

  3. #18
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,809
    Ahh, LW SDK is the one from the LW8.5 install - at least, it's the LW8 SDK for sure

    Now get:
    Compiling...
    hello.cpp
    Compiling manifest to resources...
    Linking...
    servdesc.obj : error LNK2005: _ServerDesc already defined in hello.obj
    servdesc.obj : error LNK2001: unresolved external symbol _Activate
    servdesc.obj : error LNK2001: unresolved external symbol _ServerName
    servdesc.obj : error LNK2001: unresolved external symbol _ServerClass
    F:\ColKaiCode\MSVCE_PROJECTS\PLUG01\Debug\PLUG01.d ll : fatal error LNK1120: 3 unresolved externals
    Build log was saved at "file://f:\ColKaiCode\MSVCE_PROJECTS\PLUG01\PLUG01\Debug\B uildLog.htm"
    PLUG01 - 5 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I've not got a server.lib file, I'm just including the source files - is that relevant, it sorta looks like it may be?
    Too old to die young.

  4. #19
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by colkai
    Ahh, LW SDK is the one from the LW8.5 install - at least, it's the LW8 SDK for sure

    Now get:
    Now we're progressing (btw, you can use code instead of quote... and I'll be able to quote your code ! ... ? *puzzled* ).

    Remove serverdesc.c from your project, try again.

    edit: I don't use the server.lib either. It should work o.k. without it.

    Cheers,
    mike

  5. #20
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    You should also add the serv.def to your source files to make sure that _mod_descrip will get exported.

    Cheers,
    Mike

  6. #21
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,809
    Getting closer for sure, now there are no errors, but I don't end up with a DLL either
    Code:
    Compiling...
    servmain.c
    shutdown.c
    startup.c
    username.c
    Generating Code...
    Compiling...
    hello.cpp
    Compiling manifest to resources...
    Linking...
    LINK : F:\ColKaiCode\MSVCE_PROJECTS\PLUG01\Debug\PLUG01.dll not found or not built by the last incremental link; performing full link
    Embedding manifest...
    ..But it doesn't seem to do anything, this is so close I know it!
    Here's the full debug text..
    Too old to die young.

  7. #22
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Hey Colkai and Kyla, This is cool you 'finally' ventured into plugin programming. Sorry your having problems so soon. Can you zip up what you have an Email it to me? I'll be more then happy to look at it. Also let me know the directory setup you have for you library and include directories so I can recreate them exactly on my side.
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  8. #23
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    We got the plugin to compile, and the last culprit seems to be

    Project Properties -> C/C++ -> Code Generation -> Turn off Basic Runtime checks to "Default"

    I got it to work, and I think Colkai will as well...

    Cheers,
    Mike

  9. #24
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,809
    Hehe, famous last words

    Well, here are my source files and such.
    I'll be winging my way south in a bit so please don't bust a gut over this - I really appreciate all the effort so far in helping a floundering SDK virgin.

    I'm only back on Monday so please don't think I'm ignoring you if you post meantimes.
    Last edited by colkai; 04-07-2006 at 09:19 AM.
    Too old to die young.

  10. #25
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by colkai
    Hehe, famous last words :P
    welcome to the wonderful world of plugin programming

    Cheers,
    Mike

  11. #26
    Wudai Ninja Waver aurora's Avatar
    Join Date
    Feb 2003
    Location
    Colorado
    Posts
    1,972
    Well then Bravo, and sorry I was late to the game Colkai.
    Hehe, Mikes interpretation of SDK programming is only partly true. You seldom get the chance to shack it all off
    Tim - aurora - Dunn
    WorkStation: AMD64 2x2.8 Ghz / 8gb RAM / Win7-64bit / NVidia GTX 560 Ti

    Laptop: Intel i7 8x2Ghz / 16 Gb Ram / WIn7-64bit / GeForce 540M (8.17.12.6780)

  12. #27
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by aurora
    Hehe, Mikes interpretation of SDK programming is only partly true. You seldom get the chance to shack it all off
    That is true... but you get used to the pain after some time

    Cheers,
    Mike

  13. #28
    Aloha colkai,

    Why don't you use the project files that come with the SDK.
    You only have to change the plugin name (as I recall) and probably the directory to place the plugin. And that's all within the VC++ IDE properties panel. The SDK vcproj files work (almost) perfectly with VC++ 2005.

    I was up and running within hours.

    Learning the nuances of the SDK is another story for me


    (oh Aurora - I got the non-nodal panel working - now I'm working on TREE_CTL)

    Somewhere, over the rainbow....

  14. #29
    How Old? Really? Aww Heck colkai's Avatar
    Join Date
    Feb 2003
    Location
    Staffordshire
    Posts
    7,809
    Ok, colour me stupid, I didn't even realise there were any project files.
    I'm "back" for a couple of days, before off for my Easter work-break.

    OT: Tim, you should of seen the wild Peregrine we had in - awesome she was, gonna upload a pic to send you soon.
    Too old to die young.

  15. #30
    obfuscated SDK hacker Lightwolf's Avatar
    Join Date
    Feb 2003
    Location
    Stuttgart, Germany
    Posts
    13,613
    Quote Originally Posted by colkai
    Ok, colour me stupid, I didn't even realise there were any project files.
    Well, I saw them but forgot about them instantly again. Especially since by now I have my own way of setting up projects (for various reasons).
    Nice to see them in the SDK now though!
    Cheers,
    Mike

Page 2 of 6 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

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