Jump to content


Photo

A quick DLL question *solved*


  • Please log in to reply
3 replies to this topic

#1 Sven

Sven

    GMC Member

  • GMC Member
  • 621 posts
  • Version:GM8.1

Posted 15 June 2011 - 12:10 PM

Hi Everyone,

Just a quick Q. When passing a String to a C++ DLL does Game Maker pass it as a string variable, LPSTR or as a char * variable.

Thanks,

Sven :)

Edited by Sven, 16 June 2011 - 02:59 AM.

  • 0

#2 ani12321

ani12321

    GMC Member

  • GMC Member
  • 97 posts
  • Version:GM:Studio

Posted 15 June 2011 - 01:00 PM

As a char* if you use text in that variable or as a double if you use numbers
  • 0

#3 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14446 posts
  • Version:GM:Studio

Posted 15 June 2011 - 03:17 PM

LPSTR is a char * in 32 bits windows

Check my dll tutorial, it covers this somewhat (tools page)
  • 0

#4 Sven

Sven

    GMC Member

  • GMC Member
  • 621 posts
  • Version:GM8.1

Posted 16 June 2011 - 02:59 AM

Thanks,

The tutorial helped me get over a few of the steps that I was missing :)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users