Search Results

Showing results 1 to 26 of 26
Search took 0.01 seconds.
Search: Posts Made By: Laiq Ahmed
Forum: C++ Aug 19th, 2009
Replies: 10
Views: 441
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
What are the values of RECT members?
Forum: C++ Aug 12th, 2009
Replies: 3
Solved: typedef enum
Views: 1,408
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Solved: loading bitmaps
Views: 503
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
Forum: C++ Aug 10th, 2009
Replies: 12
Views: 1,652
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
What about Buffer Overflow? :P
Forum: C++ Nov 26th, 2008
Replies: 4
Views: 1,096
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Solved: Ports?
Views: 500
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
Narue its a part of utility.h in VS2008 and in Utility.h and xstring on VS2005.
Forum: C++ Mar 31st, 2008
Replies: 4
Solved: class
Views: 590
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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
Posted By Laiq Ahmed
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...
Showing results 1 to 26 of 26

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC