Click here to Skip to main content
15,913,261 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Operator new and delete mechanism! Pin
S. Senthil Kumar12-Apr-05 19:39
S. Senthil Kumar12-Apr-05 19:39 
GeneralProblem with OnNotify Pin
thanh-hai.bui12-Apr-05 0:13
thanh-hai.bui12-Apr-05 0:13 
GeneralRe: Problem with OnNotify Pin
Joel Holdsworth12-Apr-05 2:07
Joel Holdsworth12-Apr-05 2:07 
GeneralRe: Problem with OnNotify Pin
thanh-hai.bui12-Apr-05 3:15
thanh-hai.bui12-Apr-05 3:15 
GeneralRe: Problem with OnNotify Pin
Joel Holdsworth12-Apr-05 4:10
Joel Holdsworth12-Apr-05 4:10 
GeneralRe: Problem with OnNotify Pin
Ryan Binns12-Apr-05 18:43
Ryan Binns12-Apr-05 18:43 
GeneralRe: Problem with OnNotify Pin
thanh-hai.bui12-Apr-05 21:46
thanh-hai.bui12-Apr-05 21:46 
QuestionHow to pass string in DLL? Pin
Member 184868012-Apr-05 0:04
Member 184868012-Apr-05 0:04 
Hi All,

I wonder who can tell me how to pass a string in DLL? For example, if I make 2 func as:

int IntTest()
{
int loc_int;
loc_int = 123;
return loc_int;
}
char *StrTest()
{
strcpy(glob_buf, "Hello from DLL");
return glob_buf;
}
In these 2 funcs, IntTest() works; but StrTest() does not despite it trys to pass a global buffer defined in header file. I used the DLL in my VB application, StrTest() did not work out(no hello-string appeared), but no error popped out.

Anybody can help me out? Any kind of hint is appreciated!

Huey Confused | :confused:
QuestionHow to pass string in DLL? Pin
Member 184868012-Apr-05 0:01
Member 184868012-Apr-05 0:01 
AnswerRe: How to pass string in DLL? [edited] Pin
toxcct12-Apr-05 0:08
toxcct12-Apr-05 0:08 
GeneralRe: How to pass string in DLL? Pin
Cedric Moonen12-Apr-05 1:31
Cedric Moonen12-Apr-05 1:31 
GeneralRe: How to pass string in DLL? [edited] Pin
Cedric Moonen12-Apr-05 2:06
Cedric Moonen12-Apr-05 2:06 
AnswerRe: How to pass string in DLL? Pin
Francesco Aruta12-Apr-05 8:46
Francesco Aruta12-Apr-05 8:46 
GeneralRe: How to pass string in DLL? Pin
Rick York12-Apr-05 9:30
mveRick York12-Apr-05 9:30 
GeneralRe: How to pass string in DLL? Pin
Francesco Aruta12-Apr-05 9:53
Francesco Aruta12-Apr-05 9:53 
GeneralRe: How to pass string in DLL? Pin
Cedric Moonen12-Apr-05 20:55
Cedric Moonen12-Apr-05 20:55 
GeneralRe: How to pass string in DLL? Pin
Francesco Aruta13-Apr-05 0:19
Francesco Aruta13-Apr-05 0:19 
GeneralForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim11-Apr-05 23:35
Ganesh_Srim11-Apr-05 23:35 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
toxcct11-Apr-05 23:57
toxcct11-Apr-05 23:57 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 9:13
Ganesh_Srim12-Apr-05 9:13 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Joel Holdsworth12-Apr-05 0:18
Joel Holdsworth12-Apr-05 0:18 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
CP Visitor12-Apr-05 4:44
CP Visitor12-Apr-05 4:44 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 9:16
Ganesh_Srim12-Apr-05 9:16 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Bob Helter12-Apr-05 10:11
sussBob Helter12-Apr-05 10:11 
GeneralRe: ForwardReferencing in VC++ 6.0 Pin
Ganesh_Srim12-Apr-05 23:12
Ganesh_Srim12-Apr-05 23:12 

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.