Click here to Skip to main content
15,921,530 members
Home / Discussions / Windows Forms
   

Windows Forms

 
Questionhow to write code for backup in windows application Pin
srinivassam7-May-08 18:42
srinivassam7-May-08 18:42 
AnswerRe: how to write code for backup in windows application Pin
John Ad7-May-08 20:26
John Ad7-May-08 20:26 
AnswerRe: how to write code for backup in windows application Pin
Brady Kelly7-May-08 23:11
Brady Kelly7-May-08 23:11 
GeneralRe: how to write code for backup in windows application Pin
Christian Graus8-May-08 1:21
protectorChristian Graus8-May-08 1:21 
GeneralRe: how to write code for backup in windows application Pin
Brady Kelly8-May-08 1:51
Brady Kelly8-May-08 1:51 
GeneralRe: how to write code for backup in windows application Pin
Mycroft Holmes8-May-08 23:28
professionalMycroft Holmes8-May-08 23:28 
GeneralRe: how to write code for backup in windows application Pin
Christian Graus9-May-08 1:04
protectorChristian Graus9-May-08 1:04 
Questionerror compiling dll Pin
alex7867-May-08 3:48
alex7867-May-08 3:48 
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 compiling dll Pin
Christian Graus7-May-08 12:13
protectorChristian Graus7-May-08 12:13 
QuestionHow to change the column alignment in Preview of grid Pin
Revathij6-May-08 23:44
Revathij6-May-08 23:44 
QuestionError in VC++ generated code Pin
Khalaris6-May-08 2:11
Khalaris6-May-08 2:11 
AnswerRe: Error in VC++ generated code Pin
Khalaris7-May-08 22:00
Khalaris7-May-08 22:00 
QuestionAdd new property to Standard controls Pin
Ralph_ai2x5-May-08 15:55
Ralph_ai2x5-May-08 15:55 
AnswerRe: Add new property to Standard controls Pin
Christian Graus5-May-08 17:52
protectorChristian Graus5-May-08 17:52 
AnswerRe: Add new property to Standard controls Pin
Thomas Stockwell6-May-08 8:18
professionalThomas Stockwell6-May-08 8:18 
AnswerRe: Add new property to Standard controls Pin
buchstaben8-May-08 5:23
buchstaben8-May-08 5:23 
QuestionUsing a custom string to cacls Pin
Johan134-May-08 22:55
Johan134-May-08 22:55 
AnswerRe: Using a custom string to cacls Pin
Dave Kreskowiak6-May-08 8:54
mveDave Kreskowiak6-May-08 8:54 
AnswerRe: Using a custom string to cacls Pin
Johan137-May-08 21:11
Johan137-May-08 21:11 
QuestionRe: Using a custom string to cacls Pin
Johan138-May-08 21:53
Johan138-May-08 21:53 
AnswerRe: Using a custom string to cacls Pin
Dave Kreskowiak9-May-08 1:37
mveDave Kreskowiak9-May-08 1:37 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:05
Johan1312-May-08 0:05 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:10
Johan1312-May-08 0:10 
QuestionRe: Using a custom string to cacls Pin
Johan137-May-08 21:10
Johan137-May-08 21:10 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 0:05
Member 38458153-May-08 0:05 

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.