|
It's just a player codec, I think. Works the same as decoders for any other video format (such as divx)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Unfortunately not. I've checked, there's no MPEG2 decoder present as a vcm driver.
|
|
|
|
|
How can I get the hot spot from the cursor?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hello,
I have a SDI program that where I derived two classes from the CRichEditCtrl. In OnCreate inside the view I create the two rich edit controls (one takes up 80% of the view and the other takes up 20% of the view).
The problem that I am having is that if I do a SendMessage() inside of either of the rich edit controls or inside the view the SendMessage isn’t being seen by 9x machines. Everything seems to be working fine on 2k.
For example:
In my View I do a ::SendMessage(m_ctrlRichEdit1.GetSafeHwnd(),EM_SCROLLCARET,0,0);
Or
In CmyRichEdit1 I do a SendMessage(EM_SCROLLCARET,0,0);
The message isn’t being seen on 9x only..
What am I doing wrong?
|
|
|
|
|
As an experiment, see the message to main frame.
AfxGetMainWnd()
GetParent()->GetSafeHwnd()
Kuphryn
|
|
|
|
|
Well the message must be being sent, but possibly isn't being received correctly. Have you tried using Spy++ or WinSpector to watch the messages? Also have you checked the SDK docks for any differences in the Richedit control across Windows platforms.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Your right they are being sent.. Using spy++ I see the send and receive.. but I am unsure what this means.
R EM_SCROLLCARET fSentToEditCtrl:False
Does this "fSentToEditCtrl:False" mean that the message isn't being sent to the edit control even though the edit control sent the message?
|
|
|
|
|
Well I'm not too sure off the top of my head the exact meaning of the Spy info.
In CmyRichEdit1 I do a SendMessage(EM_SCROLLCARET,0,0);
This will send it to itself as you haven't spec'd pView->SendMessage().
Is it both of the SendMessage() cases you are having a problem with or just one?
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
when I do a pEdit->SendMessage or a SendMessage or a ::SendMessage the control doesn't do what it's supposed to on 9x, it works perfectly on 2k.. I do a SetSel(-1,-1) to move the cursor to the end of all the text then i do a SendMessage(EM_SCROLLCARET,0,0) to scroll the caret into view.. works great on 2k but it doesnt do anything on 9x the screen sits at the top while the the text piles up at the bottom.. such a weird problem.. I checked all the documentation and it says that every call I am making only requires richedit 1.0 supported in 95 and up.. sooo weird.
|
|
|
|
|
So I assume the caret moves correctly to the end of the control, but EM_SCROLLCARET isn't bringing it into view. Are testing the return values from SetSel() and SendMessage(). Try doing a search on MSDN for EM_SCROLLCARET and see what comes up. Or maybe don't use the RichEdit control.
Neville Franks, Author of ED for Windows. www.getsoft.com
|
|
|
|
|
Thanks for all your help.. I'll do some more research to see if I can't figure this out.
|
|
|
|
|
OK. I have an animation control which has the ACS_TRANSPARENT style. The AVI contains 16 color images (using a magenta background). Teh video displays fine on systems running 32 bit color depth. However, anything less than that is showing the magenta background instead of making it transparent. Does anyone have any suggestions on how to get this to work correctly?
Brigg Thorp
Software Engineer
Timex Corporation
|
|
|
|
|
How can create a browser, which can preview images as thumbnails.
I have about 50,000 images in a directory, and these images' size are different.
I want a purpose just like the win2K explore.
Thank you very much!!!
If you have any suggestion, mail me: dctao2@ie.cuhk.edu.hk
|
|
|
|
|
Dacheng Tao wrote:
I have about 50,000 images in a directory
Dang! I pity you ! just having 50000 items in a directory is hell enough !
But on the subject, a custom virtual list control ... look around here at code project ... I'm pretty sure someone already did the virtual list control. and if you look more closely, there's what you're looking for.
and if you want to do it yourself, an owner drawn list control is one way to go. and use CDC::StretchBlt to create the thumbnails to a fixed height or width constraint; you can save the thumbnails on disk once they are created for faster access the next time ...
Max.
|
|
|
|
|
Hi,
I create a progress bar in the status bar and it work fine.
But if i create the progress bar within a thread, the application seems lock and i can't close the app.
Anyone have an example how to create a progress bar in the status bar within a thread?
Thanks by advance for ur help.
I't very urgent.
Slts.
|
|
|
|
|
Your progress bar is in the main app and you want to update it from with in the thread? If so you will need to create a function in the main thread to update the progress bar then do a PostMessage from the thread.. When the main app sees the posted message it will update the progress bar for you.
|
|
|
|
|
i use CHtmlView to open a html file by funcion
Navigate2(fileName,0,0);
the html page is loaded properly, but:
if there is a java (1.2, swing) JApplet on the page, the JApplet class can not be loaded or displayed.
for java 1.1 Applet, it is all right.
if lanch the html file directly by IE (just double click the html file), JApplet is displayed well.
my question is: how to use CHtmlView to show JApplet?
(jdk 1.3 is installed in my machine)
thx for any advices.
includeh10
|
|
|
|
|
API functions (look them up):
1) CreateDirectory and RemoveDirectory
2) MoveFile
Jason Henderson start page ; articles
henderson is coming
henderson is an opponent's worst nightmare
* googlism *
|
|
|
|
|
Hi,
i checked them both from MSDN library i found two commands _mkdir and _rmdir but i need more than that. i need to know how can i create dates 14112002 format. 15,16,17 .. and deleting 13,12,11...
Do not understand the movefile function as well.
i need to write all in basic c++ format will do.
Thks for your advice.
|
|
|
|
|
Look up _strdate and fwrite.
Jason Henderson start page ; articles
henderson is coming
henderson is an opponent's worst nightmare
* googlism *
|
|
|
|
|
Hello all,
I've done a service that sets a system wide keyboard hook, in order to be able to do this, I've done a DLL that installs a system wide hook in order to avoid the continuity of some keystrokes (alt+tab...).
The only problem is that there where some keystrokes that were not handled in that old version of that NTService + DLL... I need to handle those keystrokes that I missed before, but now I don't remember all the steps that I followed when I linked that DLL...
Now, after making the desired changes, when I try to build the DLL I get this compiler message:
--------------------------------------------------
Deleting intermediate files and output files for project 'SCT - Win32 Release'.
Deleting intermediate files and output files for project 'DLLSCT - Win32 Release'.
--------------------Configuration: SCT - Win32 Release--------------------
Generating Message Catalogue
MC: Compiling NTServiceEventLogMsg.mc
Writing .\MSG00000.bin
[00000003 .. 00000003] - 12 bytes
[40000000 .. 40000000] - 12 bytes
[80000001 .. 80000001] - 12 bytes
[c0000002 .. c0000002] - 12 bytes
Total of 4 messages, 100 bytes
Compiling resources...
Compiling...
DeshabilitarCtrlAltDel.cpp
main.cpp
NTService.cpp
SCT.cpp
Linking...
LINK : fatal error LNK1181: cannot open input file "..\DLLSCT\release\DLLSCT.lib"
Error executing link.exe.
DLLSCT.dll - 1 error(s), 0 warning(s)
--------------------------------------------------
I don't understand how should I have the .lib file in that folder if the compiler deletes all the files that are there, and moreover, I don't understand why there should be a lib file if the DLL is being created and the lib file is created by the compiler (if I remember it right... )
could you give me a piece of advice?
Thank you in advance
|
|
|
|
|
In your project settings are you pointing to \release\DLLSCT.lib? Maybe you need to change the link path.. Under project > Settings > (Link Tab)..
Just a guess..
|
|
|
|
|
I have an application that loads dlls which manipulate the applications document data by creating data within it.
However when my application deletes this data, it throws an exception because the some of the data it has was allocated from a different heap (the dll's).
Q. Is it possible to have a global heap available to both application and dll, where the app creates the document in the global heap, and the dll's can create data within it, which can then be destroyed by the application?
If so - how?
I recognise this could be a "bad" technique - (as a DLL may reference memory that has been deleted by the application) but my DLL's will only ever create data within the document, they will never re-reference data they have created.
Any suggestions?
|
|
|
|
|
makom42 wrote:
Is it possible to have a global heap available to both application and dll
You could use GlobalAlloc() /GlobalFree() , but this is basically Windows3.0 stuff.
MSDN suggests to use HeapCreate() /HeapAlloc() /HeapFree() .
It states specifically that the private heap that a DLL creates is only visible to this dll and the main process. If you can live with that, fine.
There may be better possibilities, but this one is one that works (if maybe a bit of a 'brute force' approach.
|
|
|
|
|
Nope - a heap private to the DLL is of no use at all.
Basically - I'm exposing the app's data structures to external dll's and allowing them to use methods within my objects to add data to the app's data.
But because the dll allocates the memory from it's own heap when the method is called, only that dll can unallocate the memory.
I need the DLL's to "create and forget", and allow the app itself to clean up all the data.
If this is not possible, then how would plugins for other apps (such as 3DS Max, Milkshape) create data within the app's heap and yet still allow the app to deallocated it?
|
|
|
|