Click here to Skip to main content
15,878,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debugging Dll Pin
Richard MacCutchan30-Jan-13 2:55
mveRichard MacCutchan30-Jan-13 2:55 
GeneralRe: Debugging Dll Pin
sarfaraznawaz30-Jan-13 3:10
sarfaraznawaz30-Jan-13 3:10 
GeneralRe: Debugging Dll Pin
Richard MacCutchan30-Jan-13 3:20
mveRichard MacCutchan30-Jan-13 3:20 
GeneralRe: Debugging Dll Pin
sarfaraznawaz30-Jan-13 23:06
sarfaraznawaz30-Jan-13 23:06 
GeneralRe: Debugging Dll Pin
Richard MacCutchan30-Jan-13 23:10
mveRichard MacCutchan30-Jan-13 23:10 
GeneralRe: Debugging Dll Pin
sarfaraznawaz31-Jan-13 2:01
sarfaraznawaz31-Jan-13 2:01 
GeneralRe: Debugging Dll Pin
Richard MacCutchan31-Jan-13 2:04
mveRichard MacCutchan31-Jan-13 2:04 
GeneralRe: Debugging Dll Pin
sarfaraznawaz31-Jan-13 2:21
sarfaraznawaz31-Jan-13 2:21 
In DLL i have written the code for Context menu in vs2010 using COM
i derived the class CRsEraser : public IContextMenu, public IShellExtInit
this IShellExtInit and IContextMenu is are com class
when use it

HRESULT __stdcall CCmpntFactory::CreateInstance (IUnknown *pUnknownOuter, const IID& iid, void** ppv)
{
if(pUnknownOuter != NULL)
return CLASS_E_NOAGGREGATION;

CRsEraser *pCmpnt = new CRsEraser;
if (pCmpnt == NULL)
return E_OUTOFMEMORY;

HRESULT hr = pCmpnt->QueryInterface (iid, ppv);

//////////////////////////////////////////////////////////////////////////
// Release the IUnknown pointer
pCmpnt->Release ();

return hr;
}
CRsEraser *pCmpnt = new CRsEraser;this part showing its abstract class .
in 32 bit compile its working fine same when configure to 64 bit its throwing the error what i have mention earlier .
how i configure:
1 Open your Visual C++ Solution
2 Choose Build->Configuration Manager menu
3 Inside the Configuration Manager window, change the ‘Active solution platform’ to x64. If you don’t have any, you would need to create one by selecting the ‘New..’ drop down item. Copy settings from your Win32 platform.
4 Now rebuild your solution.
GeneralRe: Debugging Dll Pin
sarfaraznawaz5-Feb-13 18:21
sarfaraznawaz5-Feb-13 18:21 
Questionconvert parameter from 'MSTR' to 'char*' Pin
ksjbharathi24-Jan-13 0:27
ksjbharathi24-Jan-13 0:27 
AnswerRe: convert parameter from 'MSTR' to 'char*' Pin
Sivaraman Dhamodharan24-Jan-13 1:23
Sivaraman Dhamodharan24-Jan-13 1:23 
AnswerRe: convert parameter from 'MSTR' to 'char*' Pin
Richard MacCutchan24-Jan-13 1:48
mveRichard MacCutchan24-Jan-13 1:48 
QuestionRe: convert parameter from 'MSTR' to 'char*' Pin
CPallini25-Jan-13 10:57
mveCPallini25-Jan-13 10:57 
QuestionHow to calculate thumb's possion in CScrollBar ????? Pin
Bee cute23-Jan-13 23:26
Bee cute23-Jan-13 23:26 
Questionhow to designe my text of dialog box? Pin
VCProgrammer23-Jan-13 23:05
VCProgrammer23-Jan-13 23:05 
AnswerRe: how to designe my text of dialog box? Pin
Richard MacCutchan23-Jan-13 23:47
mveRichard MacCutchan23-Jan-13 23:47 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 0:08
VCProgrammer24-Jan-13 0:08 
GeneralRe: how to designe my text of dialog box? Pin
Sivaraman Dhamodharan24-Jan-13 1:22
Sivaraman Dhamodharan24-Jan-13 1:22 
GeneralRe: how to designe my text of dialog box? Pin
Richard MacCutchan24-Jan-13 1:39
mveRichard MacCutchan24-Jan-13 1:39 
GeneralRe: how to designe my text of dialog box? Pin
VCProgrammer24-Jan-13 19:56
VCProgrammer24-Jan-13 19:56 
QuestionLinking Error Pin
john563223-Jan-13 22:26
john563223-Jan-13 22:26 
AnswerRe: Linking Error Pin
Richard MacCutchan23-Jan-13 22:58
mveRichard MacCutchan23-Jan-13 22:58 
GeneralRe: Linking Error Pin
john563223-Jan-13 23:18
john563223-Jan-13 23:18 
GeneralRe: Linking Error Pin
deardiary23-Jan-13 23:28
deardiary23-Jan-13 23:28 
GeneralRe: Linking Error Pin
Richard MacCutchan23-Jan-13 23:45
mveRichard MacCutchan23-Jan-13 23:45 

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.