User Profile

Collapse

Profile Sidebar

Collapse
urib
urib
Last Activity: Jun 9 '10, 12:53 PM
Joined: Nov 5 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • urib
    replied to what is the meaning of .close in binaryreader
    Thanks
    I guess that closing the file is the reason for the error if I use r.Close()

    In this case the question is if closing the file by fs.Close() when I finish the program is enough and I do not need to close the binary reader..
    See more | Go to post

    Leave a comment:


  • urib
    started a topic what is the meaning of .close in binaryreader

    what is the meaning of .close in binaryreader

    I have binary file of integers and I use some C# code to read from it.

    I am a complete beginner in C#(I know better C)

    looking at some examples I see that .Close() is used in the end for a binaryreader(ne ver used binaryreader in C)

    but if I try to use it then it cause errors if I use the same function twice.

    It seems better simply not to close binaryreader and I wonder what is the advantage...
    See more | Go to post

  • Thanks

    Unfortunately your link does not give me clear instructions what to do.

    I guess that
    I start by new website when I choose
    asp.net website
    file system and
    C#

    I do not understand what I do next.

    I have some code in the link both for Visual C++ and later for C# below the examples but I do not understand where do I put it....
    See more | Go to post

    Leave a comment:


  • It is better if I can use C++ because I do not like to translate the functions that I have in C to C#

    If I can use C/C++ dll in C# then I would like to know how to do it.

    Uri
    See more | Go to post

    Leave a comment:


  • How do I use Visual Studio 2008 to show the result of a C function in a website

    Please give me step by step instruction

    I guess that I start by
    file->new website but the problem is that I have no option to choose C++(only visual basic and C#)

    Uri
    See more | Go to post

  • urib
    replied to C Code and PHP
    in PHP
    1)f you mean to the tutorial in the link in this post then it does not talk about PHP but about other langauges that I do not know(I also do not know PHP)

    http://www.swig.org/tutorial.html

    I see
    Building a Tcl module
    Building a Python module
    Building a Perl module
    Building a Java module
    Building a C# module

    I am simply not sure which link I need to read.
    ...
    See more | Go to post

    Leave a comment:


  • urib
    replied to C Code and PHP
    in PHP
    I download SWIG for windows from the download in the following page

    http://www.swig.org/index.php

    I guess that swigwin-1.3.40 is the right file.

    Unfortunately I have no idea how to continue when my target is only to show the result of a simple function in C on the server.

    I see no step by step instructions and the instructions that I got in a different page also did not help.
    ...
    See more | Go to post

    Leave a comment:


  • urib
    replied to C Code and PHP
    in PHP
    I do not understand how I write the C code in the example
    of
    SWIG -- Easy way of communication between C and PHP

    Here are my comments:
    comment 1:
    I know to write a new code in C in visual C++ 2008 by the following steps:

    1)file->new project
    when I select empty project and select a name for the project(I chose example

    2)add new files to the project
    project->add...
    See more | Go to post

    Leave a comment:


  • urib
    started a topic C Code and PHP
    in PHP

    C Code and PHP

    I already asked in the javascript forum
    step by step instructions how to write a code that is going to
    use some simple C function and show it in the server.

    see the following link

    http://bytes.com/topic/javascript/answers/876590-how-do-i-write-code-javascript-use-function-c

    I have visual C++ 2008 and microsoft visual studio 2008
    I hope that you can help me to give me step by step...
    See more | Go to post

  • I asked the programmer that I talked with him again and he told me that
    Today he is using vb.net that is only for server code when he use javascript for client code so I guess the right forum to ask about server coding is vb.net(I still did not decide where to ask my question)

    Uri
    See more | Go to post

    Leave a comment:


  • Thanks for your replies.
    Maybe I should go to asp.net forum.

    The programmer that I talked with him agree that today javascript is not the best way to code on the server(I understood that he used javescript in the past but today he is using visual studio.net).

    Uri
    See more | Go to post

    Leave a comment:


  • There is a difference between javascript in server and java script in client side.
    I write javascript in runat server(see RUNAT=SERVER in my code).
    See more | Go to post

    Leave a comment:


  • one of the reasons is that I want to re-use already written code but it is not the only reason.

    C is also faster and people told me that I can use something like
    server.createob ject and dll but I am not sure exactly what I need to do for it.

    Some step by step instructions can clearly help me.

    If I can see step by step instructions for a simple example it can help me to use other functions that I...
    See more | Go to post

    Leave a comment:


  • how do I write code in javascript to use a function in C

    Suppose that I have some simple function in C like the following when I want to use it in javascript code

    Code:
    int plus1(int a)
    {
    	return a+1;
    }
    I am using visual C++2008 for my C code.

    I guess that I need to start by
    file->new project->class library and call it with some name
    let call it classtest

    Now the visual C++ give me some files

    ...
    See more | Go to post
    Last edited by Dormilich; Nov 5 '09, 01:12 PM. Reason: Please use [code] tags when posting code
No activity results to display
Show More
Working...