|
But I'm not familiar with Geometric Algebra!
L u n a t i c F r i n g e
|
|
|
|
|
So? When did that ever stop you? You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
|
Wow, I think you should really try to clarify your question because it is really undecipherable.
What is your question exactly ? I don't see any question in your post.
|
|
|
|
|
Hi, this is a main class for a program that I have and I want it to be a multiple run, to ask the user if he wants to enter another number
#include <iostream>
#include <conio.h>
#include "postalobj.cpp"
using namespace std;
int main()
{
int num;
postalclass pobj;
cout<<"Please enter the number of mailboxes for the Postal problem : ";
cin>>num;
pobj.setnumbox(num);
pobj.process();
getch();
}
|
|
|
|
|
zakria81 wrote: I want it to be a multiple run, to ask the user if he wants to enter another number
You need to:
a) Put in a loop. Since it should always execute at least once, a do {} while(); might be appropriate.
b) In the loop ask the user if he wants to enter another number. Based on the response, terminate the loop or continue looping.
This should be straightforward.Please do not read this signature.
|
|
|
|
|
Avi Berger wrote: Please do not read this signature.
My eyes!!!
|
|
|
|
|
Hi I have a CComboBox, I am populating items into that.
But when i run the code, the inserted items are getting sorted in the combo box.
But I want to keep the order of *inertion* in the display. How to do this?
Thanks
JC
CComboBox* comboComSelection;
comboComSelection = ((CComboBox*)GetDlgItem (IDC_COM_COMBO));
comboComSelection->ResetContent();
comboComSelection->AddString (_T ("COM1"));
comboComSelection->AddString (_T ("COM2"));
comboComSelection->AddString (_T ("COM10"));
( I need COM1, COM2, COM10 in the order, when combo box appears)
|
|
|
|
|
Hmm.. I got the answer.. disable the sort property in GUI.
|
|
|
|
|
TechAvtar wrote: How to do this?
By removing the CBS_SORT style. You can do this at design time or at run time."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi,
I met a problem with inserting a ole control into windowless richedit. I want the ole control draw something, and can response to the mouse-move, lbutton-down message and etc. The control has implemented IOleInPlaceObjectWindowless interface, and other necessary interfaces. But "OnWindowMessage" can't be called by richedit itself, so i have to query the IOleInPlaceObjectWindowless interface from IOleObject and call it. I am wondering why should i call the method myself instead of richedit. There is any suggestions from you? I am hoping for it.
|
|
|
|
|
Hi,
Is it possible to gain the style information of the drop down list of a CComboBox object?
I want to use it for reference to determine why a CListBox object I am creating does not behave in the same way.
TIA
Tony
|
|
|
|
|
Use GetWindowLongPtr with the handle of the combo box.
Specify GWL_STYLE as the second parameter.
It will return a LONG_PTR value.
Do a bitwise AND to check for the styles CBS_DROPDOWN and CBS_DROPDOWNLIST .
|
|
|
|
|
maycockt wrote: Is it possible to gain the style information of the drop down list of a CComboBox object?
Strictly speaking, a CComboBox object is not the same as a combobox control.
In any case, see if GetComboBoxInfo() is of any help."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi,
I have to convert a CString (ie. "5.00" or "5,00") to float using Comma as separator and obtains something like this as result 5,00000 .
Thank you for help.
|
|
|
|
|
|
it work now thank you
|
|
|
|
|
Thanks for acknowledging
|
|
|
|
|
Hello,
I´m developing a softphone and using asterisk 1.6 as server.
By sending audio from a wavefile in 20ms blocks over RTP, on the receiver
the stream will be played out too fast. If I´m doing a pause of 20ms before sending
each packet, it is played out well.
Is this problem on the timestamp?
I´m initializing the timestamp with 0 and then incrementing it with 160 like RFC 3550 said.
Before sending I´m converting the value with htonl() To Network Byte Order.
The softphone run on Windows.
What could I do false?
Best Regards,
Crazy
|
|
|
|
|
Could somebody know how to hide MFC dialog to tray icon in the bottomright Toolbar?
I can open the MFC dialog by click the tray icon or select some menu items I set.
|
|
|
|
|
They are two different things.
You can create a tray icon using Shell_NotifyIcon .
And you hide the dialog using ShowWindow(SW_HIDE) .
When the user clicks on the tray icon, you will get a notification message that you specified in the uCallbackMessage parameter of the NOTIFYICONDATA structure.
There you can create a popup menu using CreatePopupMenu and TrackPopupMenu .
|
|
|
|
|
Hi...
I have createed a dll. Name is
CMyClass
my main calss is
void CTestDLLDlg::OnOK()
{
CMyClass objMyClass;
UpdateData(true);
CString str = "Some text";
CString strResult = objMyClass.SayHello(str);
}
I have the foolowing function in MyClass dll
CMyClass::SayHello(CString strName)<br />
{<br />
Hwnd dlg;<br />
SetDlgItemTextW(dlg,IDC_EDIT1,strName);<br />
return "Hello " + strName;<br />
}
Dll class window id is IDD_DIALOG1 and class name is CMyClass. Here i have to set strName in IDC_EDIT1. How to do this?
Any help will be appriciated...
Thanks...G.Paulraj
|
|
|
|
|
Paulraj G wrote: Hwnd dlg;
SetDlgItemTextW(dlg,IDC_EDIT1,strName);
Here you are calling SetDlgItemTextW() on an invalid handle. May be you can pass a valid dialog handle to the function SayHello().
|
|
|
|
|
Hi All,
follow the following code please:
int i = 2;
i = ++i + (++i)
cout<<i;
logically the="" code="" should="" print="" value="" '7'="" but="" i="" am="" getting="" '8'="" as="" output.
why="" is="" it="" so?
thanks="" in="" advance
regards
pankaj<div="" class="signature">French is the language of love, for everything else there is c++ ...(anonymous)
|
|
|
|
|
You can disassemble and see how exactly the expression is evaluated.
When disassembled you can see something like follows which I think is self explanatory.
mov eax,dword ptr [i]
add eax,1
mov dword ptr [i],eax
mov ecx,dword ptr [i]
add ecx,1
mov dword ptr [i],ecx
mov edx,dword ptr [i]
add edx,dword ptr [i]
mov dword ptr [i],edx
|
|
|
|