|
Have tried a lot of logging techniques (log to .txt and so on)
Anyone got a easy and good way?
APe
|
|
|
|
|
|
Hi,
How do I append a text in a edit box. I tried various methods, but they could just overwrite the previous line ,but couldnt append..
Any suggestions?
Thanks
Deepak Samuel.
|
|
|
|
|
CString str;
editvar.GetWindowText(str);
str+="appended text";
editvar.SetWindowText(str);
Thats it!!
Cheers
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
I think what you want is something like:
SendMessage(hWnd, EM_SETSEL, -1, -1);
SendMessage(hWnd, EM_REPLACESEL, Undo, Text);
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I am not so familiar with VC++ and I am facing a problem that seems too easy to professionals.
I have created a dialog based application with VC++ wizard but on the taskbar only the button for the first dialog is displayed. If I try to add more dialogs and their related dialog classes into the project, they do not have their own taskbar button so I do have to use alt+tab to swap among the dialogs. Any ideas?
|
|
|
|
|
|
That's the normal behaviour...
maybe create the other dialogs modeless with a NULL parent (or desktop window as parent ).
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
Items only appears on the taskbar if they children of the desktop window (like the standard modal-dialog-based app is). If you want your other dialogs to be on the taskbar, you'll need to either make them modeless with the parent as the desktop window, or to write a separate modal-dialog-based app for either dialog you want to be separated.
The kindest thing you can do for a stupid person, and for the gene pool, is to let him expire of his own dumb choices.
[Roger Wright on stupid people]
We're like private member functions
[John Theal on R&D]
We're figuring out the parent thing as we go though. Kinda like setting up Linux for the first time ya' know...
[Nitron]
|
|
|
|
|
hy,
i have a console application and i need the path where the exe is located, is there a function which can get me the path ?
Thanks in advance!
|
|
|
|
|
Another solution is GetModuleFileName().
Kuphryn
|
|
|
|
|
I'm beginning to program OpenGL animation, there are two ways to select.
The first is to set PFD_DOUBLEBUFFER flag, in CMyView::OnDraw(CDC *pDC), use SwapBuffer() to show the image, as almost all tutoral said.
The second is to create a DIB using CreateDIBSection(), select it to MemDC, then using wglMakeCurrent() to connect the existed RC with MemDC, thus all the OpenGL commands will draw to the DIB. in OnDraw(), only BitBlt() the DIB to pDC.
In my old machine, which is PII / 128M memory / Savage3D display card, method 2 seems more smooth than method 1.
But I'm afraid, if using the display card with OpenGL supporting and optimizing, method 2 will not be able to take the advantage of the computing ability of the hardware, then method 1 will be quicker and smoother than method 2?
Another puzzle is DOUBLEBUFFER also first draw to main memory (not relate to display chips?), only after drawing finished, the result is shown (copy to display memory).
Is it means that it doesn't / cannot use the calculating ability of the display chips?
|
|
|
|
|
|
in a Document-View application, a modeless dialog is created and shown, the
dialog is very big, so when the user click the frame window or the view, he
wants the dialog not to stay on top. i tried SetWindowPos, but it seems not
work.
|
|
|
|
|
I don't believe there's a way around this. It's the nature of modeless dialogs (they're always on top of the parent window). You might want to consider making the dialog smaller or at least resizable.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
making Desktop parent of child dialog might help
No Worries!
|
|
|
|
|
Why not to use CFormView instead of dialog?
So, you can have your windows managed like cascadely, tile horizontally and tile vertically.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
I am new to character set conversion.
Could you write some simple code in C++ to print some Unicode character such as '\u0041' and '\u4EBA', where '\u0041' is 'A' and '\u4EBA' is a Chinese character.
And what if i want to print some character that is from a system support UTF-8?
Regards
World on the way
|
|
|
|
|
Consider using CString (if you can use MFC). It supports UTF-16.
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I have some doubts in virtual base pointers.
Say, If I inherit class B from class A virtually, like this:
class B : virtual A{
};
I presume, instance of B will contain a vbptr. My question is, where this vbptr will point to, or in other words, what is assigned to vbptr ?
Will it be pointing to the base class object A / to a virtual table ??
So Can anyone pls. tell me how vbptrs are implemented under the scenes.
|
|
|
|
|
The compiler figures out the layout of classes/structures in memory. Normally, there is a fixed offset from a pointer to a class object to a pointer to one of its members, sub-objects or base objects, and the compiler can figure out this offset only from the class definition. However, if class B has a virtual base A, the offset from a pointer to B to A is only known when the complete object C that may have multiple base classes that virtually inherit from A is defined. Since a lot of code will be using B without having any idea what C it may be a base object of, classes with virtual bases require a level of indirection. A hidden member is added to B (which you are calling vbptr) that points to the base object A. Code that references A through a B object is transparently changed to use this hidden member to find A at runtime, instead of relying on a fixed offset defined at compile time. When the compiler generates code to create an object of type C, it knows the layout of the complete object and will set the hidden member in B (and any other class with virtual base) appropriately (note that the object code to do this can not be incorporated in the constructor for C, since the constructor may be called when C is a sub-object rather than a complete object; instead the code is generated when the complete object is instantiated on the stack, globally or with new).
Virtual method calls with virtual base classes get really complicated. The compiler has to generate a vtbl for A for each complete virtually derived class C looking at the whole network of base classes in C.
|
|
|
|
|
Anybody having some experience of working with Garmin or some other GPS plz tell me if write a program to configure my serial port ( baud rate, parity bits etc) and read ,write to serail port, can i simply read the string containing latitude, longitude etc information??? or i must have to implement Garmin's protocol or NMEA 2???
plz help!!
Thanks
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
Try Garmin's web site, you will find all the info you need there. From memory I think you can configure the GPS to do either.
or try:- http://gpsinformation.net/[^]
"Committee--a group of men who individually can do nothing but as a group decide that nothing can be done." - Fred Allen
|
|
|
|
|
I need regex's head file and lib file.But I can not find it.
Could you pls give me the address to download?
Thanks!
|
|
|
|
|
Who I have writen the code on voice chat between a client and a server not p2p.I have a question to ask:I combine the server and client( both are in P2P)to a new server ,why the new server can't work
|
|
|
|