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"

UE_LOG not accepting fstring as a parameter??

For some reason after I added UE_LOG I received a compiler error. It ran fine before I added the third line. Here is the code:

     const FString ReceivedUE4String = BinaryConversion(ReceivedData);

      data = stringData(ReceivedUE4String);

      UE_LOG(LogTemp, Warning, TEXT("This is the data: %s"), ReceivedData);

I've added the output log as well: https://gist.github.com/arushirai1/f5790656a31e70c219e1

Product Version: Not Selected
Tags:
more ▼

asked Aug 03 '15 at 07:02 AM in C++ Programming

avatar image

aegle
36 3 6 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello, aegle

I am sorry to hear about your problem. Please, however, note, that %s strings are wanted as TCHAR* by Log, so you should use *FString().

Hope this helped!

Have a great day!

more ▼

answered Aug 03 '15 at 07:59 AM

avatar image

Andrii Melnyk
1.9k 60 20 112

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Here is an example code of how to fix it:

  UE_LOG(LogTemp, Warning, TEXT("This is the data: %s"), *FString(ReceivedData));
more ▼

answered Jul 05 '19 at 11:17 AM

avatar image

micwanyoike
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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