Raised This Month: $ Target: $400
 0% 

Create C++ Forward like in AMX


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 03-01-2015 , 09:09   Create C++ Forward like in AMX
Reply With Quote #1

I have two DLLs. MainDLL.dll and SubDLL.dll.
MainDLL.h
Code:
void ABC();
void DEF(int iX);
MainDLL.cpp
Code:
void ABC()
{
     DEF(1);
}
SubDLL.cpp
Code:
#include "MainDLL.h"

void DEF(int iX)
{
     printf("Value is: %d", iX);
}
My question is how to call DEF declaration like in SubDLL? I don't want to define the declaration in MainDLL.cpp, I want it to be defined in SubDLL.cpp like the example.
__________________
What are you looking for here?

Last edited by DavidJr; 03-01-2015 at 09:10.
DavidJr is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 03-01-2015 , 09:44   Re: Create C++ Forward like in AMX
Reply With Quote #2

This is more like a Stackoverflow question and it has already been discussed in here.
I know it's kinda impossible to search that, so I have to redirect you in there (see 3rd post).
__________________

Last edited by claudiuhks; 03-01-2015 at 09:45.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
DavidJr
Senior Member
Join Date: Apr 2012
Old 03-02-2015 , 20:12   Re: Create C++ Forward like in AMX
Reply With Quote #3

Thanks, claudiuhks
__________________
What are you looking for here?
DavidJr is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode