Click here to Skip to main content
15,914,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 21:32
KASR19-Jun-08 21:32 
GeneralRe: Positioning toolbar and statusbar Pin
Cedric Moonen9-Jun-08 21:40
Cedric Moonen9-Jun-08 21:40 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 22:38
KASR19-Jun-08 22:38 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 21:15
KASR19-Jun-08 21:15 
QuestionR6034 [modified] Pin
T.RATHA KRISHNAN9-Jun-08 20:24
T.RATHA KRISHNAN9-Jun-08 20:24 
AnswerRe: R6034 Pin
Hamid_RT9-Jun-08 20:36
Hamid_RT9-Jun-08 20:36 
GeneralRe: R6034 Pin
T.RATHA KRISHNAN9-Jun-08 20:58
T.RATHA KRISHNAN9-Jun-08 20:58 
QuestionDLL problem Pin
cristi_alonso9-Jun-08 19:50
cristi_alonso9-Jun-08 19:50 
I have created two DLL .One is PracticeDLL_1 and otherone is PracticeDLL_2
PracticeDLL_1 has a function called Calc(int * ,int *)and PracticeDLL_2 has a function called Sub(int * ,int *).I am calling Calc function from
main function and which inturn calling Sub function from DLL but the function sub is not excuting .I have given the path of practiceDLL_1 in Link option in project settings and copied that dll in application folder.still i am not getting desired result. what is the probelm? can anyone help me ?
--------------------------------------------------------------
// CallingFunctionFromDLL.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
#include "MethodHeader.h"


int main(int argc, char* argv[])
{
int m,n;
m=100;
n=90;
//Sub(&m,&n);

char *t=Calc(&m,&n);

printf("%s \n",t);
printf("%d %d \n",m,n);

return 0;
}
----------------------------------------------
PracticeDLL_1

#include<stdio.h>
#include<conio.h>
#include "DLLHeader.h"
//#include "CodeHeader.h"

extern "C" _declspec(dllexport) char* Calc(int *no1,int *no2)
{
int sum;
char *result="successfull";
//sum = no1 + no2;
Sub(no1,no2);
//printf("%d %d",*no1,*&no2);
return result;

}
-------------------------------------------------------------
PracticeDLL_2

#include<stdio.h>
#include<conio.h>

//#include "CodeHeader.h"

extern "C" _declspec(dllexport) void Sub(int *swe,int *tur)
{
(*swe)--;
(*tur)--;
}
----------------------------------------
any help appreciated .
Thanks in advance.
AnswerRe: DLL problem Pin
sudhir_Kumar9-Jun-08 20:10
sudhir_Kumar9-Jun-08 20:10 
GeneralRe: DLL problem Pin
Cedric Moonen9-Jun-08 20:30
Cedric Moonen9-Jun-08 20:30 
GeneralRe: DLL problem Pin
sudhir_Kumar10-Jun-08 1:47
sudhir_Kumar10-Jun-08 1:47 
AnswerRe: DLL problem Pin
Cedric Moonen9-Jun-08 20:29
Cedric Moonen9-Jun-08 20:29 
GeneralRe: DLL problem Pin
cristi_alonso9-Jun-08 21:10
cristi_alonso9-Jun-08 21:10 
GeneralRe: DLL problem Pin
Cedric Moonen9-Jun-08 21:25
Cedric Moonen9-Jun-08 21:25 
GeneralRe: DLL problem Pin
cristi_alonso10-Jun-08 1:07
cristi_alonso10-Jun-08 1:07 
QuestionDisplay HTML in CHtmlview in Vista Pin
john56329-Jun-08 18:55
john56329-Jun-08 18:55 
AnswerRe: Display HTML in CHtmlview in Vista Pin
sudhir_Kumar9-Jun-08 20:18
sudhir_Kumar9-Jun-08 20:18 
QuestionHow to call .exe file ? Pin
nisha000009-Jun-08 18:38
nisha000009-Jun-08 18:38 
AnswerRe: How to call .exe file ? Pin
Naveen9-Jun-08 18:48
Naveen9-Jun-08 18:48 
AnswerRe: How to call .exe file ? Pin
SandipG 9-Jun-08 18:48
SandipG 9-Jun-08 18:48 
AnswerRe: How to call .exe file ? Pin
Mukesh Kumar9-Jun-08 18:49
Mukesh Kumar9-Jun-08 18:49 
AnswerRe: How to call .exe file ? Pin
hitonly20089-Jun-08 18:54
hitonly20089-Jun-08 18:54 
AnswerRe: How to call .exe file ? Pin
sudhir_Kumar9-Jun-08 20:12
sudhir_Kumar9-Jun-08 20:12 
GeneralRe: How to call .exe file ? Pin
Cedric Moonen9-Jun-08 20:32
Cedric Moonen9-Jun-08 20:32 
JokeRe: How to call .exe file ? Pin
Hamid_RT9-Jun-08 20:38
Hamid_RT9-Jun-08 20:38 

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.