interoperability with anything

This is a discussion on interoperability with anything within the C Programming forums, part of the General Programming Boards category; I was wondering if someone could explain some basics for me... My task is to learn ".NET", which I understand ...

  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,831

    interoperability with anything

    I was wondering if someone could explain some basics for me...

    My task is to learn ".NET", which I understand to be a system of enabling development of Web-based (browser windows) applications.
    For some reason wherever I look, it seems to be tightly coupled with the C# language. Which is fine, I guess. If I have to learn C# then I'd
    like to be told definitively that that is the necessary step.

    My preference is to be shown which headers, what library to link, and what the calls are. Normal C.

    Similarly, if my task is to interface with SQL server to read & write data to databases, it would be my preference to be simply shown
    the required header files, how to link the required library, and be shown documentation on the function calls. But here again, most examples
    seem to imply I would need VBA, or the examples show commands and loops written in native SQL rather than anything resembling legal C syntax.

    I'm sure I'm missing something very fundamental here. I was under the impression Microsoft spent all these years and resources to
    provide some universal interface that makes the your favorite particular programming language a moot point. "Common Language Interface" and all that.

    But why can't I find documentation that helps the C-console application programmer? Is there any hope?

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by nonoob View Post
    But why can't I find documentation that helps the C-console application programmer? Is there any hope?
    C may be ".NET compatible" and yet very seldom used, meaning there won't be many resources out there. That doesn't mean it will be impossible, more like "you are on your own". Or, there could be plenty of people who use it, but they learned .NET using C# or VB and so have not bothered with producing much in the way of documentation and tutorials.

    I would imagine there is not much (if any) performance advantage to using C in that setting so most people would prefer to use a higher lever, more concise scripting type language.

    There are established C libraries for manipulating specific SQL databases such as SQLite. I have not used them in C, but those kinds of libraries may still require you to write SQL commands (you might as well anyway, IMO there is not much to be gained in using some wrapper function that just rearranges some syntax).
    Last edited by MK27; 06-23-2009 at 10:10 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21