Jump to content

File - to - String!

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
SirStorm25

SirStorm25

    Newbie

  • Members
  • Pip
  • 9 posts
Hi All!
I was wondering if there was a way to load any kind of file (text or binary) into a string ( Delphi 2009 ), i've tried using the File2String function in ExeMod, however, Delphi 2009 doesn't seem to like it...

Reason: I'm trying to use the AddFile2Exe function in exemod, however, it doesn't seem to work. Ive found out it must be something to do with the File2String and delphi 2009's love of unicode :D...

Hope you can help!
Regards
SirStorm25

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Does your target .exe support unicode? If not, you may need to translate your string into ansi before pushing it into the .exe.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
SirStorm25

SirStorm25

    Newbie

  • Members
  • Pip
  • 9 posts
Thanks for the reply!!!
How would I do that? (convert string to ansistring)??

or

How would I add unicode support to my application?

Regards
SirStorm25.

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I don't have access to Delphi 2009, but I know there are Delphi components to provide Unicode support.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog