Click here to Skip to main content
16,004,969 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to create a hook to stop a certain process run by another application? Pin
sashoalm18-Aug-08 20:36
sashoalm18-Aug-08 20:36 
QuestionLinker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 1:05
sashoalm13-Aug-08 1:05 
AnswerRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Nibu babu thomas13-Aug-08 1:26
Nibu babu thomas13-Aug-08 1:26 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 2:10
sashoalm13-Aug-08 2:10 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Nibu babu thomas13-Aug-08 2:17
Nibu babu thomas13-Aug-08 2:17 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 2:37
sashoalm13-Aug-08 2:37 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Nibu babu thomas13-Aug-08 2:41
Nibu babu thomas13-Aug-08 2:41 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 2:56
sashoalm13-Aug-08 2:56 
I don't think so either, but I defined it explicitly to see what happens
// #if defined(_AFXDLL)||defined(_USRDLL)
//  #define DLL_EXP __declspec(dllexport)
// #elif defined(_MSC_VER)&&(_MSC_VER<1200)
//  #define DLL_EXP __declspec(dllimport)
// #else
//  #define DLL_EXP
// #endif
#define DLL_EXP __declspec(dllimport)

, and there are several errors and warnings:
Linking...
   Creating library Debug\MyProject.lib and object Debug\MyProject.exp
LINK : warning LNK4049: locally defined symbol ""public: void * __thiscall CxImage::GetDIB(void)const " (?GetDIB@CxImage@@QBEPAXXZ)" imported
LINK : warning LNK4049: locally defined symbol ""public: void __thiscall CxImage::SetJpegQuality(unsigned char)" (?SetJpegQuality@CxImage@@QAEXE@Z)" imported
...
error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CxImage::Encode(class CxFile *,unsigned long)" (__imp_?Encode@CxImage@@QAE_NPAVCxFile@@K@Z)
error LNK2001: unresolved external symbol "__declspec(dllimport) public: bool __thiscall CxImage::Encode(class CxFile *,unsigned long)" (__imp_?Encode@CxImage@@QAE_NPAVCxFile@@K@Z)
...
Debug\MyProject.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

MyProject.exe - 8 error(s), 25 warning(s)

I also tried with defining it to nothing:
//  #define DLL_EXP __declspec(dllexport)
// #elif defined(_MSC_VER)&&(_MSC_VER<1200)
//  #define DLL_EXP __declspec(dllimport)
// #else
//  #define DLL_EXP
// #endif
#define DLL_EXP

and it still creates an exp and lib files, with the same export symbols. I really don't get it Confused | :confused:

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Nibu babu thomas13-Aug-08 3:01
Nibu babu thomas13-Aug-08 3:01 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 3:06
sashoalm13-Aug-08 3:06 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Jörgen Sigvardsson13-Aug-08 3:35
Jörgen Sigvardsson13-Aug-08 3:35 
NewsRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 3:48
sashoalm13-Aug-08 3:48 
AnswerRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
Jijo.Raj13-Aug-08 1:35
Jijo.Raj13-Aug-08 1:35 
GeneralRe: Linker creates *.lib and *.exp files for my EXE project, does anyone know what this means? Pin
sashoalm13-Aug-08 2:01
sashoalm13-Aug-08 2:01 
Questionusing directx in MFC Pin
koushik.net13-Aug-08 0:15
koushik.net13-Aug-08 0:15 
QuestionUsing Microsoft RTC, for video conferencing Pin
Ahmed Charfeddine12-Aug-08 23:51
Ahmed Charfeddine12-Aug-08 23:51 
AnswerRe: Using Microsoft RTC, for video conferencing Pin
Mark Salsbery13-Aug-08 6:39
Mark Salsbery13-Aug-08 6:39 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Ahmed Charfeddine13-Aug-08 7:17
Ahmed Charfeddine13-Aug-08 7:17 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Mark Salsbery13-Aug-08 7:40
Mark Salsbery13-Aug-08 7:40 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Ahmed Charfeddine17-Aug-08 22:36
Ahmed Charfeddine17-Aug-08 22:36 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Mark Salsbery18-Aug-08 5:34
Mark Salsbery18-Aug-08 5:34 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Ahmed Charfeddine18-Aug-08 5:41
Ahmed Charfeddine18-Aug-08 5:41 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Mark Salsbery18-Aug-08 6:06
Mark Salsbery18-Aug-08 6:06 
GeneralRe: Using Microsoft RTC, for video conferencing Pin
Ahmed Charfeddine18-Aug-08 21:17
Ahmed Charfeddine18-Aug-08 21:17 
Questionshell language Pin
iayd12-Aug-08 22:50
iayd12-Aug-08 22:50 

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.