Hi Raghu!!
Thanks for the reply.. I've observed the same in VC++ ..The implementation is different from linux...
User Profile
Collapse
-
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. -
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??...Leave a comment:
-
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 -
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 -
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......Leave a comment:
-
equivalent of __leave in linux
Can any one tell me how to implement '__leave' functionality in g++ compiler???Than x in advance -
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.. -
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...Leave a comment:
-
-
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 -
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... -
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 -
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....Leave a comment:
-
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'... -
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... -
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.....Leave a comment:
-
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...
No activity results to display
Show More
Leave a comment: