Click here to Skip to main content
15,915,800 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question while (!pRecordset->GetadoEOF ()).......no MSDN help on this? Pin
ns31-Jul-02 6:59
ns31-Jul-02 6:59 
AnswerRe: while (!pRecordset->GetadoEOF ()).......no MSDN help on this? Pin
Alex Mitchell31-Jul-02 7:12
Alex Mitchell31-Jul-02 7:12 
AnswerRe: while (!pRecordset->GetadoEOF ()).......no MSDN help on this? Pin
Ravi Bhavnani31-Jul-02 8:02
professionalRavi Bhavnani31-Jul-02 8:02 
GeneralAsk about how to use startdoc(), startpage() to print data on paper imediately. Pin
ooosawaddee331-Jul-02 6:54
ooosawaddee331-Jul-02 6:54 
GeneralRe: Ask about how to use startdoc(), startpage() to print data on paper imediately. Pin
ooosawaddee331-Jul-02 7:42
ooosawaddee331-Jul-02 7:42 
GeneralCTabCtrl: Remove from propertysheet Pin
DroogsAlex31-Jul-02 6:51
DroogsAlex31-Jul-02 6:51 
GeneralRe: CTabCtrl: Remove from propertysheet Pin
Joaquín M López Muñoz31-Jul-02 7:07
Joaquín M López Muñoz31-Jul-02 7:07 
QuestionNow why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 6:43
Tommy Svensson31-Jul-02 6:43 
Hi,

I've been staring at this problem for hours and hours... what is wrong?!
This is what I do:

...snip...

CComModule _Module;

BEGIN_OBJECT_MAP(ObjectMap)
OBJECT_ENTRY(CLSID_Lex, CLex)
END_OBJECT_MAP()

/////////////////////////////////////////////////////////////////////////////
// DLL Entry Point

extern "C"
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/)
{
    if (dwReason == DLL_PROCESS_ATTACH)
    {
	TCHAR pszLoader[MAX_PATH];
	GetModuleFileName(NULL, pszLoader, MAX_PATH);
	_tcslwr(pszLoader);
	if (_tcsstr(pszLoader, _T("explorer.exe")))
	    return FALSE;

        _Module.Init(ObjectMap, hInstance, &LIBID_LEXBHOLib);
        DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
        _Module.Term();
    return TRUE;    // ok
}

...snap...


I get this error:

---Configuration: LexBHO - Win32 Unicode Release MinDependency--------
Linking...
   Creating library ReleaseUMinDependency/LexBHO.lib and object ReleaseUMinDependency/LexBHO.exp
LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
ReleaseUMinDependency/LexBHO.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

LexBHO.dll - 2 error(s), 0 warning(s)


But when I comment these lines out...

/*
	TCHAR pszLoader[MAX_PATH];
	GetModuleFileName(NULL, pszLoader, MAX_PATH);
	_tcslwr(pszLoader);
	if (_tcsstr(pszLoader, _T("explorer.exe")))
	    return FALSE;
*/

...things are working just fine. What is wrong with _tcslwr? Because that's where the problems start...

Help is much appreciated,

/Tommy
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
Joaquín M López Muñoz31-Jul-02 6:47
Joaquín M López Muñoz31-Jul-02 6:47 
GeneralRe: Now why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 6:50
Tommy Svensson31-Jul-02 6:50 
GeneralRe: Now why doesn't this COMPILE!?!?!? Pin
Joaquín M López Muñoz31-Jul-02 6:57
Joaquín M López Muñoz31-Jul-02 6:57 
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
jeffluckett31-Jul-02 7:09
jeffluckett31-Jul-02 7:09 
GeneralRe: Now why doesn't this COMPILE!?!?!? Pin
Tommy Svensson31-Jul-02 7:16
Tommy Svensson31-Jul-02 7:16 
GeneralRe: Now why doesn't this COMPILE!?!?!? Pin
pépé2-Aug-02 0:35
pépé2-Aug-02 0:35 
AnswerRe: Now why doesn't this COMPILE!?!?!? Pin
Vagif Abilov2-Aug-02 0:46
professionalVagif Abilov2-Aug-02 0:46 
GeneralDialog Box & Property Sheet :: MFC Pin
valikac31-Jul-02 6:35
valikac31-Jul-02 6:35 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
Joaquín M López Muñoz31-Jul-02 6:43
Joaquín M López Muñoz31-Jul-02 6:43 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
valikac31-Jul-02 6:50
valikac31-Jul-02 6:50 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
Joaquín M López Muñoz31-Jul-02 6:55
Joaquín M López Muñoz31-Jul-02 6:55 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
valikac31-Jul-02 6:56
valikac31-Jul-02 6:56 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
Joaquín M López Muñoz31-Jul-02 6:59
Joaquín M López Muñoz31-Jul-02 6:59 
GeneralRe: Dialog Box & Property Sheet :: MFC Pin
valikac31-Jul-02 9:11
valikac31-Jul-02 9:11 
Questionsocket monitor, is it possible? Pin
includeh1031-Jul-02 6:17
includeh1031-Jul-02 6:17 
AnswerRe: socket monitor, is it possible? Pin
jmkhael31-Jul-02 6:22
jmkhael31-Jul-02 6:22 
AnswerRe: socket monitor, is it possible? Pin
jmkhael31-Jul-02 6:24
jmkhael31-Jul-02 6:24 

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.