Click here to Skip to main content
16,007,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Load gif, jpeg or tif image in VC++ Pin
Chris Losinger28-Feb-02 11:12
professionalChris Losinger28-Feb-02 11:12 
GeneralRe: Load gif, jpeg or tif image in VC++ Pin
Christian Graus28-Feb-02 11:21
protectorChristian Graus28-Feb-02 11:21 
GeneralRe: Load gif, jpeg or tif image in VC++ Pin
Chris Losinger28-Feb-02 12:07
professionalChris Losinger28-Feb-02 12:07 
GeneralRe: Load gif, jpeg or tif image in VC++ Pin
Christian Graus28-Feb-02 12:13
protectorChristian Graus28-Feb-02 12:13 
Generalhelp needed on encryption Pin
Jasmin Khan28-Feb-02 6:04
Jasmin Khan28-Feb-02 6:04 
GeneralRe: help needed on encryption Pin
alex.barylski28-Feb-02 6:43
alex.barylski28-Feb-02 6:43 
GeneralRe: help needed on encryption Pin
Paul M Watt28-Feb-02 7:49
mentorPaul M Watt28-Feb-02 7:49 
GeneralExplorer Integrated DLL Prob Pin
Peter Liddle28-Feb-02 5:53
Peter Liddle28-Feb-02 5:53 
Hey Guys

I probably put this post up before but oh well, I have a dll that integrates with explorer and when i try and put my own exported funtion in it crashes the program when i try and access it any ideas.

This is the code:-

// Note: Proxy/Stub Information
// To build a separate proxy/stub DLL,
// run nmake -f Software to Sign and Verify Filesps.mk in the project directory.

#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "Software to Sign and Verify Files.h"

#include "Software to Sign and Verify Files_i.c"
#include "SignShellExt.h"


CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_SignShellExt, CSignShellExt)
END_OBJECT_MAP()

class CSoftwaretoSignandVerifyFilesApp : public CWinApp
{
public:

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSoftwaretoSignandVerifyFilesApp)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL

//{{AFX_MSG(CSoftwaretoSignandVerifyFilesApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

BEGIN_MESSAGE_MAP(CSoftwaretoSignandVerifyFilesApp, CWinApp)
//{{AFX_MSG_MAP(CSoftwaretoSignandVerifyFilesApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

CSoftwaretoSignandVerifyFilesApp theApp;

BOOL CSoftwaretoSignandVerifyFilesApp::InitInstance()
{
_Module.Init(ObjectMap, m_hInstance, &LIBID_SOFTWARETOSIGNANDVERIFYFILESLib);
return CWinApp::InitInstance();
}

int CSoftwaretoSignandVerifyFilesApp::ExitInstance()
{
_Module.Term();
return CWinApp::ExitInstance();
}


/////////////////////////////////////////////////////////////////////////////
// Used to determine whether the DLL can be unloaded by OLE

STDAPI DllCanUnloadNow(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return (AfxDllCanUnloadNow()==S_OK && _Module.GetLockCount()==0) ? S_OK : S_FALSE;
}

/////////////////////////////////////////////////////////////////////////////
// Returns a class factory to create an object of the requested type

STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
{
return _Module.GetClassObject(rclsid, riid, ppv);
}

/////////////////////////////////////////////////////////////////////////////
// DllRegisterServer - Adds entries to the system registry

STDAPI DllRegisterServer(void)
{
// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE);
}

/////////////////////////////////////////////////////////////////////////////
// DllUnregisterServer - Removes entries from the system registry

STDAPI DllUnregisterServer(void)
{
return _Module.UnregisterServer(TRUE);
}

/////////////////////////////////////////////////////////////////////////////
// DLLVerifySignature - Allows Verification on double click
/*bool DLLVerifySignature(void)
{
return TRUE;
}*/
GeneralBool CArchive Pin
Li Mu Bai28-Feb-02 4:32
Li Mu Bai28-Feb-02 4:32 
GeneralRe: Bool CArchive Pin
Joaquín M López Muñoz28-Feb-02 5:18
Joaquín M López Muñoz28-Feb-02 5:18 
GeneralRe: Bool CArchive Pin
Li Mu Bai28-Feb-02 5:48
Li Mu Bai28-Feb-02 5:48 
QuestionWhat is First-Execption? Pin
anju28-Feb-02 4:17
anju28-Feb-02 4:17 
AnswerRe: What is First-Execption? Pin
Joaquín M López Muñoz28-Feb-02 4:36
Joaquín M López Muñoz28-Feb-02 4:36 
GeneralRe: What is First-Execption? Pin
anju28-Feb-02 4:44
anju28-Feb-02 4:44 
GeneralRe: What is First-Execption? Pin
Joaquín M López Muñoz28-Feb-02 4:55
Joaquín M López Muñoz28-Feb-02 4:55 
GeneralOther App handle Pin
Jerome Conus28-Feb-02 3:27
Jerome Conus28-Feb-02 3:27 
GeneralRe: Other App handle Pin
Joaquín M López Muñoz28-Feb-02 3:32
Joaquín M López Muñoz28-Feb-02 3:32 
GeneralRe: Other App handle Pin
Nish Nishant28-Feb-02 3:50
sitebuilderNish Nishant28-Feb-02 3:50 
GeneralHelp Pin
doudou28-Feb-02 3:01
doudou28-Feb-02 3:01 
GeneralRe: Help Pin
Joaquín M López Muñoz28-Feb-02 3:06
Joaquín M López Muñoz28-Feb-02 3:06 
GeneralRe: Help Pin
Mazdak28-Feb-02 3:14
Mazdak28-Feb-02 3:14 
GeneralRe: Help Pin
Carlos Antollini28-Feb-02 3:12
Carlos Antollini28-Feb-02 3:12 
GeneralProject Name Pin
Rajveer28-Feb-02 2:35
Rajveer28-Feb-02 2:35 
GeneralRe: Project Name Pin
Carlos Antollini28-Feb-02 2:45
Carlos Antollini28-Feb-02 2:45 
GeneralRe: Project Name Pin
Steen Krogsgaard28-Feb-02 9:53
Steen Krogsgaard28-Feb-02 9:53 

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.