|
hi
i have a task to implement VoIP but i dont have any idea about it ... i have read some tutorials about VoIP and got some basic idea... but i dont have any clue how to implement it in vc++.... is there anybody who can help me in this problem ...
ill be gratreful
regards
ali hammad
|
|
|
|
|
hi
i have a task to implement VoIP but i dont have any idea about it ... i have read some tutorials about VoIP and got some basic idea... but i dont have any clue how to implement it in vc++.... is there anybody who can help me in this problem ...
ill be gratreful
regards
ali hammad
|
|
|
|
|
What exactly is your requirement ..?
Dharani Babu S
|
|
|
|
|
how to use flash in vc++.
|
|
|
|
|
const UINT msgID = RegisterWindowMessage("SomeString");
.
.
.
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case msgID:
// do something
}
}
after compile, the error is :
error C2051: case expression not constant
why?
thanks
|
|
|
|
|
Hello ting668,
C/C++ compilers require the switch/case statements to use constant literals or macros (that work out to actual literal values).
A statement like the following :
case msgID:
is no good to the compiler because the compiler does not know what "msgID" is during compilation.
Regards,
Bio.
|
|
|
|
|
Because the value of msgID is not known at compile time, it is generated at run time, and the compiler must know the value of any constant used in case statements. You have to use an if else construct for registered messages.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
i think ,you go for if statement for resolving Registered message id before Switch statement
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
ting668 wrote:
why?
Case expressions must be integral constants.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hi, can anybody tell me abt how to find vendor of a scsi hard disk using c++ ?
As SCSI command: READ_CAPACITY does not give u this information
Thanks & Regards
|
|
|
|
|
Anonymous wrote:
Hi, can anybody tell me abt how to find vendor of a scsi hard disk using c++ ?
The vendor's name is typically not part of a piece of hardware. Are you perhaps referring to the manufacturer's name (e.g., Seagate, WD, Hitachi)?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Hello all.
I am creating a CRichEditCtrl derived class, and I want it to be always a read-only edit box.
I guess I should use somewhere the SetReadOnly() function but, which method should I overwrite?.
I have created a Dialog with a CEdit, I've used the class wizard to add a control variable for the CEdit, and I've writen my clase name instead the CEdit one (the usual procedure, I think).
I've tried to overwrite several functions, like OnCreate, but they are never called (I'm sorry about my ignorance
Thanks in advance.
|
|
|
|
|
cbusgut wrote:
I guess I should use somewhere the SetReadOnly() function but, which method should I overwrite?.
Have you tried PreSubclassWindow() ?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thank you very much. That was what I was looking for!
|
|
|
|
|
Hai Frens
I am facing a prblm with modeless dialog.
I am taking the parent for child dialog as desktop passing GetDesktopWindow() function in Create() func of dialog. Now the prblm is once i close the child, the parent is not getting enabled automatically. Only if i click it will get enabled.
What i want is the parent should get enabled automatically if i close the child. . .
Could any body help me to get it out this prblm. . .
thanx
bye
|
|
|
|
|
on WM_DESTROY of your modeless dialog set the focus to the desktop window...
Hope this helps you,
Greetz,
Davy
|
|
|
|
|
My application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop?
Thanx
|
|
|
|
|
uueeMy application is a SDI and i am invoking the modeless dialog from the menu item click. Once i close the dialog the SDI should get enaled. Which function i have to use set the focus for desktop window. . .weather i have to set focus for SDI or desktop?
Thanx
|
|
|
|
|
I think this should set the focus to the main window of your app...
::SetFocus(AfxGetMainWnd()->m_hWnd);
Greetz,
Davy
|
|
|
|
|
sorry Davy. . .Its not working.
I tried it by placing the ::SetFocus(AfxGetMainWnd()->m_hWnd)func in the OnDestroy()func of child.But its not working. Do u have any other idea.
Thanx
|
|
|
|
|
Hi,
Try using SetWindowPos. Have a look @ msdn. i think it is having some same source related to it
Sujan
|
|
|
|
|
Hi
sorryI am not replying your message. ButI wantto knowhow I can also make my name go scrolling as ur "BARIN" does here ....Could u tell me ?
Dharani Babu S
|
|
|
|
|
Actually I tried to make new window which is applied setWindowRegion.
the region was got from BeginPath TextOut EndPath CRgn::RegionFromPath
then make window itself fade out on timer event..
Does that make sense?
But the region which has text area is not neat..
So, I want to listen your opinion..
How can I make text fade out on screen..
the text should have transparent background..
Does anyone have idea?
|
|
|
|
|
Draw text into a transparent window - the background will show through the window and you can see your text.
Change the alpha or gamma of the transparent window over time?
Thus causing your text to disappear?
|
|
|
|
|
if drawing text onto the transparent window,
I wont be able to see the text...
right?
|
|
|
|