|
Is that the actual code?
If so, you're creating a local window class object, and hiding it. You're not hiding the parent window at all, since that object isn't the parent window
|
|
|
|
|
Hi
Is there any method to set an image for edit control ???
Sunil
|
|
|
|
|
Override OnEraseBkgnd handler of CEdit and load/draw your bitmap there(BlgBlt etc)
redindian
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
|
heh thanks,,, will try it out
Sunil
|
|
|
|
|
Dear All,
When using pointers , I am getting error like "Access Violation".
What it is ? Why this is coming ?
I know this seems to be a silly question. I dont know any other way.
Help me ...
thanks.
|
|
|
|
|
It is because you access memory that you shouldn't. You probably read or write at an invalid address (0x0000000 or an unitialized pointer). Use your debugger to see where it happens.
|
|
|
|
|
Probably you would be writing to some invalid memory location that you have not yet initialized,
Try using the debugger to get to the root of this problem.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Or you are probably trying to deallocate block of memory which was allocated by another dll
redindian
|
|
|
|
|
Sakthiu wrote: When using pointers
Careful..you could put an eye out with those things!
|
|
|
|
|
Hi all
In a dialog call proc the following lines never allow me debug the block contained as below...
#ifdef _WINDU_SOURCE
case WM_ERASEBKGND:
{
InvalidateRect(hDlg,NULL,FALSE); // ensures painting of buttons in front of background bitmap
if(GetDlgItem(hDlg, IDB_KEY1))
DrawKeyBackground(hDlg, IDB_KEY1, IDB_KEY_MAP_1);
return 0;
}
#endif
I put F9 at DrawKeyBackGround() function but debugger disabled it and I could not debug this function . What is this _WINDU_SOURCE ?
redindian
|
|
|
|
|
It's a pre-processor macro which means that it will be checked before the compilation. If you cannot debug there, it simply means that the macro is not defined thus no code is generated for this section.
|
|
|
|
|
I do not understand . In fact the function inside the block is very important so that the bitmap itself is BlgBlt there . So if code is not generated for this function then the bitmap could not be displayed - but it is displayed !!
redindian
|
|
|
|
|
This code is for the WM_ERASEBKGND, not for the WM_PAINT message. So, probably there is something also for the WM_PAINT message.
|
|
|
|
|
I want to catch the stream which is being sent to the console when an exe file is run on the commandline. Is it possible.
KIRAN PINJARLA
|
|
|
|
|
kiran.pinjarla wrote: catching ouput stream
Hello,
You can that by typing like this
cmd > file.name
regards,
Divyang Mithaiwala
System Engineer & Software Engineer
|
|
|
|
|
Thank you. But i dont want it to be redirected into a file. I want to copy it directly to the buffer in the program at runtime.
Is it possible?
KIRAN PINJARLA
|
|
|
|
|
Search for "reading IO stream or buffer"
redindian
|
|
|
|
|
Sorry for posting an incomplete question.
My question is...
I want to run another exe from my application as console and want to catch the output into a buffer of this application without redirecting into another file.
KIRAN PINJARLA
|
|
|
|
|
Well , whether you launch another application or not , whatever in output buffer can be read if you read the IO stream .
Note :
Use CreateProcess() (if you want to posses the handle of child exe and destory it ) or ShellExecute() to launch another exe
redindian
|
|
|
|
|
Thanks for clarifying. See here and here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
What are the registry names for document files,Picture files and music files.Can any one let me know about them.
Thanks.
|
|
|
|
|
elobrate your real time behavior then I could give you more inputs
redindian
|
|
|
|
|
I want to add menu item (copy to application) when i right click the mouse over document files,picture files and music files.My aim is if we select the menu item that particular file will be added to the application(i.e,the place where the current application exists.For that i want Registry names.Also i have one doubt.I want to display the menu item in the menu when my application runs and that menu item should not exist after i close the application.Any ideas regarding this.
Thanks.
|
|
|
|