|
Sounds like it is an IDE feature, not C++ design.
Kuphryn
|
|
|
|
|
hy, sorry, i do not understand your answer at all, could you please explain?
thanx, greetz
|
|
|
|
|
I am saying the problem is with Visual C++ debugger, not your application.
Kuphryn
|
|
|
|
|
hy, i dont think the problem is the debugger,or how could this be?
what am i doing wrong? im working with visual c++ since 2 years now, and never experienced a similar problem. how can i solve the problem?
|
|
|
|
|
Probably you are doing something like this: (normally more complicated, but the same thing)
CString *p = NULL;
p->Trim();
Calling a method on a NULL pointer may cause the problem you're describing.
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
I think that you don't get the point of what he is asking. I think that he wants to know WHY the subsquents aren't initialized. You are only showing the effect of it, but I think he is AAAARGH-ing about the not-being-constructed of the CString-members in his class.
And btw, I have no idea what he could be doing wrong. This is really weird... a member var should be constructed if it shouldn't be a pointer but a physical instance...
|
|
|
|
|
I have been using GetOpenFileName for quite some time in many programs to open files. However, I have not found a way to select what "view" style is used with the Open File Dialog appears such as "Thumbnail", "Filmstrip"...so on.
Is there a way of pulling up the Open File dialog and defaulting that dialog to be one of the views such as "Thumbnail"?
|
|
|
|
|
Hi,
I would like to get the source code for an Editor (in VC++), with Auto-complete feature,and syntax highlighting, just like what we have in Visual Studio. pl. send me the URLs / Project name, if you have come across any thing like that in the net b'for.
Thanks in Advance
Jagadeesh
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
You could try looking at "Crystal Edit" and "Brainchild", for syntax coloring, at codeproject. As for Auto-complete, you may what to search www.sourceforge.net.
INTP
|
|
|
|
|
Just found this "Using Scintilla for syntax coloring in MFC" at codeproject.
The article recomends going to www.scintilla.org for information on regular expressions, auto-complete, etc...
Good Luck!
INTP
|
|
|
|
|
I have created a program in VC++(MFC programming) using ListCtrl and MSFlexGrid control(This both have pasted in separate Views). I want to move the focus from ListCtrl to MSFlexGrid control and vice versa. Will anyone help me how to set the focus from List control to MSFlexGrid control.
Ramanan.
|
|
|
|
|
You need the a handle to both the items in one place and them simply say SetFocus.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
Have you tried the SetFocus() member functions for their respective CWnd-derived control wrappers?
i dont think MsFlexGrid has a CWnd derived wrapper, so you could simply send it a WM_SETFOCUS msg.
HTH
|
|
|
|
|
How can I read the file size and based on the size an action will be triggered?
C++/VC++
Any help will be greatly appreciated
|
|
|
|
|
Getting file length:-
DWORD length;
CFile file;
file.Open ("c:\\myfile.dat", CFile::modeRead | CFile::shareDenyNone );
length = file.GetLength (); // Will give you the file length.
Simple... isn't it ?
Regards,
Jijo.
Yesterday is history,
Tomorrow is a mystery,
But today is a present.
|
|
|
|
|
Are you looking to execute your code if file size is changed by some other user or application ??
greatest thing is to do wot others think you cant suhredayan@omniquad.com
|
|
|
|
|
When the file gets to certain size I will run another application
|
|
|
|
|
|
Is it possible to grab a certain pixel's color using WM messages?
If so, which WM should I send and what kind of wParam and lParam would I need to send?
Thanks,
~Mike
|
|
|
|
|
you can use GetPixel
COLORREF GetPixel(<br />
HDC hdc,
int nXPos,
int nYPos
);
why do you need SendMessage ?
|
|
|
|
|
Because I need to retrieve pixel colors from an inactive window..
Is it possible?
Thanks
~Mike
|
|
|
|
|
__Cerb wrote:
Is it possible?
not sure...
an inactive window isn't drawn!! .. needs to get the wm_paint to be redrawn..
|
|
|
|
|
What about ::GetDC(HWND hwnd) and ::ScreenToClient(HWND hwnd, LPPOINT lpPoint)
???
is there a way I could use those to get a pixel color?
|
|
|
|
|
Do I need to use ::GetDC, ::GetWindowDC, ::ScreenToClient, ::BitBlt, I really need to figure out how can I retrieve a pixel color from an inactive window.
Thanks a lot, any help greatly appreciated
~Cerb
|
|
|
|
|
if you have the window handle then use GetWindowDC to get the HDC (device context)
then use GetPixel directly...
but the problem is when the window needs repaint.. in this case it amy give you another color,,,
try this first and let us know the results
|
|
|
|