Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: linker problem Pin
devvvy12-Nov-02 11:22
devvvy12-Nov-02 11:22 
GeneralRe: linker problem Pin
Joaquín M López Muñoz12-Nov-02 11:19
Joaquín M López Muñoz12-Nov-02 11:19 
GeneralRe: linker problem Pin
devvvy12-Nov-02 12:14
devvvy12-Nov-02 12:14 
GeneralRe: linker problem Pin
Joaquín M López Muñoz12-Nov-02 20:03
Joaquín M López Muñoz12-Nov-02 20:03 
GeneralRe: linker problem Pin
devvvy12-Nov-02 20:20
devvvy12-Nov-02 20:20 
GeneralRe: linker problem Pin
Joaquín M López Muñoz12-Nov-02 20:33
Joaquín M López Muñoz12-Nov-02 20:33 
GeneralRe: linker problem Pin
devvvy12-Nov-02 23:10
devvvy12-Nov-02 23:10 
GeneralRe: linker problem Pin
devvvy13-Nov-02 0:07
devvvy13-Nov-02 0:07 
I have checked and there're three winuser.h on my system. So, I #include the version that has defined SetLayeredWindowAttribute as follows (dialog class cpp file):

#define _WIN32_WINNT 0x0500
#define WINVER 0x0500

#include "C:\Program Files\Microsoft SDK\Include\WinUser.h" //I double checked. SetLayeredWindowAttributes is declared in this file. For some strange reason, Intellisense doesnt seems to register this???


And I am still getting this compiler error:

Compiling...
DeleteThisProject.cpp
DeleteThisProjectDlg.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\DeleteThisProject\DeleteThisProjectDlg.cpp(128) : error C2065: 'SetLayeredWindowAttributes' : undeclared identifier
Generating Code...
Error executing cl.exe.

Since it's a compiler error, can I safely conclude that it has nothing to do with library file user32.lib? But how can this happen? I openned the header file and I search for the API and there it is the declaration of the API is sitting right in front of me: SetLayeredWindowsAttributes(..)



norm
GeneralOutput STL string into file. Pin
Michael Liu12-Nov-02 10:21
Michael Liu12-Nov-02 10:21 
GeneralRe: Output STL string into file. Pin
Christian Graus12-Nov-02 10:33
protectorChristian Graus12-Nov-02 10:33 
QuestionSendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous12-Nov-02 10:15
Anonymous12-Nov-02 10:15 
AnswerRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Dave Bryant12-Nov-02 10:21
Dave Bryant12-Nov-02 10:21 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous12-Nov-02 10:28
Anonymous12-Nov-02 10:28 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Dave Bryant12-Nov-02 10:34
Dave Bryant12-Nov-02 10:34 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
Anonymous13-Nov-02 4:05
Anonymous13-Nov-02 4:05 
GeneralRe: SendMessage Inside a UI thread to the Main App.. Is this bad? Pin
PJ Arends12-Nov-02 10:40
professionalPJ Arends12-Nov-02 10:40 
GeneralAbstract base classes in .dll Pin
Aaron Schaefer12-Nov-02 9:46
Aaron Schaefer12-Nov-02 9:46 
GeneralRe: Abstract base classes in .dll Pin
Joaquín M López Muñoz12-Nov-02 10:48
Joaquín M López Muñoz12-Nov-02 10:48 
GeneralRe: Abstract base classes in .dll Pin
Aaron Schaefer12-Nov-02 10:53
Aaron Schaefer12-Nov-02 10:53 
GeneralIE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 9:38
JoeSox12-Nov-02 9:38 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
Chris Hambleton12-Nov-02 11:07
Chris Hambleton12-Nov-02 11:07 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 11:38
JoeSox12-Nov-02 11:38 
GeneralRe: IE Icon RightClick Properties Menu.... Pin
JoeSox12-Nov-02 12:17
JoeSox12-Nov-02 12:17 
GeneralTCP/IP Solutions... needed! Pin
Walote12-Nov-02 9:37
Walote12-Nov-02 9:37 
GeneralRe: TCP/IP Solutions... needed! Pin
Joaquín M López Muñoz12-Nov-02 10:59
Joaquín M López Muñoz12-Nov-02 10:59 

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.