Click here to Skip to main content
15,914,074 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help me !!(about multy thread using csocket) Pin
NPDemon29-May-05 15:33
NPDemon29-May-05 15:33 
GeneralRe: help me !!(about multy thread using csocket) Pin
trelliot29-May-05 16:57
trelliot29-May-05 16:57 
GeneralRe: help me !!(about multy thread using csocket) Pin
NPDemon29-May-05 20:40
NPDemon29-May-05 20:40 
GeneralCDC and transparent blitting Pin
Cedric Moonen29-May-05 4:06
Cedric Moonen29-May-05 4:06 
GeneralRe: CDC and transparent blitting Pin
Chris Losinger29-May-05 5:28
professionalChris Losinger29-May-05 5:28 
GeneralRe: CDC and transparent blitting Pin
Michael Dunn29-May-05 5:35
sitebuilderMichael Dunn29-May-05 5:35 
GeneralRe: CDC and transparent blitting Pin
Cedric Moonen29-May-05 5:44
Cedric Moonen29-May-05 5:44 
GeneralRe: CDC and transparent blitting Pin
Christian Graus29-May-05 12:05
protectorChristian Graus29-May-05 12:05 
cedric moonen wrote:
Thanks for the response but I have a linker error: error LNK2001: unresolved external symbol __imp__TransparentBlt@44.

That means you are not linking to the right library for this function. Do you have VC7, or if you're using VC6, do you have a platoform SDK installed apart from the one that came with it ( you must do, otherwise you wouldn't get to the linking stage ). If the latter, perhaps your lib directory is not set up, but your include directory is.

cedric moonen wrote:
So maybe it can lead to problems if I mix CDC with HDC...

No - a CDC is just a wrapper around a HDC, they boil down to the same thing with some helper functions. TransparentBlt is not supported by W95, and VC6 did not come with TransparentBlt, etc, because they did not exist. therefore, VC6 users need to have a more recent platform SDK installed in order for the compiler to know how to call those functions. It sounds like your compiler can find the header files that define this function, but not the lib file required at linking time, therefore I think you have VC6 and a Platform SDK that is not installed properly.

And obviously, if you use TransparentBlt, your exe won't run on W95. If it needs to, I wrote a W95 compatible version of TransparentBlt and AlphaBlend years ago, it's hosted on the Windows Developer Journal site. If you google 'Graus AlphaBlend TransparentBlt', you're bound to find it.

Christian Graus - Microsoft MVP - C++
GeneralRe: CDC and transparent blitting Pin
Cedric Moonen29-May-05 20:05
Cedric Moonen29-May-05 20:05 
GeneralRe: CDC and transparent blitting Pin
John R. Shaw30-May-05 14:27
John R. Shaw30-May-05 14:27 
Generaldata not accepted Pin
anup nambiar29-May-05 4:04
anup nambiar29-May-05 4:04 
GeneralRe: data not accepted Pin
Christian Graus29-May-05 12:11
protectorChristian Graus29-May-05 12:11 
GeneralRe: data not accepted Pin
trelliot29-May-05 14:29
trelliot29-May-05 14:29 
GeneralRe: data not accepted Pin
anup nambiar29-May-05 20:41
anup nambiar29-May-05 20:41 
GeneralRe: data not accepted Pin
trelliot29-May-05 16:37
trelliot29-May-05 16:37 
GeneralFinding GUID of a driver Pin
Franz Klein29-May-05 3:20
Franz Klein29-May-05 3:20 
GeneralHandling horizontal vertical scrolls Pin
laiju29-May-05 1:06
laiju29-May-05 1:06 
GeneralRe: Handling horizontal vertical scrolls Pin
trelliot29-May-05 15:23
trelliot29-May-05 15:23 
GeneralRe: Handling horizontal vertical scrolls Pin
Ryan Binns29-May-05 18:59
Ryan Binns29-May-05 18:59 
GeneralRe: Handling horizontal vertical scrolls Pin
John R. Shaw30-May-05 14:42
John R. Shaw30-May-05 14:42 
Questionhow to set timeout value in programm using csocket class ? Pin
NPDemon28-May-05 22:23
NPDemon28-May-05 22:23 
AnswerRe: how to set timeout value in programm using csocket class ? Pin
Alexander M.,29-May-05 2:34
Alexander M.,29-May-05 2:34 
AnswerRe: how to set timeout value in programm using csocket class ? Pin
ThatsAlok29-May-05 17:45
ThatsAlok29-May-05 17:45 
QuestionWhat View type for a "log view" Pin
Member 198398528-May-05 17:03
Member 198398528-May-05 17:03 
AnswerRe: What View type for a "log view" Pin
Ravi Bhavnani28-May-05 18:14
professionalRavi Bhavnani28-May-05 18:14 

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.