6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: A stable free IDE
[Re: Dark_samurai]
#202712
04/16/08 16:26
04/16/08 16:26
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
You should be able to create a Console Application (Win32) and to change the output type to a dll (Library) in the settings of the project. You should get the WinSDK though as it comes with a DLL template that gives you a better start than the Console Application template and it comes with all the libraries and headers you will need.
Your friendly mod is at your service.
|
|
|
Re: A stable free IDE
[Re: MichaelGale]
#202714
04/16/08 16:30
04/16/08 16:30
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ok now I get it! Thanks to all of you for your help!
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: A stable free IDE
[Re: Dark_samurai]
#202727
04/16/08 17:16
04/16/08 17:16
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Now I have the problem that I'm too stupid to get the sampledll working (with VC). I've linked the adll.lib and copied all files (adll.h, afuncs.h, atypes.h, avars.h, adll.lib, SampleDll.cpp) into my folder. But when I compile it it says: "fatal error C1010: Unerwartetes Dateiende während der Suche nach dem vorkompilierten Header. Haben Sie möglicherweise vergessen, im Quellcode "#include "stdafx.h"" einzufügen?" In English: "fatal error C1010: Do you forgot to include "#include "stdafx.h"" into the sourcecode?"
-> I wrote "#include "stdafx.h"" and another error appeared: "Datei (vorkompilierte Headerdatei) kann nicht geöffnet werden: "Debug\test.pch": No such file or directory" In Enlish: "File (precompiled headerfile) can't get opened: "Debug\test.pch": No such file or directory"
What am I doing wrong? Has anyone a running example?
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: A stable free IDE
[Re: Dark_samurai]
#202738
04/16/08 17:56
04/16/08 17:56
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
when im creating a dll i follow this steps, and dont get any errors:
open vc++ 2008 xpress-> click project(next to create)->select win32 from left->select win32 project->Enter a name->ok->click next->chose dll->Click finish
then add other headers/spurces to the project
3333333333
|
|
|
Re: A stable free IDE
[Re: Quad]
#202743
04/16/08 18:08
04/16/08 18:08
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ok, I did it like you did it. What headers do you include and how? Do you only write the includes into the source and copy the files into your folder or do you also include them into your project (left side, project manager)? And how do you include the adll.lib? Is it correct if I do it like this: [project]->[settings]->[Linker]->[Input]->and then into the first line: "adll.lib"? And of course I copied the adll.lib into the folder.
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: A stable free IDE
[Re: Altimeter]
#202875
04/17/08 16:59
04/17/08 16:59
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Thanks for this detailed description, now this thing (compiling a gsdll) works.
I started now to recompile my enet.dll with VC++, but it seems like I don't include the enet things correct. I did it like they said on the webside (enet.bespin.org/Installation.html): I opened the enet project and compiled it -> I got a enet.lib file. I copied this file into the lib folder of VC++, linked it in my dll-project and also linked the ws2_32.lib. But now I have the problem, that when I call one of the enet functions (like enet_initialize) i get an error: "enet_initialize can't found". Now my question: If I include a static libary, do I also need to include the headers which I compiled into the lib in my dll-project? Does anybody have experiance with using enet in VC++? And the gag is, that with Dev-C++ it worked after doing that (and some help of nfs42). But in general I did it like that, but in VC++ it don't works like this...
Thanks!
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
Re: A stable free IDE
[Re: TWO]
#202948
04/18/08 11:24
04/18/08 11:24
|
Joined: Jul 2005
Posts: 1,930 Austria
Dark_samurai
OP
Serious User
|
OP
Serious User
Joined: Jul 2005
Posts: 1,930
Austria
|
Ok i included the enet.h, but now I get a lot of new errors: "enet.lib(win32.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__timeBeginPeriod@4" in Funktion "_enet_initialize"." English: "enet.lib(win32.obj): error LNK2019: reference to a not decomposed extern symbol "__imp__timeBeginPeriod@4" in function "_enet_initialize"."
Maybe I did something wrong at compiling the enet.lib?
Dark_Samurai
ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)! get free version
|
|
|
|