|
|
Hi!
I have problems by using QueryPerformanceCounter(), I got the message when compiling;
QueryPerformanceCounter' undeclared (first use this function)
how will I declare it?
|
|
|
|
|
|
I have created a function to update data to paint, and I have put this into the case WM_PAINT (on the WindowsProcedure function), and it works OK when there is a change with the size, etc... but I would activate this functions from my functions, so I thought to call the SendMessage function, but it doesn't work. SendMessage (hWindow,WM_PAINT,NULL,NULL).
somebody can help me?
|
|
|
|
|
Try InvalidateRect(hwnd,NULL,TURE);
The World is getting smaller and so are the people.
|
|
|
|
|
|
i have create a sdi project, use class CEditView. i need to display some font in it, but the CEditView's Font is so ugly so i wanna change other one.
if you know please tell me. thanks.;)
hi i like it and want to make batter...
|
|
|
|
|
1.Create a CFont object.
2.Get the CEdit control from the CEditView
3.Attach the font object to the CEdit control by {CEdit}.SetFont({CFont})
regards,
Prakash.
The World is getting smaller and so are the people.
|
|
|
|
|
but where i put in these code to wicheh function? if i put wrong when i open other new fiel Vc will tell me i have a kill error...
hi i like it and want to make batter...
|
|
|
|
|
I need to use 2 usb keyboards but i must read their states separately
i can use CreateFile & DeviceIOControl but i don't know
name of keyboards (\\\\.\\????)
where i can find list of device names?
if someone knows usb keyboard name mail me
stpg@ukr.net
thanks
|
|
|
|
|
Hi all,
I am developing an Activex control using MFC. In that i am having some edit and combo controls. Can anyone of you suggest how to add tool tip for this controls.
Thanks & Regards,
Gopinath.S
Gopinath.S
|
|
|
|
|
I haven't tried it in ActiveX but I am sure CToolTipCtrl works the same way they do in another MFC app.
Peter Molnar
|
|
|
|
|
Hello all,
Who can give me a sample about how to use DrawCaption().
eg: There is a dialog without default caption as it being created. I want to draw it with the text "MY DIALOG" by calling DrawCaption(). But which paramenter in this function can obtain the text "MY DIALOG" ?
Thanks a lot
|
|
|
|
|
Hi,
Please help me regarding one serious problem in our applications observed recently.
We have developped a VC++ Console based application with windows socket programming and MSMQ's with Multi threading (Using MFC).
It will connect to a server through TCP/IP before start processing and it is a gateway kind of application which need to run for months with lot of load.
The problem we are facing is some times the application is disappearing with out any notification. Till now we observed that out of 3 instances of the same application running on the same machine, One instance got disappeared
We have incorporated ErrorLogging and Try-Catch mechanisms also But did n't observe any useful log.
I would like to know under what circumstances such an application can disappear.
Thanks in advance
Rams
|
|
|
|
|
May be it is terminated due to memory leakes.
The World is getting smaller and so are the people.
|
|
|
|
|
Hi Every one How to avoid Application failure or ASSERT Dialog when application crash.
I dont want famouse Cancel , Retry ,Abort or simple Ok , Cancel Dialog in release mode , to come up .
I want whenever any thing goes wrong , my application simply exit.no intimation to user .
EXIT on ERROR silently is what i want.
can anybody help....
No Worries!
|
|
|
|
|
First of all you wont have that famouse window in the release build.
To catch all the errors and simple get out, you can do this.
put a try catch around the message pump, and in the catch terminate the program
Regards,
Prakash.
The World is getting smaller and so are the people.
|
|
|
|
|
Last summer we had similar problems.
Finally I bought the book "Debugging Applications for Microsoft .Net and Microsoft Windows", written by John Robbins. You should find this at Amazon.
Also take a look at the www.wintellect.com[^] website, the employer of John Robbins, a company specialized in debugging.
Also take a look at the CodeProject articles in the Debug Tips section (http://www.codeproject.com/debug/[^]). Some of the articles mention how to catch application crashes.
Enjoy life, this is not a rehearsal !!!
|
|
|
|
|
helloo
i want to get data from the http header or the packet like URL can u tell me about this that how can i get these things for the packet in ascii format i am already working on the Winpcap library i want this all in the c++ or vc using the api
best regards
|
|
|
|
|
|
An http requests of the client to the server may contain a request header and a request body (later only for POST requests). The response of the server to the client -almost- always consists of a response header and a response body.
What do you wanna get?
Peter Molnar
|
|
|
|
|
i want to get the request header from the packet and then the url so that i can open that very url request now can u tell me that how can i gewt the request header.from the client side.
du_aa
|
|
|
|
|
i want to get the request header from the packet and then the url so that i can open that very url request now can u tell me that how can i gewt the request header.from the client side.
du_aa
|
|
|
|
|
Are you on a server? Are requests being sent to your IP?
Then this is pretty easy: extract the request header from the begining of the data.
Peter Molnar
|
|
|
|
|
will u tell me plz that how can i get the request header from the begining of data what functions and api or coding will i use for it
regards
du_aa
|
|
|
|