|
Hi,
I want to debug my application in release mode
,added debug info into the release,
which tool allow me to view more that just assembley when
running it on the client machine
dr. watson...?,windbg...?
what should i do .???
thanks
tomer
|
|
|
|
|
Did you remember to link with debug info, and also include the pdb file on the client (if that format was used)...
If so, and you wind up in a debugger, it should prompt you for the locations of the relevant source files and away you go...
|
|
|
|
|
|
Hi
I am in a project where i have
to capture a realtime network packet, analyse it and display it to the GUI.
I am using MFC for GUI.I have a special driver insatalled which captures the data
flowing on the network.I am able to trap , analyse and display the data,but i loose
packets as packets are comming at very fast rate. I am using two threads , one gives a
DeviceIO control to the driver to get the packet and writes to a buffer(This is in a while loop).
Another Thread reads from the buffer and displays it to a MFC dialog.
What i suspect is that,when the first thread in which i give DeviceIo Control is preemted ,
it loses packets(I mean to say that i need to give DeviceIo ctrl continuosly to get each and every
packet at the same time reader thread should consumes the written packet as soon as possible).
Both thread uses comman resource(Buffer where packets are stored).
I am not using UI Thread concept.I am creating thread by calling CreateThread API.
Can UI threads be used for concepts like this , if yes will they solve my problem
of losing packets.
Your responce will be very useful to me.
Thanks
Jan
|
|
|
|
|
Jan,
I had the same problem, we solved it by using a capture process and a analyze process and memory mapped files.
HTH,
Xcrypto
|
|
|
|
|
hi HTH
Can u please give some more details about how u used
memory mapped files.
Jan
|
|
|
|
|
Are there any tutorials or samples sources out there for creating a timeline editor (like those found in Dreamwaever/Flash/etc).
Maybe even in extension libraries like Stingray's of Dundas'?
I have tried creating one myself, but I just can't figure out how to do it.
Thnk for any help,
James Corrie
|
|
|
|
|
When I set a break point in the server project mfc disables the breakpoints. I select the debug executable (The client that exists on the same machine) by selecting the menu item
"project-Settings" and then going to the debug tab to choose the executable for the debug session. I didn't think setting up a debug session would be so hard. If you have any
suggestions on how to set this up I would really appreciate the help.
Thanks,
Steve
|
|
|
|
|
Have you tried attaching the debugger to the process? (from the VC IDE, Build | Start Debug | Attach to process). (Note - on w2k you might have to get the proc name from task manager).
I guess I'm suggesting that you have the server running, attach to that process, then run the client - or another copy therof - possibly triggering an _asm int 3 in the server code or some such.
Or try placing a DebugBreak() in the code instead of the VC beakpoints - that should invoke the crash dialog, and you can hit cancel to debug. The problem with this option may be the way in which a server process is subservient to the SCM, and subject to certain access restrictions (like the debug priv) that you wouldn't expect to be an issue. May just result in a serious hang of the server.
|
|
|
|
|
I want to change the size of close button (also, maximize and minimize)on the title bar of application.
and if i don't like " x " within the close button can i change it?
can anyone help me,please?
Thanks.
|
|
|
|
|
You can change the sizes of the buttons (not individually, but as a group) in your appearance editor in the Display properties (where you change colors and such). Just click on the buttons and change the size.
As for changing their appearance, That's much more difficult. Why not just get Window Blinds from Stardock (http://www.stardock.com/)
|
|
|
|
|
How I do to write (and read) text files in my VC++ application?
thank you
|
|
|
|
|
Hi,
You can use the Win32 file functions like CreateFile, ReadFile and WriteFile. You can find more information about it in MSDN.
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
Hi Antonio,
You may try CStdioFile, use WriteString() to write a line of text from a CString variable (but remember to append a '\n' to the string), and ReadString() to read a line into a CString.
Paolo.
|
|
|
|
|
I am using moveto and lineto in order to draw a line graph on a dialog. My question is how do I erase the last line in order to redraw the new line with the variables controlling the line changes.
|
|
|
|
|
Hi,
The easiest thing to do is to clear the background and redraw all the lines again.
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
How do you clear the background? Also, there are many edit boxes on the dialog that contain values associated with sliders, will these be cleared as well. I suppose I can just simple refill those values if they are. I am trying to find how to refresh the dialog to clear the lines, any help on this one?
|
|
|
|
|
and use LockWindowUpdate() on the control window first to stop the redraw being visible ... no?
|
|
|
|
|
hello,
I would grately appriciate an answer to the following
question, since ive tried to solve it myself for a long
time, with no effective results.
Im developing in VC++ (MFC), under WIN 95 OS.
Im trying to place in a CScrollView derived class, a large image (*.jpg, OR *.gif, OR *.bmp ) and zoom into it till 1000%. This is successful until 420%, but beyond that the program gets thrown out, and even harms other running applications.
I tried to use the methods "DrawDibDraw" and also "StretchDIBits", but was still unsuccessful.
I would greatly appreciate any help in this matter.
|
|
|
|
|
Most likely you are running out of memory when stretching the bitmap. Only draw the portion of the window that will be shown.
|
|
|
|
|
Depending on how large the bitmap is, you may be running into the 16 bit limitations of the Windows 95 GDI. This means your maximum number of pixels is limited to 32,000 pixels.
|
|
|
|
|
GDI and drivers just have lots of limitations you have to avoid. For example, they are basically 16-bit on Windows 95/98/Me, so any coordinate about 32767 would be troublesome.
For your problem, divide the bitmap into smaller pieces, or do multi-stage zommin using a memory DC.
|
|
|
|
|
How can I create the main window from a resource, instead of writing CreateWindowEx?
Thanks.
Erik
|
|
|
|
|
Unless your window is a dialog, you can't. Well, at least not easily (it would require reading the dialog resource template and creating all the windows and buttons based on that in your own code).
|
|
|
|
|
Hi all,
I created a OCX using MFC Activex Control Wizard. I also add a dialog
resource to my project. My dialog class name is CMyDialog. COleControl
drived class is CMyOCXCtrl. I created a pointer of the CMyDialog in
CMyOCXCtrl class (m_pDialog). From the OnCreate() function of CMyOCXCtrl
class, I create the dialog box ..see following code...
int CMyOCXCtrl ::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (COleControl::OnCreate(lpCreateStruct) == -1)
return -1;
m_pDialog = new CMyDialog(this);
if (!m_pDialog->Create( IDD_ADPWINDOW, this))
{
delete m_pDialog;
m_pDialog = NULL;
return 0;
}
m_pDialog->ShowWindow(SW_SHOW);
return 0;
}
After all of this process, I inserted the OCX in a VB form. It is working
smoothly.. but my problem is that, I cant switch focus to buttons by Tab
Key..
Tab key is not working.... Any comments are welcom.....
Thanks in advance,
Regards,
Kareem.
|
|
|
|