Click here to Skip to main content
15,909,498 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Bram van Kampen16-Aug-06 16:30
Bram van Kampen16-Aug-06 16:30 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Luckeman16-Aug-06 18:44
Luckeman16-Aug-06 18:44 
AnswerRe: how to obtain mouse position while dragging a dialog bar... Pin
Hamid_RT16-Aug-06 23:35
Hamid_RT16-Aug-06 23:35 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Luckeman17-Aug-06 20:34
Luckeman17-Aug-06 20:34 
QuestionError C2264 Pin
alunw16-Aug-06 7:30
alunw16-Aug-06 7:30 
AnswerRe: Error C2264 Pin
Waldermort16-Aug-06 7:41
Waldermort16-Aug-06 7:41 
GeneralRe: Error C2264 Pin
alunw16-Aug-06 8:00
alunw16-Aug-06 8:00 
AnswerRe: Error C2264 Pin
Zac Howland16-Aug-06 10:25
Zac Howland16-Aug-06 10:25 
I believe what you mean to do is say that the data that argv is pointing to will not be changed. As such, you should write it this way (which won't produce an error):

int f(const char* const* a)
{
        return 0;
}

int g(const char* a)
{
        return 0;
}

int main(int argc, char** argv)
{
        g(*argv);
        return f(argv);
}


And by the way, GCC also gives an error with the code you posted.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

QuestionTrouble linking with particular libs Pin
AceCoolie16-Aug-06 7:20
AceCoolie16-Aug-06 7:20 
AnswerRe: Trouble linking with particular libs Pin
alunw16-Aug-06 8:22
alunw16-Aug-06 8:22 
GeneralRe: Trouble linking with particular libs Pin
AceCoolie16-Aug-06 10:57
AceCoolie16-Aug-06 10:57 
QuestionConvert Convert C# code to C++ 2005 with extended stored procedure Pin
sea200616-Aug-06 7:00
sea200616-Aug-06 7:00 
AnswerRe: Convert Convert C# code to C++ 2005 with extended stored procedure [modified] Pin
sea200616-Aug-06 7:02
sea200616-Aug-06 7:02 
Questionmultiple selection list box Pin
kumar_mk16-Aug-06 6:51
kumar_mk16-Aug-06 6:51 
AnswerRe: multiple selection list box Pin
Chris Losinger16-Aug-06 7:01
professionalChris Losinger16-Aug-06 7:01 
GeneralRe: multiple selection list box Pin
kumar_mk16-Aug-06 7:24
kumar_mk16-Aug-06 7:24 
AnswerRe: multiple selection list box Pin
David Crow16-Aug-06 7:25
David Crow16-Aug-06 7:25 
QuestionOperator Overloading Pin
RichardS16-Aug-06 6:17
RichardS16-Aug-06 6:17 
AnswerRe: Operator Overloading Pin
valikac16-Aug-06 8:03
valikac16-Aug-06 8:03 
AnswerRe: Operator Overloading Pin
Zac Howland16-Aug-06 10:34
Zac Howland16-Aug-06 10:34 
GeneralRe: Operator Overloading Pin
RichardS16-Aug-06 21:00
RichardS16-Aug-06 21:00 
QuestionPaint/Invalidate problem ( HTML browser ) maybe WS_CLIPCHILDREN related ? Pin
Maximilien16-Aug-06 6:01
Maximilien16-Aug-06 6:01 
QuestionTCP socket time out Pin
nahitan16-Aug-06 5:36
nahitan16-Aug-06 5:36 
AnswerRe: TCP socket time out [modified] Pin
S Douglas22-Aug-06 21:11
professionalS Douglas22-Aug-06 21:11 
QuestionSyntax problems Pin
Jay0316-Aug-06 5:19
Jay0316-Aug-06 5:19 

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.