|
What timeout do you want to set?
Don't try it, just do it!
|
|
|
|
|
[SetSocketOpt]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi,
I'm planning to develop a small doc/view MFC application that logs a lot of text. Much of the text will need to be in color. There will be a LOT of text being logged...so I'm wondering what the "line" limitations are on something like this.
Is the default "view" generated with MFC the best for something like this? Something better?
Any other tips you might have?
Thanks,
Phil
|
|
|
|
|
|
i need a system of personal affairs assistant like ATnotes,which can be used like a reminder,i need vc source badly,please help me!thanks!!!
|
|
|
|
|
I think you have this site confused with rentacoder - they write full solutions over there. Here, we help people who are trying to write their own.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Look at the sample code below, I've been seeing "far" for a while in
other sample code. Can anyone tell me what it is?
typedef struct tagPENRECORD {<br />
DWORD dwPenType;<br />
POINT PtsToDraw[NUMPOINTS];<br />
<br />
} PENRECORD, *PPENRECORD, FAR *LPPENRECORD; <br />
Thanks
|
|
|
|
|
Back with 16-bit Windows, memory was addressed as segment:offset. You had "far" memory and "near" memory. That is no longer the case with 32-bit Windows. The preprocessor redefines both near and far to empty.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks David. Could you be a little more specific about near and far? I'm interested to know the difference between them back in Win16. Does it differ in Win32 today?
Thanks
|
|
|
|
|
The near/far difference is related to real-mode memory addressing on x86 CPUs. Pointers were 16 bits but you also had a 16-bit "segment" that determined which 64K block of memory a pointer was referring to. A near pointer was just the 16-bit offset, and could only point within the same segment. A far pointer was a segment+offset together, and could hold the address of any place in memory.
In Win32 protected mode, all that goes away. A pointer is a plain 32-bit address and near/far are anachronisms now. Pointers are of course 64 bits in Win64.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ
Strange things are afoot at the U+004B U+20DD
|
|
|
|
|
The Intel 8086 architecture used a segmented memory model, where each segment spans 64K bytes. "Near" pointers are two-byte values with an offset from a fixed segment pointer and can access only a single 64K segment. "Far" pointers are 4-byte values with a 2-byte segment pointer and a 2-byte offset and can access the lower 1 MB of memory (because the memory manager's address calculation shifts the segment pointer 4 bits before adding the offset). "Huge" pointers, which are four-byte values are actual four-byte addresses and can access any area of memory by copying through a window created by a memory manager.
In the old (20 years ago ) days, the Microsoft C compiler supported several executable targets: tiny (all code and data with in the same 64 K segment, required for COM format executables), small (code and data in separate 64 K segments), medium (far pointers for code, near pointers for data), compact (near pointers for code, far pointers for data), large (far pointers for both code and data), and huge (far pointers for code, data and static data).
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Everything you ever needed to know about near and far
Ryan "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"
|
|
|
|
|
What does FAR FAR mean, as in "A long time ago in a galaxy FAR FAR away"?
Can I access the value a variable had ten minutes ago on a different computer on the wide area network if I use the "long time ago in a galaxy FAR FAR away" syntax?
|
|
|
|
|
Ryan "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 need a method to render a Hit Dice rolling effect. For example, before the player hit the space bar, the dice will continuously rendering pic from 1 to 6.
My solution is to create a gif image that has that effect, and have the program load that gif image. Then when the player hit the space bar, the program will load another seperate image.
Do you have a better solution? How would you do it?
Thanks
|
|
|
|
|
Or you could have six different bitmap images, a timer set up, and for each WM_TIMER message received, display a different bitmap. Stop when the spacebar is pressed.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I have vc6 installed. Can I install vc7 and not mess up the vc6 installation?
I need vc6 because some of my projects use some old 3rd party libs that just won't compile under vc7 and I can't really go into the code and fix the issues.
I'd like to use vc6 for those projects, and use vc7 for everything else.
Possible?
|
|
|
|
|
Yes. VC6, VS.NET 2002, and VS.NET 2003 will install and run side-by-side with no problems.
The only caution is, if you open a VC6 workspace/project in VS.NET, VS.NET will convert the workspace/project to a VS.NET solution/project file. If you need to go back to VC6, there isn't a reverse conversion (at least in the Microsoft provided tools).
A similar caution exists if you open a VS.NET 2002 solution/project in VS.NET 2003. In this case, VS.NET 2003 will convert the solution/project to the newer format in-place. Unless you kept a backup, the converted solution/project will not be loadable by VS.NET 2002.
Software Zen: delete this;
|
|
|
|
|
Along with what Gary said, I run three versions of VC without any problem - VC6, VC7 (VC++.NET) and embedded VC (for WinCE)
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
Hi every body, how can i insert a bitmap in a combo box item, and show it?.
|
|
|
|
|
There are several articles in the combobox section that illustrate this. Here's just one from Mauricio Ritter that displays bitmaps in cbx items:
http://www.codeproject.com/combobox/multicombo.asp[^]
Cheers,
Tom Archer - Archer Consulting Group
"So look up ahead at times to come, despair is not for us. We have a world and more to see, while this remains behind." - James N. Rowe
|
|
|
|
|
|
How can I change the size of the 3 panes of the status bar?
(the one: m_wndStatusBar)
Thanks!
|
|
|
|
|
|
Can I cast BYTE* to char* , or BYTE* to CString and then back to BYTE ? What should I use for that ?
|
|
|
|