|
HI Friends,
I am creating the Thread using CreateThread API. Also I have Message Loop inside the ThreadProc . But I dont know weather the Thread as message queue or not.It need to be created or it exists by default.
Vikram
|
|
|
|
|
Every thread has a message queue, but you will only be able to use messages if you set up a message loop:
BOOL bRet;
MSG msg;
while((bRet = GetMessage(&msg, NULL, 0, 0)) != 0)
{
if (bRet == -1)
{
}
else
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
} Or something similar
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
|
I copied and pasted straight from the MSDN library, so I'd be worried if it wasn't right
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
|
Dear everyone,
We know that use FOP(Based JAVA) could convert XSL-FO to PDF,
but now we need develop the process(XSL-FO to PDF) with VC.
Could you tell me more information and resource about this?
Could you tell me where could find the free or payment dll or
ocx which could finish the function?
Could you tell me using which method or technology is better?
Welcome any questions! Many thks to u.
Bosicat
Good Luck
|
|
|
|
|
Hello,
I am trying to use the function lineGenerateDigits in order to send a sequence of number after the call is connected.
I call lineGenerateDigits and it's return code is 0. Then, my callback function recieves the message LINE_GENERATE, but the GenerateTermination parameter of this message is always LINEGENERATETERM_CANCEL. My program is waiting for this message so it is not possible that it is trying to generate another sequence of digits.
Any idea why my lineGenerateDigits fails?
Thanks in advance,
Liat.
|
|
|
|
|
From the docs:
"The digit or tone generation request was canceled by this application, by another application, or because the call terminated. This value can also be returned when digit or tone generation cannot be completed due to internal failure of the service provider."
Is your call to lineGenerateDigits() successful? (Does it return 0?). If so, then one of the conditions above has occurred (it's probably been cancelled by either your app or another app - do you have any other telephony apps running?). If not, then you've setup the call incorrectly somehow.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Thanks for the quick response.
The call to lineGenerateDigits was successfull. I am recording the call, so I can be sure that the call is still in progress. As far as I understand I can cancel the lineGenerateDigits by calling it again, which is something that I don't do (it is called only once, and I checked that this code is indeed executed only once). I also have no other telephony application running.
As for the last option, I guess that if I have set the call incorrectly it wouldn't have gotten connected (which I know is being done because I record it). Also, I compared my code with some other code examples that I found, and I couldn't find any significant differences...
Any other ideas?
Also, is there any way I can see what the problem was? Is there another way to generate digits?
thanks.
|
|
|
|
|
Sorry, my expertise on TAPI is very, very small . I find that some people just overlook the obvious, so that's why I responded like I did, but I haven't really looked at TAPI much.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Hi,
How can I get the list of all the entries in the registry?
My idea is to search each entry in the registry for a particular string.
any one can help me???
Thank you.
|
|
|
|
|
Hi,
you can use RegOpenKey(..) in loop , see MSDN for more help , u will find multible Registry functions to retrieve data from registry ..
hatem
|
|
|
|
|
I'd scrolled through the examples in here but i still don't understand those fancy codes. I'm just a few days old on MFC programming and i need something more basic examples for me to understand. Can someone guide me through this obstacle? Thank you in advance.
Question: how to implement a tree integrated into a listview?
|
|
|
|
|
Go here[^] and scroll down to "Tree/List Hybrids". There are five articles on this.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
If I load a transparent PNG (for example) and draw it using Graphics::DrawImage() , does GDI+ display the image transparency, or does it ignore it? I can't find any mention of this in the docs.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Yes of course*, DrawImage draws the image with the correct transparency applied. I've used it to draw PNG's on top of eachother with 8 bit transparency and works fine.
of course: That's because GDI+ is a sophisticated graphics api :P
|
|
|
|
|
Thanks . I thought it did, but I just thought I'd check.
Baris Kurtlutepe wrote:
That's because GDI+ is a sophisticated graphics api
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I can change the title at the top of my app window by editing the resource, but I that way is not dynamically.
I want to do it programmatically.
Anyone help me.
Thank you for your reading.
|
|
|
|
|
SetWindowText() should do the trick, if you are talking about a MDI project, take a look at the first 100 posts here in the forum, this question has been answered this week...
hope this helps.
|
|
|
|
|
Sorry for my bad english!!
I have a problem whit CMenu in my application under win98.
If i create an item with MF_POPUP propertie, when i use the application, if i go on this item whit thw mouse, the new submenu doesn't appear!
Someone can help me
Bye.
|
|
|
|
|
Any ideas? please shed light on this.
DJ
|
|
|
|
|
hi,
the best way to capture video , use DirectShow , youwil find many samples and help in MSDN : DirectX -> DirectShow , u can also see DirectX 9 SDK it contains more new feature and may help u.
hatem
|
|
|
|
|
I agree that DirectShow is the best way to capture video. Besides you can use Video For Windows for the same job, it's much clumsier compared to DirectShow but does not require DirectX.
|
|
|
|
|
Baris Kurtlutepe wrote:
but does not require DirectX.
Since DirectX has been bundled with Windows ever since Win98, that's not really a problem any more
But then again, VFW doesn't require you to know COM
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
I am not sure that this will work with windows NT (if that is a concern of yours) because WinNT has directX 3...
John
|
|
|
|