|
DanB1983 wrote: The problem is that I have an asm function that writes to video memory called ClearRectangle(BYTE left, BYTE top, BYTE right, BYTE bottom, BYTE colour).
This is a little OT, but is this from an older (256-color) DOS-based application? You cannot (easily) write directly to video memory from a normal Win32 application, so I am not sure that this will work correctly even after you resolve the linking problem. We have come a long way from the days of ModeX programming.
It looks like a character-based operation, but I figured I would make sure - given that the function takes no parameter to indicate which console window to use, or what address to write to...
Also, BYTE is normally typedef ed to unsigned char .
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi.
Thanks for the typedef suggestion.
I am porting some functions I wrote using Borland Compiler 4.0 (C/C++) (16bit).
They worked under windows 2k and windows XP. The screen memory location is within the function:- b800h that is then used along with an offset and simple maths to write chars at the correct positions.
I have quite a few asm screen related functions that need porting - this is just a practice so I think I will just continue to use BC v4.0
Thanks for every ones help.
Dan
|
|
|
|
|
Heh - I remember B800 quite well!
I am surprised that things are working correctly writing directly to that address actually does anything under Windows, unless running in a DOS prompt, but now that I think about it, you are using character locations, so that actually makes a bit of sense... :/
Good luck to you...! - If sticking with character operations, it might be worth investigating the Console functions. They are a bit of a pain in the ass to use, especially if doing anything in color, but they are the Win32 way of doing things...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Hi !!
How can I set Jpeg image as a dialog background ???
I know how to set the Bmp as a dialog background.But, I don't know how to set a Jpeg image.
Can anyone please give me the solution for this.
Thanks & Regrads,
klvin.
|
|
|
|
|
klvin wrote: How can I set Jpeg image as a dialog background ???
Hi,If you are using VC8 see the CImage Class in MSDN.Using that you can get the Handle of JPEG and use it as BMP to display the image.
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
|
|
|
|
|
CImage m_Image;
m_Image.Load(yourfile);
m_Image.BitBlt(...);
Or you can use of GDI+
|
|
|
|
|
|
prasad_som wrote: And whats that ?
what's what ? JPEG ?
|
|
|
|
|
I'd replied to his empty message. Which he's deleted. Again, keeping my reply hanging.
toxcct wrote: JPEG ?
I know that.
|
|
|
|
|
he deleteda duplicate message, and that's better than leaving the same message posted twice...
|
|
|
|
|
But I dont know, how it is allowed to delete messages having replies.
|
|
|
|
|
Hi
All
I am doing project in VC++/MFC for multiple language so i have to use japanese, marathi font in messagebox, caption of dialog box,so how to type these font in resource.
Atul Mahajan
|
|
|
|
|
Japenese? If you are using Visual Studio 6, then you have to load all the unicode strings dynamically. Because VS6 is unaware of unicode. Otherwise, you could change the font to what you want from the "properties" of the dialog or control.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Maybe this http://www.codeproject.com/cpp/introtolocalization.asp[^] can help you?
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
|
Hi All,
I'm looking for a portable C++ IDE to work with it anywhere. I came across Bloodshed Dev-cpp which uses Mingw but I have many problems with it. Now I wanna see if there is any other portable c++ compiler?
|
|
|
|
|
Y don't u use VC++ 6.0?
Come online at:-
jubinc@skype
|
|
|
|
|
do you understand Portable ?
moreover, please construct correct sentences, with real words (no abbreviations)...
|
|
|
|
|
Turkoglan wrote: I came across Bloodshed Dev-cpp
I don't think the IDE is cross-platform. It is just for windows as far as I know (but I might be wrong).
I know that Code::Blocks[^] is cross-platform and I heard a lot of good things from it. You should take a look at it (never used it myself).
|
|
|
|
|
Turkoglan wrote: I'm looking for a portable C++ IDE to work with it anywhere
I guess Eclipse + CDT is one such IDE. Be aware it is a memory hog (written with Java).
|
|
|
|
|
Thank you all. I'll test them...
|
|
|
|
|
Take a look at http://www.ultimatepp.org/ I have haerd good things about it. I plan on trying it myself.
|
|
|
|
|
what will be the return value of x25xcall() on success?
when will the call back fuction mentioned with in x25xcall()be executed?
arun
|
|
|
|
|
What is this you talking about ? Can you tell , what is x25xcall ?
|
|
|
|
|