User Profile

Collapse

Profile Sidebar

Collapse
bajajv
bajajv
Last Activity: Sep 11 '15, 06:54 PM
Joined: Jun 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Thanks Luuk.
    I will go with sqlite.
    See more | Go to post

    Leave a comment:


  • Getting SP2-0640 Not connected error on Sql Cmd Line

    Hi,
    I have installed Oracle 11g Express Edition on my 64 bit Windows 7.
    Later saw that this edition of oracle doesn't works on 64 bit Windows.
    But I stilled tried on sql command line.
    Getting following errors:
    SP2-0042 Command not recognized (for sysdate command)
    SP2-6040 Not connected (for create table command).
    Is there any way I can run it on my machine.

    Thanks.
    See more | Go to post

  • bajajv
    started a topic Which db is good for 64bit cygwin on windows7

    Which db is good for 64bit cygwin on windows7

    Hi,

    I have 64-bit windows 7 and have installed 64-bit cygwin on it. I need a database which I can connect to from my c++ programs in cygwin.

    I downloaded Oracle 11g Express Edition. But later read in documentation that it can't run on 64 bit windows.

    Is there any free database distribution which can be used for study purpose on 64-bit windows 7 and cygwin for C++/Python programs?

    Thanks...
    See more | Go to post

  • bajajv
    replied to Assigning a value to a list variable fails
    Hi,
    Yes, you were right.
    My mistake, I accidently made it a string at some place, and that was the reason of this error.
    Sorry for the trouble.
    Appreciate your responses.
    Thanks.
    See more | Go to post

    Leave a comment:


  • bajajv
    started a topic Assigning a value to a list variable fails

    Assigning a value to a list variable fails

    Hi,
    The below code works:
    Code:
    newList = ['aa', 'bb', 'cc', 'dd']
    newList[2] = 'zz'
    print newList
    ['aa', 'bb', 'zz', 'dd']
    But the following code is giving error -
    Code:
    myDBRow = [''] * len(columnList)
    myDBRow[DB.RegionCode] = 'ABC'
    TypeError: 'str' object does not support item assignment
    Can you please suggest something here.

    ...
    See more | Go to post

  • how to write in excel wordwise in each column, currently getting result characterwise

    hi
    I am trying to read an xml and trying to write in excel using csv.writer. I am providing xml file name and xpath file name at command line.
    But getting output like this-
    (,[,',1,0,0,6,T,0, 0,0,5,6,5,4,3,0 ,',",",',2,0,1, 3,-,0,1,-,2,3,',],)
    While I want it like this-
    1006T000565430, 2013-01-23
    Why am I getting comma after every character?
    This is my code -
    Code:
    import libxml2
    ...
    See more | Go to post

  • bajajv
    started a topic how to find server-class of a database

    how to find server-class of a database

    Hi,

    I have to transfer data from IntersystemsCac he to Sybase IQ database.

    I am trying to use Insert .. Location command from SybaseIQ.

    But I need to know the server-class for Intersystems Cache.

    Tried some links on internet, but didn't find it.

    Can anybody please help.

    Didn't find any section on IntersystemsCac he or Sybase, thats why I am giving it here....
    See more | Go to post

  • bajajv
    replied to Error using USER_LDFLAGS in executable make file
    in C
    Hi Banfa,

    Yaa, the problem was in ordering the libraries. It is working now.

    Thanks for the help.
    See more | Go to post

    Leave a comment:


  • bajajv
    replied to Error using USER_LDFLAGS in executable make file
    in C
    hi.. can anyone please give some suggestions how to move further, because I am really stuck at this..

    Thanks.
    See more | Go to post

    Leave a comment:


  • bajajv
    replied to Error using USER_LDFLAGS in executable make file
    in C
    Hi Banfa,

    These are the compiler and platform infos -
    $gcc --version
    gcc (GCC) 4.2.3

    And in makefile, I am giving -
    USER_LDFLAGS = -L$(HOME_DIR)/gmrACE-5.6-32/lib -lACE-5.6
    If I do not give USER_LDFLAGS, it gives many errors for not finding ACE APIs.

    Currently I am getting errors like this -

    obj_rel_Linux_3 2/file_name.o:(.g nu.linkonce.d.r el.ro._ZTV28SOM E_NAME+0x284): undefined...
    See more | Go to post
    Last edited by Banfa; Jan 17 '13, 10:22 AM. Reason: Removed sensitive information

    Leave a comment:


  • bajajv
    started a topic Error using USER_LDFLAGS in executable make file
    in C

    Error using USER_LDFLAGS in executable make file

    hi,

    In my make file, I need to give USER_LDFLAGS.

    I am trying to make an executable, but if I give USER_LDFLAGS as -

    USER_LDFLAGS = -L... (libraries) it gives errors

    and if I give it as -

    USER_LDFLAGS = -shared -L... (libraries)

    it creates a shared library.

    Any idea what could be the reason, I can't give more details about the libraries for obvious...
    See more | Go to post

  • Did a pvs and got this -
    pvs -o /path_for_lib/ld.so.1
    ../path_for_lib/ld.so.1 - librtld.so.1 (SUNWprivate_1. 3);
    ../path_for_lib/ld.so.1 - libld.so.4 (SUNWprivate_4. 2);
    See more | Go to post

    Leave a comment:


  • On SVN checkout I get - libsvn_client-1.so.0 not found

    Hi, I have svn installed but am getting following error when using svn command for checkout -

    ld.so.1: svn: fatal: libsvn_client-1.so.0: open failed: No such file or directory

    I got this with ldd -

    bash-3.00$ ldd `which svn`
    libsvn_client-1.so.0 => (file not found)
    libsvn_wc-1.so.0 => (file not found)
    libsvn_ra-1.so.0 => (file not found)...
    See more | Go to post

  • bajajv
    replied to how to use semaphore in this situation
    in C
    Sure. Will definitely like to know how efficient my design goes.. :)
    See more | Go to post

    Leave a comment:


  • bajajv
    replied to how to use semaphore in this situation
    in C
    Thanks for the help.

    I will start with it now.
    See more | Go to post

    Leave a comment:


  • bajajv
    started a topic how to use semaphore in this situation
    in C

    how to use semaphore in this situation

    Hi, I have 5 producer threads and 10 consumer threads. 2 consumer threads for each producer.

    How can I use a semaphore here, so that no 2 threads wanting to interact with same producer thread get access?

    Thanks
    See more | Go to post

  • Hi Banfa,
    Thanks for this info. But what about the auto variables. Consider this class -

    Code:
    class A
    {
    public:
     int i;
     int j;
     void fun();
     A();
     ~A();
    };
    
    A::A() : i(10), j(20)
    {
     fun(); //this function throws exception
    }
    If fun() throws exception, then will the memory allocated to i and j be released?
    See more | Go to post

    Leave a comment:


  • What happens when a half constructed constructor throws exception

    Suppose a class has two integers and a function that could throw exception. If the constructor has allocated memory for integers and then it calls the function which throws exception, what will happen to the integers? Will they be released? I am confused becasue the destructor will not run until the object becomes fully constructed.
    See more | Go to post

  • how to define default constructor for a template list class

    Hi,
    I was making a template list class, and using it to make list of objects of my own class.
    It works fine with integers, but not with other classses.

    Code:
    template <typename T>
    class CList
    {
    public:
    	struct Node
    	{
    		T data;
    		Node* next;
    	};
    	Node* head;
    
    	CList();
    	~CList();
    	bool AddElement(T t);
    	bool DisplayList();
    ...
    See more | Go to post

  • bajajv
    started a topic how to handle exception in constructor
    in C

    how to handle exception in constructor

    hi.. if a class A contains an array of objects of another class B.. And in the constructor of A, while constructing objects of B, any one object throws an exception, then how can we guarantee to release all the memory acquired.. so that there is no memory leak..

    It was asked in an interview recently.. I was not very sure how to answer this.. can any one help please...

    Code:
    class B{};
    class A{
    public:
    ...
    See more | Go to post
    Last edited by bajajv; Apr 14 '12, 06:48 PM. Reason: adding more details
No activity results to display
Show More
Working...