Click here to Skip to main content
15,916,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to convert RVA to File Offset in a PE file? Pin
Joseph Marzbani27-Jan-09 22:26
Joseph Marzbani27-Jan-09 22:26 
AnswerRe: How to convert RVA to File Offset in a PE file? Pin
Garth J Lancaster27-Jan-09 22:35
professionalGarth J Lancaster27-Jan-09 22:35 
GeneralRe: How to convert RVA to File Offset in a PE file? Pin
Joseph Marzbani28-Jan-09 3:33
Joseph Marzbani28-Jan-09 3:33 
QuestionFile handling in DLL. Pin
sam_psycho27-Jan-09 21:44
sam_psycho27-Jan-09 21:44 
AnswerRe: File handling in DLL. Pin
«_Superman_»27-Jan-09 22:19
professional«_Superman_»27-Jan-09 22:19 
GeneralRe: File handling in DLL. Pin
Rajesh R Subramanian28-Jan-09 5:29
professionalRajesh R Subramanian28-Jan-09 5:29 
GeneralRe: File handling in DLL. Pin
«_Superman_»28-Jan-09 17:09
professional«_Superman_»28-Jan-09 17:09 
QuestionBest way to pass arguments into a method Pin
CodingLover27-Jan-09 21:32
CodingLover27-Jan-09 21:32 
Hi all,

I have 6 int values and a char buffer to pass another method. Something like this.
<br />
int MyClassOne::Method()<br />
{<br />
    NemMwthod(1, 2, 3, 4, 5, 6, buffer);<br />
}<br />
<br />
int MyClassTwo::NewMethod(int a, int b, int c, int d, int e, int f, char buffer)<br />
{<br />
    // Do the process<br />
}<br />



Seems it's odd to me. So I do the following.

int MyClassOne::Method()<br />
{<br />
    int* arr = new int[6];<br />
    arr[0] = 1;<br />
    arr[1] = 2;<br />
    arr[2] = 3;<br />
    arr[3] = 4;<br />
    arr[4] = 5<br />
    arr[5] = 6;<br />
    <br />
    NemMwthod(arr, buffer);<br />
    delete[] arr;<br />
}<br />
<br />
int MyClassTwo::NewMethod(int ar[], char buffer)<br />
{<br />
    // Do the process<br />
}



I want to know what's best way to workaround is.

Thanks a lot

I appreciate your help all the time...
CodingLover Smile | :)

AnswerRe: Best way to pass arguments into a method Pin
epitalon27-Jan-09 21:47
epitalon27-Jan-09 21:47 
AnswerRe: Best way to pass arguments into a method Pin
Rahul Vaishnav27-Jan-09 21:49
Rahul Vaishnav27-Jan-09 21:49 
AnswerRe: Best way to pass arguments into a method Pin
CPallini27-Jan-09 21:50
mveCPallini27-Jan-09 21:50 
NewsRe: Best way to pass arguments into a method Pin
CodingLover27-Jan-09 22:23
CodingLover27-Jan-09 22:23 
GeneralRe: Best way to pass arguments into a method Pin
CPallini27-Jan-09 22:27
mveCPallini27-Jan-09 22:27 
NewsRe: Best way to pass arguments into a method Pin
CodingLover27-Jan-09 22:31
CodingLover27-Jan-09 22:31 
GeneralRe: Best way to pass arguments into a method Pin
CPallini27-Jan-09 22:39
mveCPallini27-Jan-09 22:39 
NewsRe: Best way to pass arguments into a method Pin
CodingLover27-Jan-09 22:47
CodingLover27-Jan-09 22:47 
AnswerRe: Best way to pass arguments into a method Pin
«_Superman_»27-Jan-09 22:25
professional«_Superman_»27-Jan-09 22:25 
QuestionRe: Best way to pass arguments into a method Pin
CodingLover27-Jan-09 22:31
CodingLover27-Jan-09 22:31 
AnswerRe: Best way to pass arguments into a method Pin
«_Superman_»27-Jan-09 22:42
professional«_Superman_»27-Jan-09 22:42 
GeneralRe: Best way to pass arguments into a method Pin
C Change28-Jan-09 0:44
C Change28-Jan-09 0:44 
Questionhexadecimal Pin
aswd27-Jan-09 20:56
aswd27-Jan-09 20:56 
AnswerRe: hexadecimal Pin
Hamid_RT27-Jan-09 21:15
Hamid_RT27-Jan-09 21:15 
AnswerRe: hexadecimal Pin
CPallini27-Jan-09 21:18
mveCPallini27-Jan-09 21:18 
GeneralRe: hexadecimal Pin
aswd27-Jan-09 21:20
aswd27-Jan-09 21:20 
AnswerRe: hexadecimal Pin
Cedric Moonen27-Jan-09 21:28
Cedric Moonen27-Jan-09 21:28 

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.