x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Using sscanf_s with FString type data.

Hi all. I want use c++ function sscanf_s(), but i don't know how convert FString variable type in char, because i use such comand as SystemSkills_CountLines = SystemSkills_DataSkills.ParseIntoArray(SystemSkills_uidEquipmentSkills, TEXT("\n"), true); Somebody know how i can convert variables types?

Product Version: UE 4.10
Tags:
more ▼

asked Feb 24 '16 at 08:30 AM in C++ Programming

avatar image

Kelt
24 3 5 10

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Already find answer - swscanf_s(), use with TEXT() for convert in wchar_t*. If need work with sscanf_s(), need use TCHAR_TO_ANSI()

more ▼

answered Mar 01 '16 at 02:58 AM

avatar image

Kelt
24 3 5 10

(comments are locked)
10|2000 characters needed characters left

To convert FString to TCHAR array you can do the following:

 *FString::Printf("Your Text");
more ▼

answered Feb 24 '16 at 08:50 AM

avatar image

lion032
981 31 80 55

avatar image Kelt Feb 24 '16 at 10:28 AM

sscanf_s use types: char, char*. Type TCHAR - macros.

avatar image lion032 Feb 24 '16 at 11:09 AM

Sorry, my bad, I mixed up printf and scanf. I will dig into it asap and will provide you with the right answer.

avatar image Kelt Feb 24 '16 at 01:51 PM

Big thx if u find it

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question