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

problem retreiving tchar string from a c++ dll


2 replies to this topic

techmaddy

techmaddy
  • Full Members
  • 7 posts

Posted 06 June 2012 - 10:53

Hi,

My requirement is to read in a TCHAR pointer returned by a c++ dll.
Prototype in c++
__declspec(dllexport) TCHAR * Get_string();

Problem started after upgrading to 2012. Earlier with installshield 2010 the following worked fine.

prototype cdecl POINTER _mydll.Get_string();

POINTER Group;
STRING svGroup;

Group=_mydll.Get_string();
Sprintf(svGroup,"%s",Group);

Later use the svGroup to process further.

But now after upgrade the svGroup is getting garbage values.

How should I handle this?

Thanks in advance
Maddy

Taco Bell

Taco Bell

    IS6 Expert

  • Moderators
  • 1,281 posts

Posted 06 June 2012 - 13:20

I've not needed to do this, so I would recommend contacting Flexera about such an upgrade issue. Especially since it was working before.
user posted image

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 June 2012 - 16:31

I think InstallScript now supports unicode/double byte characters, maybe the problem is related to this.