Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Mar 2011
Offline Last Active Aug 29 2012 12:44 PM

Topics I've Started

Lib file "unrecognised or unsupported binary format"

29 August 2012 - 12:46 PM

What does it mean when a lib file is in an "unrecognised or unsupported binary format"? I'm trying to create a lib file and for my little engine for my project and this error is halting it back.

Plus how easy is it to create a DLL in GCC, then link the DLL via a static library? Any good tutorial/documentation on that would be appreciated if I can't get visual studio to work. (Plus I'm having issues with the RC, processional edition for students which isn't supporting c++ projects at all.)

Additional notes:
I'm learning from the "3D Game Engine Programming" book by Stephan Zerbst, his examples are prior 2005 thus Dx9 or lower. I think it might be an issue but to say that a lib file is unsupported seems strange when its being generated by VS2010 it self. I up converted the project and sorted various dependencies aside from the current odd phenomena which I can't understand.

Using a dynamic link library

21 June 2012 - 10:48 AM

I've tried to run this bit of code and it doesn't work, I had added the directory where my dll was, but it still doesn't recognises it. What am I doing wrong? What am I doing wrong with my dll linking in visual studio 2010 (full edition).

//This is windows
#define WINDOWS

#include <iostream>

#ifdef WINDOWS
#include <windows.h>

//Dynamic link libraries
#ifdef WINDOWS
typedef int (__cdecl *MYPROC)(LPWSTR); 
int main( void ) 
//Dynamic link libraries
#ifdef WINDOWS

    HINSTANCE hinstLib; 
    MYPROC ProcAdd; 
    BOOL fFreeResult, fRunTimeLinkSuccess = FALSE; 

    // Get a handle to the DLL module.

    hinstLib = LoadLibrary(TEXT("BlessfuncDLL.dll")); 

    // If the handle is valid, try to get the function address.

    if (hinstLib != NULL) 
        ProcAdd = (MYPROC) GetProcAddress(hinstLib, "BlessfuncDLL"); 

        // If the function address is valid, call the function.

        if (NULL != ProcAdd) 
            fRunTimeLinkSuccess = TRUE;
            (ProcAdd) (L"Message sent to the DLL function\n"); 
//Using code from DLL
using namespace std;
double a = 7.4;
    int b = 99;

    cout << "a + b = " <<
        MathFuncs::MyMathFuncs::Add(a, b) << endl;
    cout << "a - b = " <<
        MathFuncs::MyMathFuncs::Subtract(a, b) << endl;
    cout << "a * b = " <<
        MathFuncs::MyMathFuncs::Multiply(a, b) << endl;
    cout << "a / b = " <<
        MathFuncs::MyMathFuncs::Divide(a, b) << endl;


// Free the DLL module.
        fFreeResult = FreeLibrary(hinstLib);  

    // If unable to call the DLL function, use an alternative.
    if (! fRunTimeLinkSuccess) 
        printf("Message printed from executable\n"); 
    return 0;


1>------ Build started: Project: King_DLLL, Configuration: Debug Win32 ------
1>Build started 20/06/2012 22:57:31.
1> Creating "Debug\King_DLLL.unsuccessfulbuild" because "AlwaysCreate" was specified.
1> main.cpp
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(48): error C2653: 'MathFuncs' : is not a class or namespace name
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(48): error C3861: 'Add': identifier not found
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(50): error C2653: 'MathFuncs' : is not a class or namespace name
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(50): error C3861: 'Subtract': identifier not found
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(52): error C2653: 'MathFuncs' : is not a class or namespace name
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(52): error C3861: 'Multiply': identifier not found
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(54): error C2653: 'MathFuncs' : is not a class or namespace name
1>c:\users\portsmouthuni\documents\visual studio 2010\projects\king_dlll\king_dlll\main.cpp(54): error C3861: 'Divide': identifier not found
1>Build FAILED.
1>Time Elapsed 00:00:01.76
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ===[/sub]=======

Finding RtNEAT tutorial/example code

30 April 2012 - 05:49 AM

Real time Neuroevolution of augmenting topologies (RtNEAT)

Where can I find a simple example of RtNEAT algorithms being applied?

Additional Information:
I'm interested in researching real time genetic algorithms and RtNeat has seemed to be the best one out there (at least the most promising) since its has been applied to a real game. Anyways so far, I've been doing some research merely looking at research papers, which has been all and good but understanding exactly how the algorithm is applied has proved to be a challenge.

Once I practically understand it, looking at its advantages and disadvantages, I was going to create to create a version of my own and then use it for my dissertation. Anyway from my final year research I wanted to find out why it had been so difficult/slow to get real time genetic algorithms working in games.

NEAT algorithms, why's topic on the low?

28 March 2012 - 11:42 AM

After being introduced to nero I've began to wonder on about research into the field and so far I'm just wondering whether there is any other notable example. Are they available? What are the best prominent ones that any of you guys know off?

Genetic Programming in Games

11 March 2012 - 05:00 AM

How is genetic programming being applied in modern games? I feel its need for bots, because they are just so damn stupid and having being an avid shooter fan, I have now lost faith through being desensitised by the same type of AI carried over from the last generation (the bots don't appear to be smarter). Which games are currently implementing this if anyway? (I feel like this is the graphics craze generation and it hopefully must be the last since it has ruined games for me).

Anyway I'm currently looking into researching genetic algorithms for my final year project at uni, so any general advice in this area?
(This is largely related to cybernetic(systems with react to difference within an environment), which had in another post here)