Click here to Skip to main content
15,907,395 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionhelp on exe generation by other exe Pin
alex7869-May-08 4:53
alex7869-May-08 4:53 
AnswerRe: help on exe generation by other exe Pin
Stuart Dootson12-May-08 22:27
professionalStuart Dootson12-May-08 22:27 
QuestionRead data from a serial port Pin
hari_honey8-May-08 20:58
hari_honey8-May-08 20:58 
QuestionRe: Read data from a serial port Pin
Cedric Moonen8-May-08 21:11
Cedric Moonen8-May-08 21:11 
AnswerRe: Read data from a serial port Pin
hari_honey8-May-08 21:46
hari_honey8-May-08 21:46 
GeneralRe: Read data from a serial port Pin
CPallini11-May-08 21:54
mveCPallini11-May-08 21:54 
QuestionMinimize button does not work on Vista with Aero (using PropertySheets) Pin
howard_khan18-May-08 6:37
howard_khan18-May-08 6:37 
Questionerror compling dll Pin
alex7867-May-08 3:47
alex7867-May-08 3:47 
i created a dll....that uses the function..
headerfile

#ifndef _DLL_H_
#define _DLL_H_

#if BUILDING_DLL
# define DLLIMPORT __declspec (dllexport)
#else /* Not BUILDING_DLL */
# define DLLIMPORT __declspec (dllimport)
#endif /* Not BUILDING_DLL */

DLLIMPORT LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam);

#endif /* _DLL_H_ */


cpp file

/* Replace "dll.h" with the name of your header */
#include "key.h"
#include <windows.h>



DLLIMPORT LRESULT CALLBACK KeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
//some code here.....
}

BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
{
switch (reason)
{
case DLL_PROCESS_ATTACH:
MessageBox( NULL,"Test working","cool",MB_OK | MB_ICONINFORMATION);
break;

case DLL_PROCESS_DETACH:
break;

case DLL_THREAD_ATTACH:
break;

case DLL_THREAD_DETACH:
break;
}

/* Returns TRUE on success, FALSE on failure */
return TRUE;
}



when im compiling this dll with Dev-C++ compiler..im getting error....


my compiler log is:


Compiler: Default compiler
Building Makefile: "D:\devcpp project\keylogger\testlogger\sysproc\Makefile.win"
Executing make...
make.exe -f "D:\devcpp project\keylogger\testlogger\sysproc\Makefile.win" all
g++.exe -c dllmain.cpp -o dllmain.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include" -DBUILDING_DLL=1

In file included from dllmain.cpp:2:
key.h:10: error: `LRESULT' does not name a type

make.exe: *** [dllmain.o] Error 1

Execution terminated



can someone please help me what im doing wrong...what im able to understand is that it is not able to get the declaration for LRESULT......
how to correc that.....

thanx in advance...dudes
AnswerRe: error compling dll Pin
Cedric Moonen8-May-08 21:10
Cedric Moonen8-May-08 21:10 
QuestionFunctionality similar to mcafee site advisor browser plugin Pin
bikramthapa7-May-08 2:18
bikramthapa7-May-08 2:18 
QuestionCatching a WM_MOUSEMOVE from a popup menu opened from IE-toolbar Pin
amosygal6-May-08 23:42
amosygal6-May-08 23:42 
QuestionFire Event from Worker thread in ATL COM Loaded on a Web Page Pin
garammasala5-May-08 23:52
garammasala5-May-08 23:52 
QuestionAtlAdvise returns 0x80040201 [modified] Pin
Scorp1us1-May-08 8:28
Scorp1us1-May-08 8:28 
QuestionPopup Menu sends "UnInit" Before sending a command Pin
yytg1-May-08 4:43
yytg1-May-08 4:43 
QuestionC2440 Pin
T.RATHA KRISHNAN30-Apr-08 19:37
T.RATHA KRISHNAN30-Apr-08 19:37 
AnswerRe: C2440 Pin
Jörgen Sigvardsson1-May-08 0:14
Jörgen Sigvardsson1-May-08 0:14 
QuestionHow to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 2:30
ritz123430-Apr-08 2:30 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
led mike30-Apr-08 4:32
led mike30-Apr-08 4:32 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 5:19
mveCPallini30-Apr-08 5:19 
GeneralRe: How to use ATL COM dll in JavaScript? Pin
ritz123430-Apr-08 18:41
ritz123430-Apr-08 18:41 
QuestionRe: How to use ATL COM dll in JavaScript? Pin
CPallini30-Apr-08 22:10
mveCPallini30-Apr-08 22:10 
AnswerRe: How to use ATL COM dll in JavaScript? Pin
ritz12341-May-08 3:06
ritz12341-May-08 3:06 
GeneralLoading a Dialog Resource from a different DLL Pin
PhilGoh29-Apr-08 2:30
PhilGoh29-Apr-08 2:30 
AnswerRe: Loading a Dialog Resource from a different DLL Pin
prasad_som30-Apr-08 4:16
prasad_som30-Apr-08 4:16 
QuestionHandle VC++ ATL COM Event in Java Script ?? [modified] Pin
garammasala28-Apr-08 2:46
garammasala28-Apr-08 2:46 

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.