User Profile

Collapse

Profile Sidebar

Collapse
tcsvikr
tcsvikr
Last Activity: Jun 11 '08, 11:55 AM
Joined: Feb 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tcsvikr
    replied to string::capacity()
    in C
    Hi Raghu!!
    Thanks for the reply.. I've observed the same in VC++ ..The implementation is different from linux...
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic string::capacity()
    in C

    string::capacity()

    Hi,
    The string::capacit y() returns the size of the allocated space, which is either equal or greater than this content size.
    My question is: Is capacity assigning equal or greater than content size compiler dependent??
    I've used the same function in a sample C++ program and compiled it with g++ compiler(linux) . The result is always equal to the content size but never greater.
    can some one help me in clarifying this.
    See more | Go to post

  • tcsvikr
    replied to accessing remote file
    in C
    I am using VC++ to build this application to access a remote file via ftp..I am using system() function ( generally used for gcc and turbo c compilers ) . But may be VC++ is not supporting system() function.It is giving the error..Can you provide an alternative??...
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic accessing remote file
    in C

    accessing remote file

    can any one help me with the c++ code for accessing a remote file ( on server) using handlers, via telnet or ftp or sftp ?

    Thanx in advance,
    vijay
    See more | Go to post

  • tcsvikr
    started a topic C++ code for password entry
    in C

    C++ code for password entry

    Hi,
    I'm a newbie in c++...Can anyone provide me with the C++ code for entering the password...It should be in this way..
    The user enters the password but only *'s should be displayed...Ass ume that there is a flat file which contains the details of users and their respective passwords. Authentication should be provided after checking the file...

    Its urgent..Thanks in advance...
    Regards
    vijay
    See more | Go to post

  • tcsvikr
    replied to equivalent of __leave in linux
    in C
    It acts like a 'break' statement for try block..You leave the block under some condition.

    eg:

    __try{
    if (a==0) __leave;
    b=c;
    }
    __finally{
    printf("somethi ng");
    }

    Here if (a==0) condition fails it will directly come to __finally and prints...

    I cannot use break here since it is used for either switch or for loop......
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic equivalent of __leave in linux
    in C

    equivalent of __leave in linux

    Can any one tell me how to implement '__leave' functionality in g++ compiler???Than x in advance
    See more | Go to post

  • tcsvikr
    started a topic SetFilePerm() API in windows
    in C

    SetFilePerm() API in windows

    Hi,
    Can any one tell us about the functionality of SetFilePerm () api in commondll.h. MSDN does not provide any help in this regard. If anybody knows about the linux equivalent of the api kindly share the info with us?? Thanks in advance..
    See more | Go to post

  • tcsvikr
    replied to Simple DLL Questions
    in C
    Check the following links for some tutorials on building DLLs.

    http://www.logix4u.net/dll_tutorial1.h tm

    http://www.codeguru.co m/Cpp/Cpp/cpp_mfc/tutorials/article.php/c9855/

    http://www.codeproject .com/dll/RegDLL.asp

    http://www.flipcode.co m/articles/article_creatin gdlls.shtml

    http://www.codersource .net/win32_dlls.html

    Regards...
    See more | Go to post

    Leave a comment:


  • tcsvikr
    replied to Graphics in C
    in C
    I'm using Turboc..in Windows xp...
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic Graphics in C
    in C

    Graphics in C

    Hi,
    Can anyone help me in accessing pixel by pixel info in an image created in C graphics...Kind ly suggest any function for that
    See more | Go to post

  • tcsvikr
    started a topic Regarding DLLs
    in C

    Regarding DLLs

    Hi ,
    I have a doubt.When a dll is constructed and a particular part of an application is calling a function from that dll ,will only that function address pointer is accessed or whole dll is browsed for that?? New to Dll... Kindly help...
    See more | Go to post

  • tcsvikr
    started a topic alternatives for calling conventions in Linux
    in C

    alternatives for calling conventions in Linux

    Can any one please suggest me the alternatives for Microsoft's calling conventions such as
    __fastcall, __stdcall, __cdecl
    in Linux.
    Thaks in advance
    See more | Go to post

  • tcsvikr
    replied to Signed/unsigned mismatch
    in C
    I'm sorry.i have not written the code..My task is just to debug the code given to me and remove all warnings at highest level. I got your reasoning. But I don't know the default conversion of char. Will it be converted to signed int or unsigned int....
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic Signed/unsigned mismatch
    in C

    Signed/unsigned mismatch

    Code:
    unsigned int  _I = _N;           // _N is of type unsigned int 
    			
    for (_Grp = false; *_Pg != CHAR_MAX && '\0' < *_Pg
                                             && *_Pg < _I - _Np; _Grp = true)
    //*_Pg is constant char

    In the above code we are comparing constant char with unsigned int(*_Pg < _I - _Np). We are getting a warning of 'warning C4018: '<' : signed/unsigned mismatch'...
    See more | Go to post

  • tcsvikr
    started a topic C++ syntax doubts
    in C

    C++ syntax doubts

    consider the code given below:

    class base { //line1
    private: //line2
    const int a; //line3

    public: //line4
    base(int val = 0) : a(val) {} //line5
    int get_a() { return a; }
    }; // C4512 warning

    class...
    See more | Go to post

  • tcsvikr
    replied to Regarding VC++ warnings in level4
    in C
    Thank you very much for your suggestion...I am not well acquainted with C++..Can you pls elucidate the usage and syntax of assignment operator...Will be grateful for your help.....
    See more | Go to post

    Leave a comment:


  • tcsvikr
    started a topic Regarding VC++ warnings in level4
    in C

    Regarding VC++ warnings in level4

    Can anyone help me in removing these type of warnings?? Its urgent.

    C:\Program Files\Microsoft Visual Studio\VC98\INC LUDE\xlocnum(41 2) : warning C4512: 'num_get<char,c lass std::istreambuf _iterator<char, struct std::char_trait s<char> > >' : assignment operator could not be generated
    C:\Program Files\Microsoft Visual Studio\VC98\INC LUDE\xlocnum(64 9) : see reference to class template instantiation 'std::num_get<c har,class...
    See more | Go to post
No activity results to display
Show More
Working...