Click here to Skip to main content
15,887,135 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Difference b/w #include and #import? Pin
Nish Nishant29-Aug-06 4:07
sitebuilderNish Nishant29-Aug-06 4:07 
QuestionAnchors and Inheritance Pin
Mohamad H. ARAB27-Aug-06 22:58
Mohamad H. ARAB27-Aug-06 22:58 
QuestionBinaryWriter won't write japanese correctly. [modified] Pin
samkook27-Aug-06 14:27
samkook27-Aug-06 14:27 
QuestionProblem with CLS compliance of enums Pin
Super Lloyd27-Aug-06 5:22
Super Lloyd27-Aug-06 5:22 
QuestionHow to use recompiled header file? Pin
Super Lloyd27-Aug-06 4:11
Super Lloyd27-Aug-06 4:11 
QuestionManaged Wrapper for native abstract base class Pin
zenzero27-Aug-06 2:22
zenzero27-Aug-06 2:22 
AnswerRe: Managed Wrapper for native abstract base class Pin
tutu_cloud6-Sep-06 9:47
tutu_cloud6-Sep-06 9:47 
Questionnew memory stack for different parameters Pin
electronic_infections26-Aug-06 16:13
electronic_infections26-Aug-06 16:13 
Initial Clarification: I need different memory stack (where addresses are stored), Not a stack container as in similar to a linked list container.

I need to create a new memory stack when different command line parametrers are used. It is to simulate a buffer overflow problem and our assignment specs say when a different user is specified, a different stack is created so a different attack is needed(a different amount of overflowing data).

Quote from ass specs
"It is required that each of usernames (Alice, Bob, or Chris) is associated with a different memory stack. You need to provide an attack for each of them. As a result, three buffer overrun instances and their associated attacks should be provided in your report. It is up to you for the coding approach."

I can call my program :
myProg.exe Alice
myProg.exe Bob

What I have done is implement each user into a different function. This doesnt force me to use a different attack for each user (same attack works for each user.)

I then put some initialised local variables inside bob() function, to make it different to the Alice() function. This didnt change what I wanted either.

I also created a few dummy functions which just passed the control to then next function to eventually start the Bob function. but this didnt make it any different from just calling bob straight out. (if that makes any sense)

I read this (and many other) websites to try and understand how variables and functions are alocated to the stack
http://users.actcom.co.il/~choo/lupg/tutorials/unix-memory/unix-memory.html#c_stack

But I obviously still dont understand how addresses are allocated to the stack to make it different for different command line parameters.

Ive spent a day and a half trying to solve this problem, the rest of my code does what I want

Can someone please clarify this or give me an example of how to create a different stack for different parameters.

Thanks in advance
QuestionPrinting Library Pin
Bob X26-Aug-06 11:06
Bob X26-Aug-06 11:06 
AnswerRe: Printing Library Pin
Nish Nishant28-Aug-06 4:47
sitebuilderNish Nishant28-Aug-06 4:47 
QuestionSlow Managed code versus Fast Native code Pin
zenzero26-Aug-06 4:01
zenzero26-Aug-06 4:01 
AnswerRe: Slow Managed code versus Fast Native code Pin
Christian Graus27-Aug-06 3:14
protectorChristian Graus27-Aug-06 3:14 
GeneralRe: Slow Managed code versus Fast Native code Pin
zenzero27-Aug-06 5:04
zenzero27-Aug-06 5:04 
AnswerRe: Slow Managed code versus Fast Native code Pin
Nish Nishant28-Aug-06 4:46
sitebuilderNish Nishant28-Aug-06 4:46 
GeneralRe: Slow Managed code versus Fast Native code Pin
zenzero28-Aug-06 7:18
zenzero28-Aug-06 7:18 
Questionstd::wstring by ref Pin
wb24-Aug-06 23:52
wb24-Aug-06 23:52 
Question0D 0A terminated string to 00 terminated string Pin
samkook24-Aug-06 13:20
samkook24-Aug-06 13:20 
QuestionArray handling problems: Pin
luhfluh24-Aug-06 9:43
luhfluh24-Aug-06 9:43 
AnswerRe: Array handling problems: Pin
Christian Graus24-Aug-06 14:21
protectorChristian Graus24-Aug-06 14:21 
GeneralRe: Array handling problems: Pin
luhfluh25-Aug-06 0:59
luhfluh25-Aug-06 0:59 
QuestionHow to display Exception after the Form is loaded Pin
mmhu24-Aug-06 4:59
mmhu24-Aug-06 4:59 
AnswerRe: How to display Exception after the Form is loaded Pin
Nish Nishant25-Aug-06 2:59
sitebuilderNish Nishant25-Aug-06 2:59 
GeneralRe: How to display Exception after the Form is loaded Pin
mmhu26-Aug-06 13:26
mmhu26-Aug-06 13:26 
QuestionSetting toolbox tab programatically Pin
Edward Diener24-Aug-06 2:22
Edward Diener24-Aug-06 2:22 
QuestionInvisible text in Messagebox [modified] Pin
dawei.code23-Aug-06 0:02
dawei.code23-Aug-06 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.