Please provide source...
Without we can't help...
I create 5 new dialog box and also create a dll with my warrock functions (supejump,nfd....).
i declared that dll in xxxDlg.cpp main(correctly),BUT when i call those (dll) functions in other popup NewDialog visual c++ say to me that those functions are undeclared(but i've decvlared it correctly in main xxxDlg.cpp file,i'm sure).
How can i call/declared those functions in other NewDialog Popup?
When(in the code) i need to declared those functions?Can u post an example or just say to me..??!!
PLZ PLZ PLZ i try to fix those errors but i get More ERRORSand i don't know how to declare/call those dll functions..
PS:sry for my bad eng
Thx a lot to people who answer to my question..thx too much!![]()
Please provide source...
Without we can't help...
Last edited by spartacchio; 03-14-2008 at 01:45 PM.
Sry for the reply BUT someone can REALLY help me?
i need only to know if and where i shoul declare my dll functions(i've just declared it in xxxDlg.cpp main file)..
PLZPLZPLZ![]()
I'm Alen on Steam. RIP Skype Friday nights.
I'm Navi's lover 💖
Dave84311:God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
Mr. Lonely:@Alen I like making you wet, it makes me hard.
ok,but i try to upload my source here but i can't.
i've declared my dll functions on the top of xxxDlg.cpp (i talk NOW about the main dialog box)
HINSTANCE hDLL = NULL;
// 1) Teleport
typedef void (*STAMINA)();
STAMINA Stamina;
// 2) Teleport
typedef void (*TELEPORT)(float x, float y, float z);
TELEPORT Teleport;
and in the middle of file:[ OnInitDialog() ]
hDLL = AfxLoadLibrary("LH1337DLL");
if( hDLL == NULL )
{
MessageBox("Could not load LH1337DLL.dll");
}
else
{
Stamina = (STAMINA)GetProcAddress(hDLL, "Stamina");
Teleport = (TELEPORT)GetProcAddress(hDLL, "Teleport");
}
i need to declare in the same mode my dll functions also in my new Dialog boxes??
here's 1 of my dialog boxes
// vip.cpp : implementation file
//
#include "stdafx.h"
#include "0o0PrivateViP0o0.h"
#include "vip.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// Cvip dialog
Cvip::Cvip(CWnd* pParent /*=NULL*/)
: CDialog(Cvip::IDD, pParent)
{
//{{AFX_DATA_INIT(Cvip)
m_1 = FALSE;
m_2 = FALSE;
m_3 = FALSE;
m_4 = FALSE;
m_5 = FALSE;
//}}AFX_DATA_INIT
}
void Cvip:oDataExchange(CDataExchange* pDX)
{
CDialog:oDataExchange(pDX);
//{{AFX_DATA_MAP(Cvip)
DDX_Check(pDX, IDC_CHECK1, m_1);
DDX_Check(pDX, IDC_CHECK2, m_2);
DDX_Check(pDX, IDC_CHECK3, m_3);
DDX_Check(pDX, IDC_CHECK4, m_4);
DDX_Check(pDX, IDC_CHECK5, m_5);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cvip, CDialog)
//{{AFX_MSG_MAP(Cvip)
ON_BN_CLICKED(IDC_CHECK1, OnUnlammo)
ON_BN_CLICKED(IDC_CHECK2, OnKick)
ON_BN_CLICKED(IDC_CHECK3, OnNobonda)
ON_BN_CLICKED(IDC_CHECK4, OnVgps)
ON_BN_CLICKED(IDC_CHECK5, OnBoxes)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// Cvip message handlers
void Cvip::OnUnlammo()
{
int NAME;
CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK1);
NAME = pCheck->GetCheck(), 1;
if (NAME)
Ammo();
else
Ammooff();// TODO: Add your control notification handler code here
}
void Cvip::OnKick()
{
int NAME;
CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK2);
NAME = pCheck->GetCheck(), 1;
if (NAME)
Kik();
else
Kikoff(); // TODO: Add your control notification handler code here
}
void Cvip::OnNobonda()
{
int NAME;
CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK3);
NAME = pCheck->GetCheck(), 1;
if (NAME)
SetTimer(DODICITIMER, 1, NULL);
else
KillTimer(DODICITIMER);
}
void Cvip::OnVgps()
{
int NAME;
CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK4);
NAME = pCheck->GetCheck(), 1;
if (NAME)
Vgps();
else
Vgpsoff();
}
void Cvip::OnBoxes()
{
int NAME;
CButton* pCheck = (CButton*)GetDlgItem(IDC_CHECK5);
NAME = pCheck->GetCheck(), 1;
if (NAME)
Boxes();
else
Boxesoff();
}
where i should put the dll call functions?