|
Now if you want to write this what do you need do you need to filenames,right?if yes you can use of FindFirstFile/FileNext for show files but before it you need to show folders on a treectrl is this your purpose
|
|
|
|
|
First of all, you fellows really need an ASM forum in this place, so I won't have to ask all of my ASM questions in here. I do tie in most of my ASM code into C++ anyway, but its just disorganized to post it this way. I've been a member for over 3 years now and no ASM board? What's up with that? Other than that, it is a wonderfully great site ...
Anyway, on to my question. I need to :
1] print out the value in the AX register
2] I prefer to do it using int 10h, service 13h
[write string with attributes]
3] I need to be able to use the basic 16 colors
4] I need to be able to print it onto the screen
at any row and column that I wish
5] I can only use BIOS interrupts, so that means
10h for video, not 21h, since DOS will not be
loaded yet.
In summary, I need to display conventional memory size, and that means using int 12h. However the memory size is returned in AX, and I have no idea how to print that. I have googled things to death, and all I can come up with is 100s of sites telling me that it is returned in AX [duh ...] but how in the #$@% do I get to see AX ??!?
If I do not get that, then I get a bunch of hoo-hah about that awful NASM and such.
Apologies for all the griping, please help ...
Any ASM and / or C/C++ programmers feel free to
contact me via Y! messenger @ digitalmythology
or via e-mail @ digitalmythology@yahoo.com ...
Thanks in advance to all ...
-digitalmythology -dm
webmaster@digitalmythologywebdesigns.com
http://www.digitalmythologywebdesigns.com
|
|
|
|
|
The memory is returned in AX, so why not do a mov to move the memory size from AX to a variable of your choice?
pusha
int 12h
mov ax, My_variable
popa
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
With the help of new ATL object i have done OLEDB connection and now table.h header file is created in my project with all the table field varaible in that...now i want to insert Data from remote server to msaccess database..but i dont know how to do coding for that..can anybody help me...to do coding...how to start..if any question pls ask and try to help me..
Thank you
|
|
|
|
|
i'm really a beginner here, so hopefully somebody can help me. i'm currently doing a dialog application. i need to add a "box" to show a vector( a graphic image of binary '1' or '0' that looks like square wave) inside it. The vector can taken from a file( that consist just '1' or '0') and i need to draw the vector(square wave where '1' is showing high and '0' is showing low amplitude). For starter, may i know how to create the "box"? Which function do you recommend me to use? Later the i also need to be able to zoom in/out to view the vector in the "box".
Thanks.
|
|
|
|
|
Can you be more specific about box?
|
|
|
|
|
Your description is not really clear... It looks like you need to draw a chart with a square wave into it. Am I right ?
If yes, you can take a look at my article here[^], maybe you can use it for your purpose ? It also support zooming.
If this is not the case, then you'll probably need to create your own custom control that contains the functionalities your are looking for.
|
|
|
|
|
actually i need to do a dialog based application for a IC tester(hardware). In this application, it will send some vector(series of '1' and '0' ) to the IC tester(harware) and then after the testing it will return back a result vector(series of '1' and '0' ) to the computer. Therefore, in the dialog, it will hv a button to start the testing. Once the button is pressed, the testing will begin and later in the dialog, it should display the input vector and also the output vector( which looks like a square wave to represent 1 or 0). The data for the vector can be taken from a file saved in text format.
The problem now is that how do i display the vector in my dialog box? Should i create and list box or picture to display the graph in the dialog? Also, are there anybody who knows how to draw a square wave by getting the data from a file( the file contains a series of 1 and 0, and if 1, the wave amplitude is high and if 0 it will show low).
Thanks in advance.
|
|
|
|
|
thanks, i'll take a look at your article.
|
|
|
|
|
I can't make any more controlls... no more buttons, listboxes.. no even static text..
If I take something away, "delete one of the objects", Then I can 1 more on... But then it's maxed out again and won't make any more. My program is a big dialog with about 400 objects on it... Is there something mabey that has a max setting.
I need to put on about 12 more objects into my dialog... Anyone got any ideas?
|
|
|
|
|
The resource editor does have a limit and you hit it. To add more controls you can always add them dynamically at run time using the Create functions.
|
|
|
|
|
Ok.. thanks.. to bad I can't just up the limit... Oh well..
I think I'll just go through all my static text objects and code them in.. That should free up bunches...
Thanks for the info...
|
|
|
|
|
Can you explain why you use of 400 objects,please?
|
|
|
|
|
IIRC a dialog resource has a limit of 255 controls. If you need more, you can create them in your WM_INITDIALOG handler.
|
|
|
|
|
I'am trying to use VC to operate Ms Excel, but I can't set the back color of cells, what can I do for it?
freeman
|
|
|
|
|
Here's a code segment written in VB
With Selection.Interior
.ColorIndex = 3 ' this is red ...
.Pattern = xlSolid
End With
I think it it easy to know how to do it in VC from that.
By the way, there is a way to know how to get some work accomplished in your codes: just open Excel, and record a macro doing just the same thing, then you can check the code in Excel's Macro editor. I got that piece of code in this way.
|
|
|
|
|
Good idear! I have solved my problem! Thank u!
And do it in VC just need to add some codes follow:
Interior bkColor;
bkColor.AttachDispatch(range.GetInterior().pdispVal)
bkColor.SetColor(COleVariant((long)0x000000)); //black
Also Give Thank to a friend named ◎Alpha◎ who helped me, God will bless him and his family!
freeman
|
|
|
|
|
Im using the SetTimer() function to try and achieve a 100Hz query via RS-232... My problem that I have run into, is that we i check the time that the timer is occuring at, using std::GetLocalTime(), and comparing it to the last time it was called, it appears that it running at 20Hz, or every 50 milliseconds as oppose to 10 ms. Any ideas on why this is happening, and how to fix it?
"There are 10 types of people, those who understand binary, and those who don't."
- Somebody, not me.
|
|
|
|
|
For that kind of resolution you'll probably want to use a multimedia timer.
Timer events coming through windows messages are pretty innacurate and resolution is not so good
(as you've seen).
Check out timeGetDevCaps(), timeBeginPeriod(), timeSetEvent(), etc.
Mark
|
|
|
|
|
Hello
I am trying to use wide character constants in my program in a switch statement basically as follows:
TCHAR chChar = L'ä';
switch( chChar )
{
case L'ä': break;
case L'ö': break;
}
UNICODE and _UNICODE are both defined.
The compiler gives me warning C4066: "characters beyond first in wide-character constant ignored". This leads to error C2196: "case value '195' already used".
Is there any way around this?
Thanks.
|
|
|
|
|
If you cast L'ä' and L'ö' to short , what do you get? If the values are different, then use casting for the workaround. If not, it would seem that there's an issue with the compiler.
--
Presented in doublevision (where drunk)
|
|
|
|
|
I can't reproduce that (warning level 3).
Are you sure _UNICODE is defined before #include <tchar.h> ??
Mark
-- modified at 18:41 Tuesday 24th October, 2006
|
|
|
|
|
Don't use any characters outside of the ASCII range in your source code. Use the \x escape with the Unicode code points for the characters - L'\xe4' for ä, L'\xf6' for ö, and so on.
|
|
|
|
|
Well, in the software i'm developing, we need to display images on a folder. I'm using the FindFirstFile function and specifying a directory. This is working fine.
The problem arises when there's a filename that contains extended characters, such as "U+FB98: Arabic Letter Gueh Initial Form", which is this one: ﮘ. Now, the FindFirstFile function returns it, but the FindFileData.cFileName returns a filename with some question marks(I suppose these are wildcards) instead of the symbols.
This would not be a problem if the loading CBitmap would work... but it doesnt. I suppose it's in fact because of these symbols being replaced with question marks.
Is there any way around this? How can I effectively get the filename I need? Is this a problem with gdiplus CBitmap loading operation or with the filename being given with question marks?
Thanks in advance!
Andrés Cartín
|
|
|
|
|
Are you using the Unicode version of FindFirstFile..?
--
If not entertaining, write your congressman
|
|
|
|