Click here to Skip to main content
15,896,493 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPossible to write .ini from .bat? Pin
blueSprite7-Oct-04 9:08
blueSprite7-Oct-04 9:08 
AnswerRe: Possible to write .ini from .bat? Pin
Joaquín M López Muñoz7-Oct-04 9:59
Joaquín M López Muñoz7-Oct-04 9:59 
AnswerRe: Possible to write .ini from .bat? Pin
pbloechl7-Oct-04 10:00
pbloechl7-Oct-04 10:00 
AnswerRe: Possible to write .ini from .bat? Pin
blueSprite7-Oct-04 10:34
blueSprite7-Oct-04 10:34 
GeneralMFC fails to create main CFrameWnd Pin
Vaclav7-Oct-04 8:17
Vaclav7-Oct-04 8:17 
GeneralRe: MFC fails to create main CFrameWnd Pin
David Crow7-Oct-04 9:05
David Crow7-Oct-04 9:05 
GeneralRe: MFC fails to create main CFrameWnd found casue - now what? Pin
Vaclav8-Oct-04 10:16
Vaclav8-Oct-04 10:16 
QuestionHow to inlude files,getting link error! Pin
Dani1000017-Oct-04 7:11
Dani1000017-Oct-04 7:11 
I have a problem with the include files and I am getting an error :

win32.obj : error LNK2019: unresolved external symbol _BltAlpha referenced in function _DD_Init

This is how I have set up the project:

I call the BltAlpha in DD_Init in

win32.c:

#include "stdafx.h"

bool_t DD_Init(win* p)
{
BltAlpha(p,.....

I have declared all my include files in

stdafx.h:

#include "win32.h"
#include "blend.h"

And then I have included stdafx.h in both blend.c and blend.h

blend.c:

#include "stdafx.h"

// The implementation of BltAlpha:

int BltAlpha( win* p,int iDestX, int iDestY, LPRECT lprcSource, int iAlpha, DWORD dwMode )
{ ............

blend.h:

#include "stdafx.h"

//The declaration of BltAlpha:

int BltAlpha( win* p,int iDestX, int iDestY, LPRECT lprcSource, int iAlpha, DWORD dwMode );

So why am i getting this link error, I have really tried to put the header files in different combinations, but with no luck?!

Please is there anyone that can help me with this one before I´m going crazy!?

Thanks, Dani

AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 7:42
professionalRage7-Oct-04 7:42 
AnswerRe: How to inlude files,getting link error! Pin
Rage7-Oct-04 7:46
professionalRage7-Oct-04 7:46 
GeneralRe: How to inlude files,getting link error! Pin
Dani1000017-Oct-04 8:00
Dani1000017-Oct-04 8:00 
GeneralRe: How to inlude files,getting link error! Pin
David Crow7-Oct-04 9:07
David Crow7-Oct-04 9:07 
Questioncan i use %windir% to get windows directory??? Pin
venadder7-Oct-04 6:54
venadder7-Oct-04 6:54 
AnswerRe: can i use %windir% to get windows directory??? Pin
Rage7-Oct-04 7:33
professionalRage7-Oct-04 7:33 
GeneralEmbedding a dialog from dll in main program's splitter View and doing data exchange in dll Pin
kumar_gaurava7-Oct-04 5:39
kumar_gaurava7-Oct-04 5:39 
GeneralImpersonation Pin
Per Nilsson7-Oct-04 4:42
Per Nilsson7-Oct-04 4:42 
GeneralRe: Impersonation Pin
toxcct7-Oct-04 4:48
toxcct7-Oct-04 4:48 
GeneralRe: Impersonation Pin
Rage7-Oct-04 7:55
professionalRage7-Oct-04 7:55 
Generalplease help- different colored letters Pin
...---...7-Oct-04 4:41
...---...7-Oct-04 4:41 
GeneralRe: please help- different colored letters Pin
Maximilien7-Oct-04 7:19
Maximilien7-Oct-04 7:19 
GeneralDo I know how to iterate? Pin
...---...7-Oct-04 7:41
...---...7-Oct-04 7:41 
GeneralRe: Do I know how to iterate? Pin
David Crow7-Oct-04 8:10
David Crow7-Oct-04 8:10 
GeneralRe: iImperaionation Pin
toxcct7-Oct-04 4:37
toxcct7-Oct-04 4:37 
Generalusing STL to read LARGE text files ... Pin
Maximilien7-Oct-04 4:17
Maximilien7-Oct-04 4:17 
Generalproblem:dll not found Pin
happycpp7-Oct-04 3:37
happycpp7-Oct-04 3:37 

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.