Forum: C++ Aug 19th, 2009 |
| Replies: 10 Views: 441 Thank you mcco for providing me the definition of RECT structure
kindly provide me the values (numbers), It seems that your expression evaluates to zero thats why I've asked to provide me the... |
Forum: C++ Aug 19th, 2009 |
| Replies: 10 Views: 441 What are the values of RECT members? |
Forum: C++ Aug 12th, 2009 |
| Replies: 3 Views: 1,408 bool, true, false are already keyword in C++. you don't need to define enum for it. |
Forum: C++ Aug 11th, 2009 |
| Replies: 5 Views: 350 I've few questions,
FrameVisitor::FrameVisitor()
{
Frame();
frames = get_frames(myfile);
}
you have passed 'myfile' as a parameter in fstream where it is defined? |
Forum: C++ Aug 10th, 2009 |
| Replies: 3 Views: 430 Read the following Link Carefully and check for MACRO & GUID that needs to be defined in case of XP, I am assuming that you are good in understanding msdn doc. If you still find it difficult to... |
Forum: C++ Aug 10th, 2009 |
| Replies: 5 Views: 503 Hi,
why you've called LoadBitmap(...) in WM_CREATE message? I am sure your problem will be resolved if you change WM_CREATE to WM_INITDIALOG.
further you should learn and understand the difference... |
Forum: C++ Aug 10th, 2009 |
| Replies: 12 Views: 1,652 yes Its seems fine with a cursory look.
Good luck (Y). |
Forum: C++ Aug 10th, 2009 |
| Replies: 12 Views: 1,652 try the below one
//HANDLE hPort = CreateFile("COM1", GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
HANDLE hPort = CreateFile(TEXT("COM1"), GENERIC_READ|GENERIC_WRITE, 0, NULL,... |
Forum: C++ Aug 2nd, 2009 |
| Replies: 2 Views: 782 i) create an event and check that event in the child thread
ii) signal the event from main thread when you want to exit
iii) call UnhookWindowEx() and release resouces in the child thread.
... |
Forum: C++ Jan 14th, 2009 |
| Replies: 2 Views: 315 The Below Code might Help just remember MessageBox Returns the Value just store that Value and then Process that response rather than calling the message box again and again.
int nResponse =... |
Forum: C++ Dec 4th, 2008 |
| Replies: 2 Views: 330 Simple replace
for (last = 1 ; last <= first; last++)
with
for (last = first ; last >=1; --last) |
Forum: C++ Dec 2nd, 2008 |
| Replies: 18 Views: 1,170 What about Buffer Overflow? :P |
Forum: C++ Nov 26th, 2008 |
| Replies: 4 Views: 1,096 Hi ronan,
Basically std::string are preffered over char* due to several reasons you can read many articles on that but again if you can't change it from char* to std::string you can write the... |
Forum: C++ Nov 25th, 2008 |
| Replies: 7 Views: 2,469 The Question is where you've Created the Test Folder. Place with your code files. it will identify the header file in that folder then. |
Forum: C++ Nov 25th, 2008 |
| Replies: 4 Views: 1,096 Basically using operator new for memory allocation has nothing to do with the smart pointers (auto_ptr or shared_ptr), the purpose of auto_ptr is to encapsulate the naked pointer and release the... |
Forum: C++ Apr 27th, 2008 |
| Replies: 2 Views: 500 Try Reading Socket Programming.
what you are actually doing is creating a server listening on Port, this can be achieved using WinSock on windows Plateform, same can be done on linux using the... |
Forum: C++ Apr 4th, 2008 |
| Replies: 8 Views: 1,716 check the following program
char CalculateGrade (const double percent)
{
if (percent >= 90)
return 'A';
else if (percent >= 80)
return 'B'; |
Forum: C++ Apr 4th, 2008 |
| Replies: 8 Views: 1,716 exactly xsoniccrackersx, I tried to provide you the strings separately now you should modify the algorithm yourself or atleast paste you efforts :). |
Forum: C++ Apr 4th, 2008 |
| Replies: 8 Views: 1,716 Hope the following code. helps.
int main ()
{
ifstream inputFile ("C:/inputFile.txt");
if ( !inputFile.is_open ())
{
cout<<"File not opened"<<endl; |
Forum: C++ Apr 3rd, 2008 |
| Replies: 13 Views: 1,183 Narue its a part of utility.h in VS2008 and in Utility.h and xstring on VS2005. |
Forum: C++ Mar 31st, 2008 |
| Replies: 4 Views: 590 set the prototype of functions
like this
void setW();
void setL();
replace above two with
void setW(double num1)
void setL(double num2) |
Forum: C++ Mar 31st, 2008 |
| Replies: 7 Views: 1,399 dougy83
thanks, I know this is the portable and most suitable way to swap, there exists several other swapping techniques, but I was concentrating on technique adopted by Yellowdog428. I want him to... |
Forum: C++ Mar 31st, 2008 |
| Replies: 7 Views: 1,399 Lets do some sorting.
First of all the sorting technique you are using is sort by swapping. famous as a bubble sort.
before sorting lets improve your code. which is more strutured
Why are you... |
Forum: C++ Mar 28th, 2008 |
| Replies: 5 Views: 751 what it actually does.
Let me tell you what it actually does, and what it should do
first what it does
template <class T>
void myVector<T>::grow(){
while(size >= capacity) { ... |
Forum: C++ Mar 1st, 2007 |
| Replies: 19 Views: 52,522 Check out this code
std::string str;
cin>>str;
transform(str.begin(), str.end(),str.begin(), tolower );
cout<< str; |
Forum: C++ Jul 8th, 2006 |
| Replies: 6 Views: 2,618 The stack is a lifo(last in first out) based sequential structure. I think you don't need a double link list to implment it, you can implement lifo based list directly.
struct Node {
int... |