Problem importing a class from a dll

I'm currently working on a dll, and when I tried to test part of it, I got a compiler error I just don't understand.
I get the error:
'expected `;' before '(' token'
On line 28 (bool load_bmp(string sFileName);) of this file:
http://xsprite.sourceforge.net/dll/bitmap/files/bitmap_h.html

Any help as to what is going on is much appreciated. =)

~Joey~

Comments

  • : I'm currently working on a dll, and when I tried to test part of it, I got a compiler error I just don't understand.
    : I get the error:
    : 'expected `;' before '(' token'
    : On line 28 (bool load_bmp(string sFileName);) of this file:
    : http://xsprite.sourceforge.net/dll/bitmap/files/bitmap_h.html
    :
    : Any help as to what is going on is much appreciated. =)
    :
    : ~Joey~
    :
    You probably need to #include and use std::string instead or just string.
  • [b][red]This message was edited by GameFreak7744 at 2006-10-14 13:30:7[/red][/b][hr]
    : : I'm currently working on a dll, and when I tried to test part of it, I got a compiler error I just don't understand.
    : : I get the error:
    : : 'expected `;' before '(' token'
    : : On line 28 (bool load_bmp(string sFileName);) of this file:
    : : http://xsprite.sourceforge.net/dll/bitmap/files/bitmap_h.html
    : :
    : : Any help as to what is going on is much appreciated. =)
    : :
    : : ~Joey~
    : :
    : You probably need to #include and use std::string instead or just string.
    :

    The export never complained when it was compiled, which is odd, but now I've made sure that I've included it where it needs to be. Anyway, using std::string is all that seems to work...
    Thanks.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories