Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » C++ failing
C++ failing [message #275241] Tue, 24 July 2007 07:48 Go to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
I'm trying to make a plugin for SSGM. I extracted the plugin example to my desktop. I'm trying to do chat hook stuff. So I open up Visual c++ studio 2005 and I IMMEDIATELY build the plugin. And I ALWAYS GET AN ERROR! IDK whats up. PLEASE help.
Quote:

1>------ Build started: Project: Plugin, Configuration: Release Win32 ------
1>Compiling...
1>cl : Command line warning D9040 : ignoring option '/analyze'; Code Analysis warnings are not available in this edition of the compiler
1>scripts.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_weap.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_threading.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_tdb.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_string.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_script.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_pt.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_player.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_phys.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_obj2.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_obj.cpp
1>c:\documents and settings\My_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_net.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_math.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_io.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_game.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_dmg.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_diagnostics.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_def.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_common.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_bhs.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Compiling...
1>dllmain.cpp
1>.\dllmain.cpp(15) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>plugin.cpp
1>.\plugin.cpp(24) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>gmsettingsclass.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>gmmain.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>gmfunc.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>gmcommandclass.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>engine_gm.cpp
1>c:\documents and settings\my_name\desktop\plugin example source\plugin example source\engine_common.h(17) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>BSCMAKE: error BK1506 : cannot open file '.\tmp\scripts\engine_gm.sbr': No such file or directory
1>Build log was saved at "file://c:\Documents and Settings\my_name\Desktop\Plugin Example Source\Plugin Example Source\tmp\scripts\BuildLog.htm"
1>Plugin - 28 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Tue, 24 July 2007 07:52]

Report message to a moderator

