Click here to Skip to main content
15,923,164 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralOverwriting locked files Pin
jerry0davis17-Mar-03 0:23
jerry0davis17-Mar-03 0:23 
GeneralRe: Overwriting locked files Pin
Dominik Reichl17-Mar-03 0:58
Dominik Reichl17-Mar-03 0:58 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:06
jerry0davis17-Mar-03 1:06 
GeneralRe: Overwriting locked files Pin
Dominik Reichl17-Mar-03 1:25
Dominik Reichl17-Mar-03 1:25 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:27
jerry0davis17-Mar-03 1:27 
GeneralRe: Overwriting locked files Pin
Scott H. Settlemier17-Mar-03 1:21
Scott H. Settlemier17-Mar-03 1:21 
GeneralRe: Overwriting locked files Pin
jerry0davis17-Mar-03 1:25
jerry0davis17-Mar-03 1:25 
GeneralAbnormal Program Termination Pin
kalamatianos16-Mar-03 23:55
kalamatianos16-Mar-03 23:55 
GeneralSource profiling Pin
Jonathan Gilligan16-Mar-03 23:20
Jonathan Gilligan16-Mar-03 23:20 
GeneralRe: Source profiling Pin
Joao Vaz17-Mar-03 0:31
Joao Vaz17-Mar-03 0:31 
GeneralRe: Source profiling Pin
Jonathan Gilligan17-Mar-03 5:45
Jonathan Gilligan17-Mar-03 5:45 
GeneralRe: Source profiling Pin
Joao Vaz17-Mar-03 6:26
Joao Vaz17-Mar-03 6:26 
GeneralRe: Source profiling Pin
Jonathan Gilligan18-Mar-03 13:36
Jonathan Gilligan18-Mar-03 13:36 
GeneralDisable Horizontal ScrollBar in CListCtrl Pin
Effiniti16-Mar-03 22:58
Effiniti16-Mar-03 22:58 
GeneralRe: Disable Horizontal ScrollBar in CListCtrl Pin
Anonymous16-Mar-03 23:08
Anonymous16-Mar-03 23:08 
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 

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.