|
-
Oct 15th, 2002, 04:38 PM
#1
Thread Starter
Hyperactive Member
Mem_mapped Segment???
how do i make a MEM_MAPPED SEGMENT in msvc++????
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Oct 15th, 2002, 04:49 PM
#2
Monday Morning Lunatic
You don't have segments in 32-bit programming.
What are you trying to do? Map a file to memory?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 15th, 2002, 05:11 PM
#3
Thread Starter
Hyperactive Member
lol windows exes have segments, .data. text etc. neve rmind about this i got the question answerd by some one else
#pragma data_seg (".MYSEG")
int CrcAlreadyFilled = 0;
char CRCtable[256] = "";
#pragma data_seg()
//linker
/SECTION:.MYSEG,RWS
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Oct 16th, 2002, 08:48 AM
#4
Parksie: don't confuse memory segments with executable segments.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 16th, 2002, 01:04 PM
#5
Monday Morning Lunatic
Originally posted by CornedBee
Parksie: don't confuse memory segments with executable segments.
I thought they were called sections. 
...
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 16th, 2002, 01:07 PM
#6
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 16th, 2002, 04:20 PM
#7
Thread Starter
Hyperactive Member
lol the exe is in memory.... and memory_mapped explanes it all that its windows, and i said segment, windows doesnt have segments, so only thing left is exe segemnts, use your brain.(no offence)
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Oct 16th, 2002, 04:24 PM
#8
Protected mode and therefore windows still know memory segment, but not in the 16-bit way. They are an essential part of multitasking and permission handling.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 16th, 2002, 04:31 PM
#9
Thread Starter
Hyperactive Member
yes but that wasnt my Qusestion. and you cant access any other 32bit segs from ring3, and this didnt say vxd any where. but oh well i found my solution to my problem, and ill state more clearly next time. so just let it die.
Last edited by Cmdr0Sunburn; Oct 16th, 2002 at 04:35 PM.
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
-
Oct 16th, 2002, 04:39 PM
#10
You said windows doesn't have segments, which is wrong.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 16th, 2002, 07:11 PM
#11
Monday Morning Lunatic
Originally posted by CornedBee
You said windows doesn't have segments, which is wrong.
Depends on the type of segments. In real mode, the processor can run in segment ffset mode (16-bit segment and 20-bit offset, or something, I never really did much in 16-bit) but Windows (NT and up at least) tries to avoid it, so it runs in protected mode, whereby the processor and its MMU are responsible for generating a hardware interrupt if you access memory you're not entitled to.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Oct 16th, 2002, 08:01 PM
#12
Thread Starter
Hyperactive Member
Originally posted by CornedBee
You said windows doesn't have segments, which is wrong.
you cant access segments from normal windows. so it almost like it doesnt even have any.
but a vxd or some ring0 you can, but normal windows is ring3.
I know a lot oF Vb, expert in C++, and i think in assembly.
MSVC++6.NET
vb6
masm
Windowz Xp
I find my self using this a lot in C++
__asm {
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|