|
khomeyni wrote: #include "/home/sajad/src/ds/test/hashfunctions/hash.h "
I see an extra space at the end of the string...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
oh ... excuse me ,i test it with devcpp and it does not have any error with it!!!
thanx.
|
|
|
|
|
i am looking for for this code.
if you have it, please share.
|
|
|
|
|
Would you please stop asking for full code ? Please read the posting guidelines and try to start by yourself. Once you are stuck, come back with a specific question.
Besides, your question as it this now doesn't make any sense...
|
|
|
|
|
Please ask of google for full code not us.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Yesterday you were asking "can you define polygon?" and now you are asking for that?
I would suggest you to go back to school, and restart the whole mathe contents.
BTW, if you want us to make your homework... you should considering hiring someone and pay his/her salary. Otherwise you are not going to get any other "full code" from people here.
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
*
**
* *
* *
* *
OOOOOOOOOOOOOOOOOOOOOOOO######
O #######
O ########
O #########
O ##########
OOOOOOOOOOOOOOOOOOO###########
* *
* *
**************
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Nice ASCII art
|
|
|
|
|
Agree with cedric
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Use GPC - General Polygon Clipper.
-Saurabh
|
|
|
|
|
thank you all of you.
i try myself to finish my homework now.
my teacher only gave some guides to do.
i am begin to solve another home work.
beside , i am a math student , not computer programming student.
|
|
|
|
|
Hi,
In my coding i initialized null to CString.Im comoaring NULL character to that string.But it returns wrong value.See my code.
CString ExeMonFile=_T("");
int NoExeMonFile=1;
if(strcmp(ExeMonFile,"")!=0)
NoExeMonFile=0;
By debugging the NoExeMonFile became 0.
Then i found that ExeMonFile is initialized to some other text.How its possible.
I declared ExeMonFile Globally.
Im using VS2008.Whats the betterway to initialize CString .
Anu
|
|
|
|
|
Anu_Bala wrote: CString ExeMonFile=_T("");
You dont need to intilalize CString , the constructor of CString will take of this. By default it will set the CString to an empty string.
Anu_Bala wrote: if(strcmp(ExeMonFile,"")!=0)
The best way to check wheather a CString is empty or not is to use the IsEmpty() function of CString .
|
|
|
|
|
But in my applcaiton in default it will assign to some "BL001" not only for this CString.
Whatever CString im using in this applcation all are initialized to this "BL001".
Just i converted VC++6.0 to VS2008.
After that only this problem arised.
Anu
|
|
|
|
|
How did you verify the content in the CString? while debugging or you tried to display the content in some message box?
If the optimisation is no disabled, there is a chance that the debugger show incorrect value while debugging( check project properties->c++->optimization )
|
|
|
|
|
My optimization setting is Disabled (/Od)
While debugging while keeping cursor on this CString variable it shows "BL001"
Actually BL001 is one term stored in char szModelName[10].
But why its get copied in all CString varialbes used in various classes.
Even in some dialog,in edit boxes it displayed to BL001 instead of empty box.
Anu
|
|
|
|
|
Thats bit strange. Some memory corruption I guess.
Let me ask. Have you called CString::GetBuffer() at some place and didnt call CString::Releasebuffer()?
|
|
|
|
|
When i searched for GetBuffer() in my coding,i get four or five GetBuffer() lines.
But unfortunately there is no ReleaseBuffer().
But where i using GetBuffer(),that CString is not related to above mentioned CString.
Im confused may it cause problem to all CString varialbles?
Anu
|
|
|
|
|
Anu_Bala wrote: Im confused may it cause problem to all CString varialbles?
Cannot predict what all can happen if memory corruption occurs.
|
|
|
|
|
You can use CString's Compare() function.
|
|
|
|
|
Anu_Bala wrote: CString ExeMonFile=_T("");
int NoExeMonFile=1;
if(strcmp(ExeMonFile,"")!=0)
NoExeMonFile=0;
Why do you mix the _T("") literal with the "" one?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
My problem is ExeMonFile is not initialized to null,
Its have someother value.
In my applciation all Uninitialized CString Value have this ex:BL001 string.
Even when initialized with _T(""),
it doesnot get initialized.
Anu
|
|
|
|
|
Anu_Bala wrote: Even when initialized with _T(""),
it doesnot get initialized.
You know that is a nonsense, doesn't you?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Bytes following a null byte are not compared.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
hi,
i want to send a click message to a window button. i am able to enumerate the window and also find the handle of button as well but not able to send the click message. Actually the default focus is set on some another message if i send BM_CLICK message that call goes to other button not the one i am sending..... attached code is below
CWnd* pWnd = NULL;
CWnd* pWndBtn = NULL;
DWORD dwErr = 0;
while(true)
{
CWnd* WindowHandle = NULL;
CWnd* ButtonHandle = NULL;
WindowHandle = FindWindow(NULL, L"Microsoft Office Outlook");
if(WindowHandle)
{
ButtonHandle = FindWindowEx(WindowHandle->GetSafeHwnd(), 0, L"Button", L"Allow");
if(ButtonHandle)
{
CString strWnd ;
ButtonHandle->GetWindowText(strWnd);
WindowHandle->SetActiveWindow();
ButtonHandle->SendMessage(BM_CLICK ,0,0);
}
}
}
plz help.. i tried even setting window active also but dint work
|
|
|
|