User Profile

Collapse

Profile Sidebar

Collapse
ilyaw77
ilyaw77
Last Activity: Oct 18 '11, 07:00 PM
Joined: Oct 30 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ilyaw77
    replied to date difference problem
    in C
    Hey guys, I think I found my error, it should be:

    Code:
    month=StrToInt(day1.substr(0,2))-1;
    thnaks a lot though !!! :)
    See more | Go to post

    Leave a comment:


  • ilyaw77
    started a topic date difference problem
    in C

    date difference problem

    Hi guys, I have a problem to calculate difference in date using difftime.
    Two strings are passed to the function day1="05/01/2007" and day2="04/30/2007" the difference I got is 2 days which is wrong since there is no 31st day in april. The most surprising part I can pass 04/31/2007 ang get the right difference without any error while creating struct tm. What am I doing wrong?
    Here is my programm:

    ...
    See more | Go to post

  • ilyaw77
    replied to how to send python list to C
    Hi Glenton, thank you for the reply.
    The thing is we use input from Python for input to another C implemented library. After browsing google I found that I can access list using PyList_ set of functions and I tried this simple app: (again l=[1,2])

    Code:
    static PyObject* pJPMTibPublishALot(PyObject *self, PyObject *args){
    	FILE* file;
    	//Py_ssize_t size;
    	PyTypeObject* type = args->ob_type;
    	Py_ssize_t
    ...
    See more | Go to post
    Last edited by bvdet; Mar 31 '10, 03:17 AM. Reason: Add code tags

    Leave a comment:


  • ilyaw77
    started a topic how to send python list to C

    how to send python list to C

    Hi guys,
    I would appreciate your help here. I'm not experienced Python programmer but I have to implement one project that require passing Python list object to C and iterate it somehow.

    For example:

    in Python: list=[1,2.3,'string']

    in C:

    I do not know if to use PyArg_ParseTupl e is good here:
    Code:
    static PyObject* pJPMTibPublishALot(PyObject *self, PyObject *args){
    	? myVal;
    ...
    See more | Go to post
    Last edited by bvdet; Mar 30 '10, 10:44 PM. Reason: Add code tags

  • ilyaw77
    replied to C#, Thread Problem
    Yes tlhintoq I did, same problem as before.
    See more | Go to post

    Leave a comment:


  • ilyaw77
    replied to C#, Thread Problem
    Hi everybody, I still very much appreciate if someone could give me any hint on this problem.

    Ilya
    See more | Go to post

    Leave a comment:


  • ilyaw77
    replied to C#, Thread Problem
    Hi tlhintoq, thnx for the good tips.
    I tried to make thread t "global" as per your advice but it still give me the same application error on Exit click. Also question, Join() method should exit the thread when it finish its execution, do I need the Abort() method as well in the Exit click procedure?

    Thank you for reply,
    Ilya
    See more | Go to post

    Leave a comment:


  • ilyaw77
    started a topic C#, Thread Problem

    C#, Thread Problem

    Hi guys, need you advice here. Have to say I’m new to Threading applications and C# in general, so may be it is really simple and just I can not see it.

    I created a really simple project to show my problem (VS 2008 C# WinForm Project)
    I have a 3rd party COM object which I want to run when click on a Start button. The ApartmentState of this COM object is MTA and since WinForm Thread is STA only,
    I have to create a new...
    See more | Go to post
No activity results to display
Show More
Working...