|
|
Hi Again!
OK, Console app proj in VC++6, Compiled fine! Ran the EXE from dos! BUT got an ERROR!?
Here is the copy of my dos prompt stuff:
C:\gif>mygif
whirlgif Rev 3.02 (c) 1997,1998 by Hans Dinsen-Hansen
(c) 1995,1996 by Kevin Kadow
(c) 1991,1992 by Mark Podlipec
Usage: whirlgif [-o outfile] [-loop [count]] [-time #delay]
-disp [ none | back | prev | not ]
[ -i listfile] file1 [ -time #delay] file2 ...
C:\gif>mygif -o test.gif -loop 5 -time 5 -disp prev -i resume_s.gif -time 1 email_s.gif -time 1 orders_s.gif -time 1
whirlgif Rev 3.02 (c) 1997,1998 by Hans Dinsen-Hansen
(c) 1995,1996 by Kevin Kadow
(c) 1991,1992 by Mark Podlipec
Can't open GIF89ad for reading.
C:\gif>
You can see the line: Can't open GIF89ad for reading.
I feel !
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
WhirlGIF is a program to *create* animated GIF files; it does not
display them at all.
What seems to be searched for is MFC code to *display* animated GIF files.
|
|
|
|
|
Can't you CODE! Then drink the MAD COW's MILK!
Some people seem to wanna be BORN 29 years old READY! NOT 9 months! HEHE!
"Silence is golden, but my eyes still see."
-- Masoud Samimi
Website: www.geocities.com/samimi73
|
|
|
|
|
First, send Unisys a check for $2,500, unless your app can run on a server and work in real-time serving GIFs to network requests, in which case the price goes up.
And, you file a report to Unisys every 3 months detailing the number of copies of your app that you've sold, what the selling price is.
And if you're writing trialware or shareware, you have to ensure that people can't use the GIF capabilities for more than 30 days before registering.
And, before you do any of this, you have to sign a ten page contract, written by a very expensive lawyer stating that you will do all of this (and more!).
use PNG. GIF is weak.
-c
|
|
|
|
|
can we have animated png?
|
|
|
|
|
I have a very big word-list of a dictionary (up to hundreds of thousand) and I want my user can browse them in a list-box but the list-box is limited 32,767 items on Win9x, even if my app will run on
WinNT, I know, load entire word-list into list-box is not a good solution.
Can I implement virtual-list feature with list-box control ? and how ? I do not want to use list view control because I do not need conlumns, headers... they add much overhead.
Thanks for your helping,
Do Quyet Tien
|
|
|
|
|
why flickering during motion of text
|
|
|
|
|
given the great depth of information provided, I would suggest one of the following
1/ you are drunk
2/ your monitor is stuffed
3/ your glasses are dirty
4/ you need glasses
5/ you have a nervous twitch
6/ presuming for a moment that you are moving text in a window, the problem may be ( making gross assumptions about what you are doing and what your code looks like ) that you are using the dc provided in OnPaint directly ( or OnDraw ), when you should be drawing to a memory dc and blting it in one go, or using onPrepareDC, depending on which of the two methods mentioned you may, or may not be using.
In other words, I might know the answer, but it's hard to tell if you are not going to bother giving any details when asking the question.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Try to do something like this in the drawing routine:
CPaintDC dc(this);
Crect rcClient;
GetClientRect(&rcClient);<p>
CDC memDC;
memDC.CreateCompatibleDC(&dc);<p>
CBitmap memBmp;
memBmp.CreateCompatibleBitmap(&dc,rcClient.Width(),rcClient.Height());<p>
CBitmap *pOldBmp = memDC.SelectObject(&memBmp);<p>
dc.BitBlt(0,0,rcClient.Width(),rcClient.Height(),&memDC,0,0,SRCCOPY);
memDC.SelectObject(pOldBmp);
Hope you can use this.
Enjoy!
Marc
|
|
|
|
|
why flickering during motion of text
|
|
|
|
|
Hi,
I am trying to invoke HtmlHelp from a MFC SDI Application by using the 'HtmlHelp' API call. I have obtained a compiled html file (*.chm) from a third party. The problem is that when I invoke HtmlHelp, it comes up fine but when the application terminates (Normal shut down - pressing the close button of the FrameWnd) an exception is raised (in debug version of the application, a debug assertion is raised).
I have tried creating a sample MFC (SDI) exe and call the *.chm file from it. In this case it works fine. So I guess there must not be any problem with the *.chm file
Regarding my application, some points are
1. I am using Sting Ray Objective Grid to implement Grid facility in some dialogs
2. When my application was initially generated using MFC AppWizard, I had selected Context-Sensitive Help. But I am not using that anymore as I am going for HtmlHelp. Is there any way to turn Context-sensitive Help off. Could that be causing the problem?
3. Is there anything specific to be taken care when 'HtmlHelp' API is used? I have tried using NuMega BoundsChecker to locate the problem. BoundsChecker says that 'possible wrong usage of CreateThread function, _beginthreadex has to be used' Does HtmlHelp API create a new thread by itself?
I would be grateful if any one can help me out...
Thanks,
Unni
|
|
|
|
|
What's the ASSERTion?
Possibly involved with trying to free up the help path string, which is now kafuffed (sp) because you are bypassing the regular help init? BoundsChecker would probably flag that one as well though. Press 'retry' on the assert dialog...
|
|
|
|
|
I wonder if anybody can help.
I want to do an HTMLEncode in VC++ with minimal runtime dependencies. A lot of ASP/Site Server/Index Server objects have this - but surely this is a utility function and shouldn't be associated with a server instance ?
Does anybody have any code to do this, or know of any library routines - that will probably be installed on the client machine ?
TIA
JoeW
|
|
|
|
|
Does anyone know how to display the "Open with.." dialog? The solution doesn't have to be MFC - a hint towards the solution would be great.
With best regards,
Daniel
|
|
|
|
|
You can open the dialog the following way:
At the dos prompt: start <filename>
If filetype (extension) does not have a registered application, the openwith dialog will open automatically.
Mark.
|
|
|
|
|
OOps, part of the command did not show, it is:
start filename.ext
|
|
|
|
|
usually the files are asociated with some EXE in the registry. So if you want a file with any certain extension to be not associated with any EXE or in case you want to change the associated entry; then must you go to the registry using the regedit by going to Start->Run and typing it in the open box.
You have to find the extension of the file you want to change, then delete the old registry and come back and right click on the desired file
and there you go! The Open With... option is in the menu!
|
|
|
|
|
First, I'm pretty sure he wanted to know how to get the open with dialog from code (i.e. double click on a file name and if there's no associated .exe, then open the dialog for them to choose an app).
Second, you don't need to go to all that trouble to get open with... on the right-click menu. Just hold down shift when you right click the file.
As for the answer to the first question, I really hope someone will figure that out and post it...
|
|
|
|
|
Hello,
I want to add my own OLE object into a RichEditCtrl directly ( not via
insert dialog).
How can I do ???
Thanks
Pascal
|
|
|
|
|
Hi,
Does anyone know how to send a message or set a style for a control (such as a RichEdit box) to turn on/off antialiasing?
Thanks
Neil
|
|
|
|
|
as far as i understand font anti-aliasing is a system-wide property available if you are running in hi-color mode or better ... i would have no idea how to switch it on / off for an individual control or if thats even possible
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
|
For a project i need to make a persistent file open dialog. I mean i want to remember the latest view mode (icon,detail,thumbnail) and if in detail then also the latest sort order. I thought of 2 possible ways to handle this.
1. I found out that the list control is created throught COM. MSDN states that a IShellBrowser interfaces is exposed by the common dialog. through IShellBrowser you can get a IShellView and call it's SaveViewState() member. But how do you get the IShellBrowser object ??
2. Using a message hook and try to intercept the column click messages, and the menu commands sent when the user changes the view-mode through the toolbar button and the then popped up menu. But i can't see/find thoose messages ...
Any help would be appreciated.
Gr. Mark
|
|
|
|
|
I am using a keyboard hook and everything is getting called correctly except I can't seem to change the keycode for instance when you press 'a' i want the output to be 'z' ... here is my code for the KeyboardProc()
LRESULT LOCKSCR_API CALLBACK KeyProc(int nCode, WPARAM wParam, LPARAM lParam)
{
return CallNextHookEx(hKeyHook, nCode, wParam, lParam);
}
I've tried returning CallNextHookEx(hKeyHook, nCode, (WPARAM) 'z', lParam);
but it seems to ignore the 'z' and get the wParam from somewhere else anyways.
any help would be appreciated.
Thanks,
Vince
|
|
|
|