Re: C++ failing [message #275242 is a reply to message #275241] Tue, 24 July 2007 07:53 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
You need to install the windows platform SDK. It's included with the full edition of Visual Studio, but not the express edition.

This download should be all you need to install: Link It says server 03, but it's also for XP and other operating systems.

NB: To compile shaders source you will also need the DirectX SDK, search for it on the same website.


http://steamsignature.com/card/1/76561197975867233.png
Re: C++ failing [message #275244 is a reply to message #275242] Tue, 24 July 2007 08:13 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
I see like 50 differnet ones.. some are .cab and one is exe?

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275253 is a reply to message #275241] Tue, 24 July 2007 09:03 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Hmm, last time I downloaded it there was just an EXE installer... try looking for the web install version of the download instead.


EDIT: This one should just be an installer: http://www.microsoft.com/downloads/details.aspx?familyid=0BAF2B35-C656-4969-ACE8 -E4C0C0716ADB&displaylang=en

Pick the installer for your PC ( generally the PSDK-x86.exe one, unless you have 64 bit in which case you need i64 (intel 64) or amd64 (amd 64) )


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 24 July 2007 09:07]

Report message to a moderator

Re: C++ failing [message #275257 is a reply to message #275253] Tue, 24 July 2007 09:32 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
How do I know which one is best? LOL! I have an intel- it has a lil sticker on my computer that says "intel" Thumbs Up . So... Intel?

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275259 is a reply to message #275241] Tue, 24 July 2007 09:35 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
No. If its not a 64 bit intel then you need the x86 package. x86 is for 32-bit intels and amd's, which most computers have.

http://steamsignature.com/card/1/76561197975867233.png
Re: C++ failing [message #275261 is a reply to message #275241] Tue, 24 July 2007 09:37 Go to previous messageGo to next message
AoBfrost is currently offline  AoBfrost
Messages: 1248
Registered: March 2007
Karma: 0
General (1 Star)
I had same issue, then you need to open files and edit lines so they work properely with the SDK, still dint work for me after reinstalling, then redoing it several times...I gave up.

http://i4.photobucket.com/albums/y133/FMAROCKS/godotsig.gif
Scrin wrote on Fri, 05 October 2007 12:19

''whoa im the photoshop''

KANE LIVES!!!
Re: C++ failing [message #275295 is a reply to message #275241] Tue, 24 July 2007 11:51 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
lol where you download the express compilers from it tells you specific instructions on how to get it to work.. pretty easy if you read what you download and how to use it. ^^
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: C++ failing [message #275298 is a reply to message #275295] Tue, 24 July 2007 11:57 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Tunaman wrote on Tue, 24 July 2007 13:51

lol where you download the express compilers from it tells you specific instructions on how to get it to work.. pretty easy if you read what you download and how to use it. ^^
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

You gotta do ALL THAT! I downloaded both the directX SDK and the other SDK mention in the link up there. But it didn't say to type in a path like it said to do in the step by step tutorial?! Please... Bear with me.


http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Tue, 24 July 2007 11:59]

Report message to a moderator

Re: C++ failing [message #275302 is a reply to message #275241] Tue, 24 July 2007 12:07 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
I believe you have to add lines for the includes and libraries of the DirectX SDK as well, lemme see if I can find you a good place to give you instructions.

http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Tue, 24 July 2007 12:07]

Report message to a moderator

Re: C++ failing [message #275303 is a reply to message #275241] Tue, 24 July 2007 12:10 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
You don't need the DirectX SDK unless you're planning on programming with 3D technology. That link explains everything you need to do.

David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
Re: C++ failing [message #275312 is a reply to message #275302] Tue, 24 July 2007 12:33 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Tunaman wrote on Tue, 24 July 2007 14:07

I believe you have to add lines for the includes and libraries of the DirectX SDK as well, lemme see if I can find you a good place to give you instructions.

If not, will somebody care to give me their AIM or MSN so they can walk me through it. Much appreciated.


http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275314 is a reply to message #275303] Tue, 24 July 2007 12:39 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Dave S. Anderson wrote on Tue, 24 July 2007 14:10

You don't need the DirectX SDK unless you're planning on programming with 3D technology. That link explains everything you need to do.


AKA compiling shaders.dll Big Ups
Re: C++ failing [message #275348 is a reply to message #275314] Tue, 24 July 2007 17:26 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Can anyone give me a better explanation?

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275365 is a reply to message #275348] Tue, 24 July 2007 20:34 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Please? Blush

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275370 is a reply to message #275241] Tue, 24 July 2007 21:10 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
It's looking for a windows.h file and failing to find it when you compile. :/


I don't know why, though I haven't tried compiling my modified SSGM, yet. Razz

-MathK1LL
Re: C++ failing [message #275380 is a reply to message #275370] Tue, 24 July 2007 21:36 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
MathK1LL wrote on Wed, 25 July 2007 00:10

It's looking for a windows.h file and failing to find it when you compile. :/


I don't know why, though I haven't tried compiling my modified SSGM, yet. Razz

-MathK1LL

We already answered his question lol, he didn't set up the platform SDK correctly to work with his compiler.


http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Tue, 24 July 2007 21:36]

Report message to a moderator

Re: C++ failing [message #275385 is a reply to message #275241] Tue, 24 July 2007 21:45 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
1. Download and install PSDK-x86.exe from http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8 -E4C0C0716ADB&displaylang=en.

2. Download and install VS80sp1-KB926748-X86-INTL.exe from http://www.microsoft.com/downloads/details.aspx?FamilyID=7b0b0339-613a-46e6-ab4d -080d4d4a8c4e&DisplayLang=en.

3. Follow these instructions http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/.


You do not need to install the DirectX SDK to compile SSGM.


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: C++ failing [message #275418 is a reply to message #275314] Wed, 25 July 2007 02:30 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
Saberhawk wrote on Tue, 24 July 2007 13:39

Dave S. Anderson wrote on Tue, 24 July 2007 14:10

You don't need the DirectX SDK unless you're planning on programming with 3D technology. That link explains everything you need to do.


AKA compiling shaders.dll Big Ups


Tell Me I forgot about the shader libraries, anyhoot...


David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
Re: C++ failing [message #275431 is a reply to message #275241] Wed, 25 July 2007 05:36 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
Don't blame CPP for your very own failure.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: C++ failing [message #275438 is a reply to message #275431] Wed, 25 July 2007 07:46 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Thanks guys! I've done it all the way to step for, however I can't open up the Corewin_express.vspros file. How do I edit it?

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Wed, 25 July 2007 07:47]

Report message to a moderator

Re: C++ failing [message #275447 is a reply to message #275241] Wed, 25 July 2007 08:15 Go to previous messageGo to next message
Dave Anderson is currently offline  Dave Anderson
Messages: 1953
Registered: December 2004
Location: United States
Karma: 0
General (1 Star)
Notepad.

David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
Re: C++ failing [message #275448 is a reply to message #275447] Wed, 25 July 2007 08:42 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
I couldn't find // WIN_APP_LABEL.disabled = true; in appsettings.htm. I found the other three. This is in the 5th step by the way.

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost

[Updated on: Wed, 25 July 2007 08:46]

Report message to a moderator

Re: C++ failing [message #275455 is a reply to message #275448] Wed, 25 July 2007 10:53 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
Anyone know where it is?

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: C++ failing [message #275469 is a reply to message #275241] Wed, 25 July 2007 12:44 Go to previous messageGo to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
@ Sn1per74: Ctrl+G while you're viewing the AppSettings.htm and goto line 441.

As for me though, I think I botched up something when following that tutorial on MSDN's website...

It all goes fine until the end when I try to compile the source to SSCoOp, but at the end...it goes like the following >>
Compiling SSCoOp Source

dllmain.obj : error LNK2019: unresolved external symbol "int __cdecl __CxxSetUnhandledExceptionFilter(void)" (?__CxxSetUnhandledExceptionFilter@@YAHXZ) referenced in function _NotifyHookUnhandledExceptionFilter
scripts.dll : fatal error LNK1120: 1 unresolved externals



-MathK1LL

[Updated on: Wed, 25 July 2007 12:46]

Report message to a moderator

Previous Topic: 0 key taunt
Next Topic: .mix to .lvl
Goto Forum:
  


Current Time: Mon Oct 28 11:37:44 MST 2024

Total time taken to generate the page: 0.01339 seconds