Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
_AnsHUMAN_ 2-Feb-11 20:35
_AnsHUMAN_ 2-Feb-11 20:35 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 4:19
charanmanjunath3-Feb-11 4:19 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 7:05
charanmanjunath3-Feb-11 7:05 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
Stefan_Lang3-Feb-11 21:29
Stefan_Lang3-Feb-11 21:29 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath3-Feb-11 22:36
charanmanjunath3-Feb-11 22:36 
GeneralRe: Getting the error Link2001: unresolved reference to the function Pin
charanmanjunath8-Feb-11 3:10
charanmanjunath8-Feb-11 3:10 
QuestionMemory deallocation Pin
csrss2-Feb-11 4:16
csrss2-Feb-11 4:16 
AnswerRe: Memory deallocation Pin
Stephen Hewitt2-Feb-11 4:26
Stephen Hewitt2-Feb-11 4:26 
The thing is you have to be careful to free it from the same heap as it's allocated on, or you'll end up in trouble. The general answer to this is to make the module (DLL) that allocated the memory free it. There are many ways to do this but something like this is typical:

// All the following functions are exported from a DLL.
 
Stuff* MakeSomeCrap()
{
    Stuff *pStuff = new Stuff();
    return pStuff;
}
 
void FreeStuff(Stuff *pStuff)
{
    // Since the same DLL delete's it we know for sure we're using the correct heap.
    delete pStuff;
}

Steve

AnswerRe: Memory deallocation Pin
Andrew Brock2-Feb-11 4:32
Andrew Brock2-Feb-11 4:32 
QuestionRe: Memory deallocation Pin
csrss2-Feb-11 4:53
csrss2-Feb-11 4:53 
AnswerRe: Memory deallocation Pin
Aescleal2-Feb-11 4:49
Aescleal2-Feb-11 4:49 
GeneralRe: Memory deallocation Pin
csrss2-Feb-11 5:21
csrss2-Feb-11 5:21 
GeneralRe: Memory deallocation Pin
Aescleal2-Feb-11 5:54
Aescleal2-Feb-11 5:54 
GeneralRe: Memory deallocation Pin
csrss2-Feb-11 6:16
csrss2-Feb-11 6:16 
Answer... [modified] Pin
csrss2-Feb-11 6:46
csrss2-Feb-11 6:46 
GeneralRe: ... Pin
Andrew Brock2-Feb-11 16:54
Andrew Brock2-Feb-11 16:54 
GeneralRe: ... Pin
csrss2-Feb-11 22:41
csrss2-Feb-11 22:41 
AnswerRe: Memory deallocation Pin
Stefan_Lang3-Feb-11 6:38
Stefan_Lang3-Feb-11 6:38 
Question[REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Curtis Tong1-Feb-11 23:38
Curtis Tong1-Feb-11 23:38 
GeneralRe: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Malli_S1-Feb-11 23:57
Malli_S1-Feb-11 23:57 
AnswerRe: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Malli_S2-Feb-11 0:04
Malli_S2-Feb-11 0:04 
GeneralRe: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Andrew Brock2-Feb-11 0:51
Andrew Brock2-Feb-11 0:51 
GeneralRe: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Malli_S2-Feb-11 0:57
Malli_S2-Feb-11 0:57 
AnswerRe: [REQUEST] TabControl Sample Code (Visual C++, Win32, Win32 Project) with Tutorial on what to edit to customize it Pin
Andrew Brock2-Feb-11 0:51
Andrew Brock2-Feb-11 0:51 
QuestionSong and video Parsing Pin
VikramRathod1-Feb-11 22:30
VikramRathod1-Feb-11 22:30 

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.