Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

File - to - String!

delphi string

  • Please log in to reply
3 replies to this topic

#1 SirStorm25

SirStorm25

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 14 September 2008 - 01:45 AM

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
  • 0

#2 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 14 September 2008 - 10:37 AM

Does your target .exe support unicode? If not, you may need to translate your string into ansi before pushing it into the .exe.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#3 SirStorm25

SirStorm25

    CC Lurker

  • Just Joined
  • Pip
  • 9 posts

Posted 14 September 2008 - 11:55 AM

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.
  • 0

#4 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 15 September 2008 - 08:40 AM

I don't have access to Delphi 2009, but I know there are Delphi components to provide Unicode support.
  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/






Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download