Click here to Skip to main content
15,912,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to obtain mouse position while dragging a dialog bar... Pin
Hamid_RT16-Aug-06 23:35
Hamid_RT16-Aug-06 23:35 
GeneralRe: how to obtain mouse position while dragging a dialog bar... Pin
Luckeman17-Aug-06 20:34
Luckeman17-Aug-06 20:34 
QuestionError C2264 Pin
alunw16-Aug-06 7:30
alunw16-Aug-06 7:30 
AnswerRe: Error C2264 Pin
Waldermort16-Aug-06 7:41
Waldermort16-Aug-06 7:41 
GeneralRe: Error C2264 Pin
alunw16-Aug-06 8:00
alunw16-Aug-06 8:00 
AnswerRe: Error C2264 Pin
Zac Howland16-Aug-06 10:25
Zac Howland16-Aug-06 10:25 
QuestionTrouble linking with particular libs Pin
AceCoolie16-Aug-06 7:20
AceCoolie16-Aug-06 7:20 
AnswerRe: Trouble linking with particular libs Pin
alunw16-Aug-06 8:22
alunw16-Aug-06 8:22 
I'm not familiar with the particular libraries or DLLs are using, so I apologise if my comments below are obvious or not helpful.

I think the @12 means your function is being compiled as a __stdcall function. If the function does not have a calling convention specified (e.g. __fastcall or __cdecl) or some equivalent macro (e.g. WINAPI) then your compile options may be selecting a different calling convention from the one intended. (Check for /Gz compile option and try using /Gr instead).
I'd also check such things as your predefined macros (e.g. WIN32 _MSC_VER etc) and other -D options. If the code you are compiling is intended for multiple platforms things like calling conventions are likely to be very sensitive to this, because the code will be trying to cope with different compilers.

Another possible cause of confusion is the method used to build the import library.
You can get quite different results depending on whether you have a .DEF file or not, and whether you make use of the .EXP file or not.
If you don't have a .DEF file, the linker will usually use your functions actual signature for the .LIB file, but if you have a .DEF file you may be able to remove the decoration.
Personally I always use a .DEF file, and put NONAMES everywhere.
It might be an idea to try to locate a makefile for the Khronos version.

GeneralRe: Trouble linking with particular libs Pin
AceCoolie16-Aug-06 10:57
AceCoolie16-Aug-06 10:57 
QuestionConvert Convert C# code to C++ 2005 with extended stored procedure Pin
sea200616-Aug-06 7:00
sea200616-Aug-06 7:00 
AnswerRe: Convert Convert C# code to C++ 2005 with extended stored procedure [modified] Pin
sea200616-Aug-06 7:02
sea200616-Aug-06 7:02 
Questionmultiple selection list box Pin
kumar_mk16-Aug-06 6:51
kumar_mk16-Aug-06 6:51 
AnswerRe: multiple selection list box Pin
Chris Losinger16-Aug-06 7:01
professionalChris Losinger16-Aug-06 7:01 
GeneralRe: multiple selection list box Pin
kumar_mk16-Aug-06 7:24
kumar_mk16-Aug-06 7:24 
AnswerRe: multiple selection list box Pin
David Crow16-Aug-06 7:25
David Crow16-Aug-06 7:25 
QuestionOperator Overloading Pin
RichardS16-Aug-06 6:17
RichardS16-Aug-06 6:17 
AnswerRe: Operator Overloading Pin
valikac16-Aug-06 8:03
valikac16-Aug-06 8:03 
AnswerRe: Operator Overloading Pin
Zac Howland16-Aug-06 10:34
Zac Howland16-Aug-06 10:34 
GeneralRe: Operator Overloading Pin
RichardS16-Aug-06 21:00
RichardS16-Aug-06 21:00 
QuestionPaint/Invalidate problem ( HTML browser ) maybe WS_CLIPCHILDREN related ? Pin
Maximilien16-Aug-06 6:01
Maximilien16-Aug-06 6:01 
QuestionTCP socket time out Pin
nahitan16-Aug-06 5:36
nahitan16-Aug-06 5:36 
AnswerRe: TCP socket time out [modified] Pin
S Douglas22-Aug-06 21:11
professionalS Douglas22-Aug-06 21:11 
QuestionSyntax problems Pin
Jay0316-Aug-06 5:19
Jay0316-Aug-06 5:19 
AnswerRe: Syntax problems Pin
Rage16-Aug-06 5:23
professionalRage16-Aug-06 5:23 
GeneralRe: Syntax problems Pin
Jay0316-Aug-06 5:51
Jay0316-Aug-06 5:51 

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.