|
Do you recommend any good library or examples online for implementing an HTTPS client that can connect to a website using basic authentication? This is meant to run in linux servers.
Any pointers help.
Update: Question about the unanimous libcurl - does...
Started by kolrie on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
There's plenty of example code.
Libcurl supports both HTTPS and HTTP Basic Authentication.
|
|
Hi!
Here's my code:
#import <Foundation/Foundation.h> void PrintPathInfo() { const char *path = [@"~" fileSystemRepresentation]; NSLog(@"My home folder is at '%@'", path); } int main (int argc, const char * argv[]) { NSAutoreleasePool * pool = [...
Started by Tom on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For const char* you will want the....
Because you are using a C style string, you need to use the standard C string formatters OR convert the const char * back to an NSString using).
And asks it for a description to get a string to print.. .
|
|
Since there are so many languages around, it's confusing for a newbie like me to make a choice. Is there a language which should be chosen over others in the current scenario?
Started by crypto on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
If you feel comfortable with C, the next step would be to learn some basic Object Oriented the comments indicate you want to learn, I'd suggest something drastically different from the C-like, web: PHP/Ruby, micro devices....
For this.
|
Ask your Facebook Friends
|
Hi, i have been going through some code and came across a statement that somehow disturbed me.
typedef GLfloat vec2_t[2]; typedef GLfloat vec3_t[3];
From my perspective, a statement such as
typedef unsigned long ulong;
Means that ulong is taken to mean...
Started by Dr Deo on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Basically a typedef has exactly the same format as a normal C declaration, but it introduces be clearer if C syntax allowed it to be written as
typedef GLfloat[2] vec2_t; typedef GLfloat[3] vec3_t been said, is the same an in a variable....
|
|
I'm working on sorting a list of objects, and unfortunately, I'm not quite getting the information from the debugging to see where I'm going wrong.
I have a custom class that I implemented a CompareTo method in, and I call .Sort() on a List of items of...
Started by Kivus on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Source: MSDN
Your class should implement....
If a custom class or structure does not implement IComparable, its members cannot be ordered and the sort operation can throw an InvalidOperationException .
Try making your class implement the IComparable interface.
|
|
What is the official term for the basic object types available in the C#? I am creating API documentation and I need to explain any that one property of my API will accept any basic C# object ( string , Int32 , etc.) and it will not accept any complex...
Started by Michael Kniskern on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I think I would.
Built-in Data Types | Basic Data Types | Default Data Types All works fine ...
|
|
What do you see as benefits for one over the other? As far as I know, it's just preference. I have way more experience with C# than I do with Visual Basic and was wondering if I should dabble in Visual Basic for certain types of projects?
Started by scottm on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You are correct in saying that it....
This one of few areas that I am aware of in which it truly matters which language you choose as SSIS only supports VB for any "integrated" code you write for it .
If you plan on doing any SSIS you will need to know VB .
|
|
I have created a class in c# and made the com visible property is true. But, i could not see the its properties at visual basic 6.0. what could be a problem? please help me
Started by Sarathi1904 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Do they start with an underscore)?
Do you apply....
Does ComVisible apply properly? Do you see the class in VB6, can you create an instance of it?
What names did you use for the properties? Do they perhaps use special COM rules to make them invisible (i.e .
|
|
In switching coding styles, I need to go from a one tab width of 4 indentation to a two space indentation.
I've added the following to my .emacs file, at the very end:
(setq indent-tabs-mode nil) (setq c-basic-offset 2)
Unfortunately, that's not working...
Started by kitt on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
M-x customize-variable....
You can use (setq-default c-basic-offset 2) or you can define a mode hook that executes every time you start cc-mode.
c-basic-offset is a per-buffer variable, so setting it in your .emacs won't work.
|
|
Hi, all
I usually use 4 white spaces to indent C programs, but in order to keep in consistent with some open source projects, I have to change to 2-white-space indenting sometimes.
Currently my indenting style is assigned in my .emacs file with
(setq ...
Started by ZelluX on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
((c....
"BSD"))) (java-mode.
((c-file-style .
80))) (c-mode .
4) (fill-column.
T) (tab-width.
((indent-tabs-mode.
This takes.
4))))
Note: This is new functionality in Emacs 23.1.
((c-basic-offset .
:
((c-mode .
|