|
Opps, I have very bad spelling which is obvoius from my last reply.
Sorry.
|
|
|
|
|
I also encounter IDE pauses frequently but they are usually no longer than 2 or 3 seconds.
You didn't say what kind of system you had, buy my system is a 800 MHz P3 it may be fast enough to make the pause less noticible.
You are probably right about the delays being caused by intellisense. I thought about turning it off until it dawned on me how much I use it
|
|
|
|
|
I don't think my system has much to do with it, before the move to Windows 2000, I was using a dual P2 450 with 128 MB RAM (NT4 SP3), but now I have a dual PIII 650 machine, with 512 MB RAM.
I also can't live without intellisense, it would require learning a hell of a lot about MFC that I don't want to, and don't have the time to.
|
|
|
|
|
I have experienced (1), (2), and (4) on both NT4.0 SP 6.0a and Win2000 SP1. I have never experienced 3 on either operating system. I was really hoping that DevStudio SP4 would fix (1) because that is the problem I see most frequntly.
|
|
|
|
|
You said that you were hoping VCPP SP4 would fix the problem, did it?
|
|
|
|
|
Hi Everyone,
How do I get the dialog box of Open & Save to come up?? (like the ones you see when you want to open and save a document in Microsoft Words).
I tried using CFileDialog but I'm having trouble. I'm not sure if I'm putting the wrong things in the parameter or what. I also get this error message of "failed assertion".
If anyone have any codes on an example of how to get the dialog box to work, please let me know.
Thanks in Advance!
Steve
|
|
|
|
|
Hi Steve,
That should be pretty simple:
CString filename;
CFileDialog opendlg(TRUE, NULL, NULL, OFN_HIDEREADONLY,
_T("Text files|*.txt;*.doc|Images|*.bmp;*.gif||"));
if (opendlg.DoModal() == IDOK)
filename = opendlg.GetPathName()
This code works for a single selection dialog. At the end you have the complete name of the selected file in the filename variable.
This should help you getting started, but refer to MSDN for a complete explanation.
Cheers,
Paolo.
|
|
|
|
|
I am using GetDIBits()
function for a Win NT VC++ application
I need to use it for a Ce application but the function
GetDIBits()
is not available for CE.
So please suggest a replacement function
or an alternative approach
Thanks in advance
|
|
|
|
|
I found the article, "A DIBSection wrapper for Win32 and WinCE", at http://codeguru.earthweb.com/ce/DIBSectionCE.shtml
It may help with DIBs under Windows CE.
gl
Jonathan Craig
|
|
|
|
|
Where can I get a freeware memory-leak detection tool, like the (more advanced) Boundschecker?
|
|
|
|
|
Hi,
I've never heard about free tools like this...
BoundsChecker is a good staff and it worth spending money.
Regards,
Alex Gorev,
Dundas Software.
|
|
|
|
|
Or he could set out to write his own... not that I would recomend it...
|
|
|
|
|
If you are using MFC, MFC has built-in leak detection. It's not exhaustive, but it's free and already available.
Read up on CMemoryState and AfxEnableMemoryTracking() .
|
|
|
|
|
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
|
|
|
|