|
Hi Antti Keskinen,
Thanks a lot.
Xiaobin
|
|
|
|
|
It's impossible.hahahahahah.....
windows98 is rubbish.Bless u.
|
|
|
|
|
Try to paint the window with a brush having a brush style BS_HOLLOW
use log brush for this.
|
|
|
|
|
Hi,
Details:
created Win32 console application
includes - process.h windows.h, etc
using _beginthread
Problem:
the following error occurs
error C2065: '_beginthread' : undeclared identifier
How do I link with one of the multithreaded C run-time libraries
& which one should I use?
Caoimh
|
|
|
|
|
You'll need pass /MT to the command line.
In VS.NET:
Right-click on your Project in the Solution Explorer and click on Properties, C/C++ -> Code Generation.
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|
|
Thank You. Works perfectly as you would expect
Caoimh
|
|
|
|
|
Check CreateThread
and link with kernel32.lib
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
CreateThread should largely be avoided on the desktop, because it doesn't allow the C/C++ run-time libraries to set themselves up for the new thread correctly. Better to use _beginthreadex and one of the the multi-threaded CRT versions.
Note that the single-threaded versions of the CRT aren't thread-safe anyway; you can do your program a fair amount of damage if you try to use the single-threaded version from multiple threads.
On Windows CE devices, use CreateThread , because the system entry points and the C run-time are all in coredll.dll - the system is C run-time aware. You can't use _beginthread or _beginthreadex anyway, because they're not there.
|
|
|
|
|
hi,
i have a dialog based application in which i am loading images and editing it..for this i need the undo and the redo functions ... any idea how do i go about it.
Any help is warmly welcomed.
Thanking you.
Satadru.
|
|
|
|
|
|
|
While both of your replies contained the right text, the underlying links were wrong. Did you try them out?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
One way that I've seen it done is to keep a list of each changed document. In other words, each time the document is changed, a copy is kept in a list. When an undo is requested, the latest document in the list is "copied" over the current document, and the view is notified to do a redraw. This is very simplistic but I think you get the general idea.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
step 1. firstly identify the type of operations for which you like to have undo facility.
step 2. create a CUndo class and add to it all the necessary variables for each type of opeations.
step 3. create a vector of CUndo pointers .
step 4 .save all the CUndo object pointers in this particular vector.
always save the previous state of the image when the user performs certain action.
for example if the image is changed from state1 to state2 then create an undo object storing all necessary information of state1 and add to vector.
if the user clicks undo menu then again create an undo object of state 2. then read the last object in the vector, refresh the image with the information retrieved from vector, delete this state1 undo object from the vector, and add the state 2 undo object information.
|
|
|
|
|
hi people if anyone has implemented Davide Pizzolato's CxImage class to load images of different formats ...kindly reply to me ...
Thanking you
Satadru
|
|
|
|
|
is it worth answering this?
I would be very confused without having CxImage
I use it for Win32 (api) applications and it works well.
Goodbye and thanks for the fish!
|
|
|
|
|
I'm unable to call the Win32 pai GetAncestor in a VC++ project.
While other win32 API's like GetPaernt dont have any problem.
The error that comes is:
G:\VC++ progs\venom\venom.cpp(89) : error C2039: 'GetAncestor' : is not a member of '`global namespace''
G:\VC++ progs\venom\venom.cpp(89) : error C2065: 'GetAncestor' : undeclared identifier
I call it as :
GetAncestor(hwnd,1);//GA_PARENT = 1
-Vladimir India
|
|
|
|
|
Try to include Winuser.h
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hi!
Including winuser.h has got no effect. I still am not able to compile it!
I tried it on both win2000 and win98,...
Can you please try calling it and see...
Thanks!
-Vladimir India
|
|
|
|
|
HI!
well, it me replying me...Nooo! its for others..for i got an alternate of the problem..
I called the function right from the dll, using LoadLibrary call and then GetProcAddress .
But still, The main question persists.
Anybody having any clue???
-Vladimir India
|
|
|
|
|
Now I am working on project about voice transimite,I have finished encoded wave file.when I play the encoded file by function PlaySound,it doesn't always work well.
|
|
|
|
|
the description is not acceptable, i don't understand what ur excact problem is!
Don't try it, just do it!
|
|
|
|
|
I have made a mistake,I just want to compress wave file into a new file and play it
|
|
|
|
|
If the Resource of an application ist to big in Windows 95 the LoadIcon and LoadImage funtions return NULL.
GetLastError returns 0 (no Error).
My App-Resource has a RCDATA with 3MB:
- icon in titlebar not displayed correctly
- LoadIcon and LoadImage returns NULL (LoadBitmap works)
I think its an error in user32.dll Version 4.00.950 (have testet in Win95,A,B,C).
But can't find an update ! Do you know one ???
Test self on Win95:
- Make MFC-App with VC6.0
- Run -> Titlebar-Icon correct
- insert Resource (Import a file with 3 MB) RCDATA or other name (user-defined)
- Run -> Titlebar-Icon: gray with blue middleline and LoadIcons fails
Do you know an update etc. ?
(Please don't post i should reduce my resource
Thanks
Gerald
|
|
|
|
|
windows 95 is old, maybe it doesnt support such big resources
Don't try it, just do it!
|
|
|
|