|
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.
|
|
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.
|
Ask your Facebook Friends
|
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.
|
|
I am writing a console program in C# and I need to use a database.
I am looking for very basic tutorials on connecting with and using a db from a C# console program. I haven't been able to find anything basic enough yet and I hope people here can help...
Started by ChrisC on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
Custs = from c in Customers where c.State = 'NY' select c; foreach(var Cust in Custs.
|
|
I'm a kinda newbie developer with a few years under my belt. Recently I interviewed at a game company and was asked "have you done any multi-threading?" I told them about having a C# app with a few Threads... and then I said a bit about transactions and...
Started by MrDatabase on
, 9 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
The most basic examples.
The canonical implementation of "low level threads" is pthreads.
|
|
I'm trying to make a small program (in either C or Visual Basic) to simply connect to a gmail email account. Then a simple if statement which will be if new mail received, label.text = "new mail" etc.
I have spent hours and hours searching and I still...
Started by Gemma on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Your other.
Examples of pop3 in Visual Basic A GNU library for C providing a Pop3 API Equivalent libraries for IMAP will also be available.
Your best bet is using the pop3 or imap protocols .
|