Failure default param in UnitTests [closed] - c++

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
In my project I have two files Products.h and .m. If I build project and run, I dont get any warnings & errors.
But when I run tests. I catch an error on this piece of source code:
NSArray* fetchItem(NSString* entity, NSSortDescriptor* sortDescriptor = nil);
The error message:
"Clang does not support default params".
Ok, I know, it may be a problem due to the architecture of the project.
I change the architecture in UnitTest as MainProject from $(ARCHS_STANDART_32BIT) to $(ARCHS_UNIVERSAL_IPHONEOS).
And all the same catch error
"Expected ';' ',' or ')' before '=' token.
In both projects ARC is off.
So essentially, my question is, "How to enable default params on UnitTest projects?" Thank you very much,

I found answer. Use default parameters bad syntax and not usage in Objective-C, I remove default param and problem solved.

In your code line pls check if u r missing assignment
NSArray* fetchItem = (NSString* entity, NSSortDescriptor* sortDescriptor = nil);
I dont know what you want, coz after assignment that line is not making me any sense.

Related

How can I view the hierarchy of function calls when an error occurs in Visual Studio? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 25 days ago.
This post was edited and submitted for review 19 days ago.
Improve this question
Before working in Visual Studio, I worked in the Matlab program and there, when an error occurred, function calls were consistently displayed in the command window, indicating the line number, which part of the code caused the error. Now I work in Visual Studio and I really need the same a tool.
I found the "call hierarchy" window, but unfortunately it does not display so conveniently, since entering a function can be from different functions, it is not clear which one caused the error.
If you are using Visual Studio when you get an error you can go to Debug>Windows>Call Stack

I opened my .exe in notepad and found that it contains file locations, is there anyway to obfuscate this? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I made a compiled a sample program in C++ Using VS2013 and copied the "Release" into my desktop and changed it to a text file, I opened this text file and although most of the file was gibberish I could not understand, after scrolling down for a long time, I saw the location of my folders, why is this and is there any way to obfuscate it?
Edit:
I am, in fact, referring to the location of the pdb file. And setting the Linker Debugging options to "NO" seemed to do the trick, thanks everyone!

Delete file and get objects list from Amazon S3 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have developed several classes for classic asp (REST)
uploadFile.asp
deleteFile.asp
getListObject.asp
After testing, I was surprised at the result:
Uploaded file to the server
Deleting a file
Get list objects
The file remains on the list
I use cloudberry explorer and see that file no exist.
In what may be the problem?
I found the answer.
Maybe it's problem of classic asp. I needed a dynamic query string. When I use an alternative authentication method and it works.

How I can set a form pop out when I click a button in VC++2010? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am working on a homework; I put everything in a folder and upload to a site. Please download it and help.
I follow my teacher example, but it must have something missing. My code is able to be compiled, but does not able to pop out the form as I excepted.
Please help ! Thanks
Code link http://sharesend.com/xkpm2
I found the error. I forget to add
myForm2->ShowDialog()
to show my form

C++ PRJ0019 error [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am getting an error while running a VC++ program. Actually I dont have any idea about the program. Its given to me by my manager just run it. Can anyone help me. The error I got is
I ran a program called slycorba and getting the below error. I have no idea what it meant.
Error 1 error PRJ0019: A tool returned an error code from "Building IDL"
You will also see PRJ0019 when a tool returned an error code but no error message. This can happen, for example, if you redirect the output of MIDL to NUL.
Troubleshooting Custom Build Steps and Build Events
This error can also occur when you are running as a member of the Users group and Administrative access is needed. For more information, see Running as a Member of the Users Group.
Or just search error PRJ0019 in google.
The compiler bombed out when compiling the project named "Building IDL"
Without more information, that's all anyone can tell you.