User Profile

Collapse

Profile Sidebar

Collapse
shashi59
shashi59
Last Activity: Jul 17 '07, 01:45 PM
Joined: Mar 15 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shashi59
    started a topic What is the use of KERNALRELEASE

    What is the use of KERNALRELEASE

    All the device driver programming books mention KERNALRELEASE in the Kernal modules compilation make file.So i dont know what is the use of this KERNALRELEASE variable......P lz anyone clarify my doubt......now its a big headache for me.......

    Thanks in advance........ ..

    Thanks & Regards
    Sasi..
    See more | Go to post

  • No... i am trying to mount NTFS partition(D:/)......from the original os.....like windows xp......
    See more | Go to post

    Leave a comment:


  • shashi59
    started a topic Windows partition mountig problem......In fedora-6

    Windows partition mountig problem......In fedora-6

    I had fedora-6.....Now using fedora through VMWare player....now i am Virtually working fedora in windows xp platform...Now i would like to mount windows partition.but i couldnt........ ..And also i use the mount command like........... ...... mount -t vfat /dev/hda1 /mnt/windows.......Hereafte r i couldnt mount windows partition.....S o plz anyone help me.......
    See more | Go to post

  • shashi59
    started a topic problem in Visual studio 2005 installation

    problem in Visual studio 2005 installation

    now i have visual studio 6 in my system .....but i would like to install Visual Studio 2005.now i have original Visual studio 2005 cd.but I try to install but it shows some error like VSSCENARIO.DLL missing......So how can i clear registry content...becau se it shows error also like this plz remove previous edition content.......B ut i fully uninstall that visual studio 6 via control panel...but it shows error like that....... plz anyone give me...
    See more | Go to post

  • shashi59
    started a topic Plz explain the outportb function
    in C

    Plz explain the outportb function

    Anyone plz explain outportb function.And also explain the code below........

    #define PORT1 0x3F8

    outportb(PORT1 + 1 , 0);
    outportb(PORT1 + 3 , 0x80);
    outportb(PORT1 + 1 , 0x00);
    outportb(PORT1 + 3 , 0x03);
    outportb(PORT1 + 2 , 0xC7);
    outportb(PORT1 + 4 , 0x0B);
    See more | Go to post

  • shashi59
    replied to Call the python function from C compiler
    Anyway thanks your reply........i dont know its possible or not........ok thanks da
    See more | Go to post

    Leave a comment:


  • shashi59
    replied to Call the python function from C compiler
    ok....Is there any possible to write structure in c wrapper code
    Example this is my c wrapper code for factorial ok....
    Code:
    #include <Python.h>
    
    int fact(int n)
    {
        if ((n == 0)||(n==1))
            return 1;
        else
            return fact(n*fact(n-1));
    }
    
    static PyObject* fact(PyObject* self, PyObject* args)
    {
        const char *command;
        int
    ...
    See more | Go to post
    Last edited by bartonc; Mar 22 '07, 10:16 AM. Reason: added [code][/code] tags

    Leave a comment:


  • shashi59
    started a topic Call the python function from C compiler

    Call the python function from C compiler

    Code:
    from ctypes import *
    class HELLO(Structure):
        _fields_=[("a",c_int),
                  ("b",c_int)]
    x=input()
    y=input()
    hai=HELLO(x, y)
    print hai.a,hai.b
    This my code in python.now i can call the function HELLO(x,y) from c compiler and also can i see the output of this code in C compiler window...Is it possible....If its possible plz give idea...
    See more | Go to post
    Last edited by bartonc; Mar 22 '07, 09:07 AM. Reason: added [code][/code] tags

  • shashi59
    replied to What is your OS and Python Version
    OS:Windows XP

    Python version 2.5
    See more | Go to post

    Leave a comment:


  • shashi59
    replied to how can i get the size of a list
    size mean like example 2 byte for integer .so the list containing 4 numbers mean the size is 8 ok... that size of the list i want how can i get the size of a particular list
    See more | Go to post

    Leave a comment:


  • shashi59
    started a topic how can i get the size of a list

    how can i get the size of a list

    Actually i have a list, i dont know the size of the list now. how can i find that size. i am not mention about length. I need size of the list
    See more | Go to post

  • shashi59
    started a topic how can i access the elements in structure

    how can i access the elements in structure

    plz give brief explation about structure in python and also give some sample program in structure
    See more | Go to post

  • shashi59
    replied to How can I return an array from C to python
    How can i return a array C to python

    Now i need information about interface c and python.Now i call c function from python but i dont know how to return a array from c to python

    this is my samplecode
    Code:
    #include <Python.h>
    #include <Numeric/arrayobject.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    #define IDENTITY_DOC
    ...
    See more | Go to post
    Last edited by bartonc; Mar 19 '07, 07:36 AM. Reason: added [code][/code] tags

    Leave a comment:


  • shashi59
    replied to How can I return an array from C to python
    #include <Python.h>
    #include <Numeric/arrayobject.h>
    #include <sys/types.h>
    #include <stdio.h>
    #include <stdlib.h>

    #define IDENTITY_DOC "\
    This method simply unpacks the Array (so that it could be modified)\
    and then returns it unchanged."
    static PyObject *identity(PyObj ect *self, PyObject *args)
    {
    int i,n;
    PyObject *input;...
    See more | Go to post

    Leave a comment:


  • shashi59
    started a topic How can I return an array from C to python

    How can I return an array from C to python

    Now i need information about interface c and python.Now i call c function from python but i dont know how to return a array from c to python
    See more | Go to post

  • shashi59
    started a topic i need SWIG for windows

    i need SWIG for windows

    i need SWIG for windows and also i need some information about swig like how to install and run.And also i need information how to call c function from python
    See more | Go to post

  • shashi59
    started a topic How can i call a sub function from C program

    How can i call a sub function from C program

    Actually i have some code in c .but now i would like to change into python code.so i had a doubt like this how can i call a sub function from C editor to python
    See more | Go to post
No activity results to display
Show More
Working...