Click here to Skip to main content
15,905,971 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable Horizontal ScrollBar in CListCtrl Pin
zzh8461512-Jul-10 20:54
zzh8461512-Jul-10 20:54 
GeneralNetLocalGroupAddMembers Pin
Sonu Kapoor16-Mar-03 21:49
Sonu Kapoor16-Mar-03 21:49 
GeneralAdding a entry in Visual C++ project options Pin
abhinarulkar16-Mar-03 19:27
abhinarulkar16-Mar-03 19:27 
GeneralRe: Adding a entry in Visual C++ project options Pin
Jambolo16-Mar-03 21:27
Jambolo16-Mar-03 21:27 
Generalchecking value of flags set in lparam Pin
r i s h a b h s16-Mar-03 18:10
r i s h a b h s16-Mar-03 18:10 
GeneralRe: checking value of flags set in lparam Pin
Ravi Bhavnani17-Mar-03 9:33
professionalRavi Bhavnani17-Mar-03 9:33 
QuestionI am using Windows Media Player Control in my Dialogue based VC++6 program, how can I make sure only one Media Player instance is running at any time? Pin
DengJW16-Mar-03 17:20
DengJW16-Mar-03 17:20 
GeneralPassing by value and printing in function Pin
Member 2296016-Mar-03 15:53
Member 2296016-Mar-03 15:53 
Hello,

I have an assignment I am working on, I am stuck at a beggining point. Below is the code I am working with. This is pretty much what the professor gave us to start with, all I am trying to do right now is pass some values to the subroutine and then print them in the subroutine to confirm the values passed. We have to pass by value. I can print the values in the main fine, but then I always get zeroes in the subroutine. I have a lot more to do in the assignment, but have been stuck here. Any help would be greatly appreciated.

Thanks,

Paul






unsigned long adddouble(unsigned long x, unsigned long y)
{
printf("%ld %ld \n", x, y);
return(x+y); /* no interest at this time */
}

main()
{
double d1, d2, *dp;
unsigned long *longp1,*longp2, s;

scanf("%lf %lf", &d1, &d2); /* get two input real numbers */
printf("%lf %lf \n", d1, d2);

longp1 = (unsigned long *) &d1;
longp2 = (unsigned long *) &d2;

s = adddouble(*longp1,*longp2);
}


GeneralRe: Passing by value and printing in function Pin
Chris Losinger16-Mar-03 15:56
professionalChris Losinger16-Mar-03 15:56 
GeneralRe: Passing by value and printing in function Pin
Jambolo16-Mar-03 21:34
Jambolo16-Mar-03 21:34 
QuestionHow can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 15:15
sussbpmtri16-Mar-03 15:15 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
JoeSox16-Mar-03 18:50
JoeSox16-Mar-03 18:50 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 18:57
sussbpmtri16-Mar-03 18:57 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
JoeSox16-Mar-03 19:15
JoeSox16-Mar-03 19:15 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
bpmtri16-Mar-03 19:27
sussbpmtri16-Mar-03 19:27 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Joan M16-Mar-03 21:56
professionalJoan M16-Mar-03 21:56 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Alexinuk18-Mar-03 4:55
Alexinuk18-Mar-03 4:55 
GeneralRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Joan M18-Mar-03 5:36
professionalJoan M18-Mar-03 5:36 
AnswerRe: How can i lock keyboard and mouse on Windows 9X and Windows NT/2000/XP Pin
Valera24117617-Mar-03 11:24
Valera24117617-Mar-03 11:24 
GeneralMinimize button not recognized Pin
Bob Eastman16-Mar-03 14:09
Bob Eastman16-Mar-03 14:09 
GeneralRe: Minimize button not recognized Pin
Alvaro Mendez17-Mar-03 7:21
Alvaro Mendez17-Mar-03 7:21 
GeneralRe: Minimize button not recognized Pin
Bob Eastman17-Mar-03 11:54
Bob Eastman17-Mar-03 11:54 
GeneralRe: Minimize button not recognized Pin
sigasi17-Mar-03 22:24
sigasi17-Mar-03 22:24 
GeneralRe: Minimize button not recognized Pin
Bob Eastman18-Mar-03 0:43
Bob Eastman18-Mar-03 0:43 
GeneralRe: Minimize button not recognized Pin
Bob Eastman18-Mar-03 12:04
Bob Eastman18-Mar-03 12:04 

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.