Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

need UNICODE strings passed to Dll


1 reply to this topic

PDRN

PDRN
  • Full Members
  • 22 posts

Posted 10 June 2002 - 18:46

We have just converted our codebase to unicode. Our installer has a couple of functions it calls in external Dlls that require strings to be passed as argument (BYREF). I thought installshield was Unicode already, but it would appear not... when the string gets to the Dll it contains garbage (everything works great with non unicode)

Any ideas ? (also any other installshield Unicode help/suggestions is very welcome)

thanks.
Philip Nathan

jiekang007

jiekang007
  • Members
  • 5 posts

Posted 18 March 2003 - 19:56

When declaring prototype of the DLL functiuon in setup.rul, use wstring instead of string as the argument type. This is the only place that you need to explicitly specify wstring.