View previous topic :: View next topic |
Author |
Message |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Tue Feb 15, 2011 4:56 pm Post subject: Injecting a MFC DLL, problem |
|
|
I made a basic DLL using MFC and when I inject it, the target application freezes until I've closed the DLL's window. Anyone know a way to fix this? I've googled for about an hour now, without finding anything helpful.
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Tue Feb 15, 2011 5:18 pm Post subject: |
|
|
Not much we can do to help you without seeing code. "it dun work" type topics generally never get answered because of this.
_________________
- Retired. |
|
Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Tue Feb 15, 2011 5:21 pm Post subject: |
|
|
TreeView.cpp
Code: |
#include "stdafx.h"
#include "resource.h"
#include "TreeView.h"
CDtreeApp dApp;
BOOL CDtreeApp::InitInstance()
{
CDtreeDlg dlg;
m_pMainWnd = &dlg;
dlg.DoModal();
return TRUE;
}
CDtreeDlg::CDtreeDlg(CWnd* pParent /*=NULL*/) : CDialog(CDtreeDlg::IDD, pParent)
{
}
BOOL CDtreeDlg::OnInitDialog()
{
CDialog::OnInitDialog();
CMenu* pSysMenu = GetSystemMenu( FALSE );
HICON m_hIcon = NULL;
SetIcon(m_hIcon, TRUE);
SetIcon(m_hIcon, FALSE);
HTREEITEM DERP = m_Tree.InsertItem("Derp", TVI_ROOT);
return TRUE;
}
void CDtreeDlg::DoDataExchange(CDataExchange *pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_PACKETS, m_Tree);
} |
TreeView.h
Code: | #include <afxcmn.h>
class CDtreeApp : public CWinApp
{
public:
BOOL InitInstance();
};
class CDtreeDlg : public CDialog
{
public:
CDtreeDlg(CWnd* pParent = NULL);
enum { IDD = IDD_PACKETVIEW };
protected:
CTreeCtrl m_Tree;
virtual void DoDataExchange(CDataExchange* pDX);
virtual BOOL OnInitDialog();
}; |
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
|
Back to top |
|
 |
Jesper Grandmaster Cheater Supreme
Reputation: 9
Joined: 21 Feb 2007 Posts: 1156
|
Posted: Tue Feb 15, 2011 6:08 pm Post subject: |
|
|
Got it to work now. Thanks for the help.
|
|
Back to top |
|
 |
|