Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 664 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
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
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

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 Offline OP
Serious User
Dark_samurai  Offline 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 Offline OP
Serious User
Dark_samurai  Offline 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 Offline
Senior Expert
Quad  Offline
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 Offline OP
Serious User
Dark_samurai  Offline 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: Dark_samurai] #202746
04/16/08 19:16
04/16/08 19:16
Joined: Mar 2007
Posts: 75
Hamburg, Ger
Altimeter Offline
Junior Member
Altimeter  Offline
Junior Member

Joined: Mar 2007
Posts: 75
Hamburg, Ger
You should set the project settings to not use precompiled headers.

The following settings work fine for me, but you might want to play around with some of these.

Projekt-> ...Eigenschaften-> Konfigurationseigenschaften
1.)Allgemein->
Konfigurationstyp: Dynamische Bibliothek(.dll)
Windows Standardbibliotheken verwenden
ATL wird nicht verwendet
Multi-Byte Zeichensatz verwenden
Keine Common Language Runtime Unterstützung
Keine komplette Optimierung
2.) Debugging->
Befehl: C:\Programme\GStudio707\acknex.exe or wherever your acknex is located
Befehlsargumente: "C:\ ...\mySuperC-LiteProgram.c"
(these two lines will launch your C-Lite Program in the IDE as debugger (STRG F5))
3.)C++
Allgemein
-Zusätzliche Includeverweise: Feld bleibt leer
#using Verweise: leer
Debuginformationsformat: Programmdatenbank (/Zi)
Startbanner unterdrücken : Ja
Warnstufe Level3
Nach 64Bit Portabilitätsproblemen suchen Nein
Warnungen als Fehler: Nein
Unicode: Ja
Codegenerierung
-Stringpooling: Nein
Minimale Neuerstellung Nein
C++ Ausnahmen:Ja
Überprüfen von kleinen Typen: Ja
Vollständige Laufzeitüberprüfung: Standard
Laufzeitbibliothek: Multithreaded-Debug-DLL(/MDd)
Vorkompilierte Header verwenden: NEIN
4.)Linker
Allgemein:
Ausgabedatei: $(OutDir)/mySuperDLL.dll
Status anzeigen Nicht festgelegt
Version: bleibt leer
Incrementelles Verknüpfen: Nein
Startbanner unterdrücken: Ja
Importbibliothek ignorieren: Nein
Ausgabe registrieren: Nein
Umleitung pro Benutzer : Nein
Zusätzliche Bibliotheksverzeichnisse: adll.lib
Bibliotheksabhängigkeiten verknüpfen: Ja
Bibliotheksabhängigkeitseingaben verw. : Nein
Unicode Antwortdateien: Ja

Eingabe:
Zusätzliche Abhängigkeiten: adll.lib
Standardbibliotheken ignorieren: Nein
Bibliothek ignorieren: libc.lib, LIBCMT

Now try to compile the sample.cpp file. You should find it in the debug-subfolder.
Copy it into your acknex plugin directory.

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 Offline OP
Serious User
Dark_samurai  Offline 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: Dark_samurai] #202944
04/18/08 09:47
04/18/08 09:47
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Sure, you have to include the headers (Actually in most cases only the project-name.h, e.g. enet.h).

Last edited by TWO; 04/18/08 09:48.
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 Offline OP
Serious User
Dark_samurai  Offline 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
Re: A stable free IDE [Re: Dark_samurai] #202951
04/18/08 11:51
04/18/08 11:51
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline

Serious User
TWO  Offline

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Seems that you forgot to include winmm.lib

Page 2 of 4 1 2 3 4

Moderated by  TWO 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1