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

C / C++ / MFC

 
GeneralRe: Question regarding debug information and "Step-Into" code Pin
Mr. Accident26-Aug-05 18:14
Mr. Accident26-Aug-05 18:14 
GeneralRe: Question regarding debug information and "Step-Into" code Pin
Jose Lamas Rios27-Aug-05 18:15
Jose Lamas Rios27-Aug-05 18:15 
GeneralRe: Question regarding debug information and "Step-Into" code Pin
Mr. Accident28-Aug-05 7:14
Mr. Accident28-Aug-05 7:14 
QuestionQues on Exit Process Pin
Ann6626-Aug-05 11:23
sussAnn6626-Aug-05 11:23 
AnswerRe: Ques on Exit Process Pin
LighthouseJ26-Aug-05 11:35
LighthouseJ26-Aug-05 11:35 
QuestionRe: Ques on Exit Process Pin
Jose Lamas Rios26-Aug-05 16:52
Jose Lamas Rios26-Aug-05 16:52 
GeneralRe: Ques on Exit Process Pin
ThatsAlok28-Aug-05 18:03
ThatsAlok28-Aug-05 18:03 
Questionworkspace capture Pin
GreenLantern26-Aug-05 11:13
GreenLantern26-Aug-05 11:13 
Questionannoying linker warning (LNK4089) Pin
Intangir26-Aug-05 10:38
Intangir26-Aug-05 10:38 
AnswerRe: annoying linker warning (LNK4089) Pin
Tim Smith26-Aug-05 11:13
Tim Smith26-Aug-05 11:13 
AnswerRe: annoying linker warning (LNK4089) Pin
Gary R. Wheeler27-Aug-05 6:45
Gary R. Wheeler27-Aug-05 6:45 
QuestionOveriding ToolTip Text an CSliderCtrl Pin
sharpanil26-Aug-05 10:15
sharpanil26-Aug-05 10:15 
QuestionExcel Automation Pin
Identity Undisclosed26-Aug-05 9:55
Identity Undisclosed26-Aug-05 9:55 
QuestionIncreasing/Decreasing text size of a shown html Pin
babyspidy26-Aug-05 7:50
babyspidy26-Aug-05 7:50 
AnswerRe: Increasing/Decreasing text size of a shown html Pin
David Crow26-Aug-05 9:14
David Crow26-Aug-05 9:14 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy27-Aug-05 15:33
babyspidy27-Aug-05 15:33 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios27-Aug-05 18:45
Jose Lamas Rios27-Aug-05 18:45 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy28-Aug-05 7:39
babyspidy28-Aug-05 7:39 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios28-Aug-05 8:53
Jose Lamas Rios28-Aug-05 8:53 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy28-Aug-05 15:53
babyspidy28-Aug-05 15:53 
AnswerRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios29-Aug-05 7:30
Jose Lamas Rios29-Aug-05 7:30 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy29-Aug-05 14:12
babyspidy29-Aug-05 14:12 
QuestionMCI Commands and AVI Video files; help needed... Pin
Bryan Anslow26-Aug-05 7:16
Bryan Anslow26-Aug-05 7:16 
AnswerRe: MCI Commands and AVI Video files; help needed... Pin
Bryan Anslow26-Aug-05 12:23
Bryan Anslow26-Aug-05 12:23 
QuestionMixed language dll Pin
Kash26-Aug-05 6:20
Kash26-Aug-05 6:20 
I am trying to call a Fortran dll in my c++ code.

The fortran bit is as follows:

<br />
subroutine swap(x,y,z)<br />
real , intent(inout) :: x<br />
real , intent(inout) :: y<br />
real , intent(out) :: z<br />
real :: t<br />
!<br />
!DEC$ATTRIBUTES dllexport :: swap<br />
!DEC$ATTRIBUTES DEFAULT, DECORATE, ALIAS: 'swap' :: swap<br />
!<br />
t=x<br />
x=y<br />
y=t<br />
z=1.23<br />
end subroutine swap<br />
<\code><br />
<br />
The C++ calling code is:<br />
<br />
<code><br />
#include <iostream><br />
using namespace std;<br />
extern "C" __declspec(dllimport)void swap(double &x, double &y,double &z);<br />
int main() <br />
{<br />
	double x,y,z;<br />
	x	= 10;<br />
	y	= 999;<br />
	swap(x,y,z);<br />
	cout<<x<<"\t"<<y<<"\t"<<z<<endl;<br />
 return="" 0;<br />
}<br />
<\code=""><br />
<br />
There are some problems however. x and y are not swapped but they do display their original values on the console. And z has not been assigned a value. I think it's a problem with the C++ bit but I could be wrong. The good thing is that it compiles and executes.<br />
I will eventually try and do this in C# but one step at a time ;)<br />
<br />
Kash

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.