|
PNG is quite good for images with large areas of solid colour; JPEG is better for photographic images, where there's a lot of colour variation in small areas.
As for how to implement them, I'd look at libpng[^] and libjpeg[^].
|
|
|
|
|
In a MDI application that will have several Forms/Dialogs. Where is the best place to initialize my main class that will act as my main loop / finite state for the whole application. There are 4 dialog / forms that used to controls and change setting within object within the main loop class / finite state machine.
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
You could do it the MFC way and have a single application class instance. Initialization is
in the constructor, before WinMain is called. Additional calls on the object could be made in
WinMain.
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
Hi...
What if I use GetModuleHandle(L"abc.ocx") in the InitInstance() of the of the App class derived from 'COleControlModule'...of the ActiveX control "abc.ocx" ?
Will I get the Handle or it will return NULL....?
I have encountered controls, in some of them..handle is found and in others its NULL...
Wat is the reason behind this behavior..?
Can any one explain?
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
I'm not sure, why you are doing this ? you can ger module handle any way, if its of same control.
|
|
|
|
|
Thnx for the reply...
Now here's the scene...when I compile the control....I get the handle...but when it is used in a container.....it gives NULL...
I want to know why is it giving NULL in a container...
Can you help me with this?
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
You have not answered question asked by me. Why you are doing this, me there are other,easier ways to get its module handle, using CWinApp::m_hInstance for instance.
|
|
|
|
|
Yeah...you are right...there are other ways to do this..
But, ideally it should give the handle...and if it not giving then there is something wrong somewhere...I have to figure that out whats wrong...because I have other controls which are giving the handle correctly...
That why I want to get to the root of this problem..so that it doesn't pose this problem in future.
Thnx
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
AbbyIndian wrote: there are other ways to do this..
And easier one. Really , I dont understand why you are using that API to get instance of same activeX ?
Anyway, use GetLastError after calling that API to figure out the problem.
|
|
|
|
|
Error no...126..Module not found....but if I have created a variable for that control...it must have been loaded into the address space of the container process....then why is it not found.....?
...A Programmer may or may not be the master of the programming language grammar...
|
|
|
|
|
AbbyIndian wrote: 126..Module not found....
Probably, you have given relative path. And, .ocx is not present there. Try giving full path of ocx.
p.s. My advice is will be to use CWinApp member variable instead.
|
|
|
|
|
hello, is there enyone how can give me a documentation in visual c++ .net 2005 because i am a beginner in programation of windows form application
aef
|
|
|
|
|
aefmaaradji wrote: ...documentation in visual c++ .net 2005...
Such as?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
aefmaaradji wrote: hello, is there enyone how can give me a documentation in visual c++ .net 2005 because i am a beginner in programation of windows form application
buy a good book dude!
|
|
|
|
|
What do you need,excatly? MSDN dosent helpful
|
|
|
|
|
hi i am having two buttons reboot and clean if i run the application and press enter it should call clean button. how to do this
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Add style BS_DEFPUSHBUTTON to clean button.
From resource editor, chose Default Button option for clean button.
|
|
|
|
|
ok but when i press tab it moves to next button but when i press enter it does the previous button function only
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: but when i press enter it does the previous button function only
What ? Can you explain this ?
|
|
|
|
|
see i am having three buttons clean, reboot and save. initially the focus should be in clean. if we give tab key the focus will be to next button ie reboot when i press enter key with focus on reboot it does not calling the event reboot it just calls the clean button event. what i have to do
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: it does not calling the event reboot it just calls the clean button event. what i have to d
Check how you have mapped correct event handlers.
|
|
|
|
|
i used pretranslate message function but now it just destroys the window. what i have to do please help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: what i have to do please help me
Without seeing relevent code , No.
|
|
|
|
|
deeps_cute wrote: i used pretranslate message function...
How?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|