Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: change files attributes Pin
Michael Dunn26-Jun-06 11:59
sitebuilderMichael Dunn26-Jun-06 11:59 
AnswerRe: change files attributes Pin
Hamid_RT26-Jun-06 19:32
Hamid_RT26-Jun-06 19:32 
QuestionSaving Image to the same file. (GDI+) Pin
1980soyo26-Jun-06 11:35
1980soyo26-Jun-06 11:35 
AnswerRe: Saving Image to the same file. (GDI+) Pin
Ennis Ray Lynch, Jr.26-Jun-06 12:30
Ennis Ray Lynch, Jr.26-Jun-06 12:30 
AnswerRe: Saving Image to the same file. (GDI+) Pin
Joe Woodbury26-Jun-06 12:46
professionalJoe Woodbury26-Jun-06 12:46 
AnswerRe: Saving Image to the same file. (GDI+) Pin
1980soyo26-Jun-06 22:47
1980soyo26-Jun-06 22:47 
GeneralRe: Saving Image to the same file. (GDI+) Pin
Joe Woodbury27-Jun-06 6:06
professionalJoe Woodbury27-Jun-06 6:06 
Questiondeclaring a global variable Pin
Tara1426-Jun-06 8:31
Tara1426-Jun-06 8:31 
Hi,

I am coding a program in VC++, mfc, in which I am using CString sql almost every where. Each time i use it, I have to declare. I tried declaring it in stdafx.h but I get errors

Budget.obj : error LNK2005: "class CString sqla" (?sqla@@3VCString@@A) already defined in Collect.obj
DeleteCat.obj : error LNK2005: "class CString sqla" (?sqla@@3VCString@@A) already defined in Collect.obj
StdAfx.obj : error LNK2005: "class CString sqla" (?sqla@@3VCString@@A) already defined in Collect.obj
Debug/sbh2.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.


I checlked and rechecked a thousand times. I have not made multiple difinition. Then why is this happening?

I thought maybe it is because of 'sql' so I changed it to 'sqla', in vain.



Fortitudine Vinsinues!

AnswerRe: declaring a global variable Pin
Jun Du26-Jun-06 8:48
Jun Du26-Jun-06 8:48 
GeneralRe: declaring a global variable [modified] Pin
Tara1426-Jun-06 9:06
Tara1426-Jun-06 9:06 
QuestionRe: declaring a global variable Pin
David Crow26-Jun-06 9:09
David Crow26-Jun-06 9:09 
AnswerRe: declaring a global variable Pin
Tara1426-Jun-06 9:15
Tara1426-Jun-06 9:15 
GeneralRe: declaring a global variable Pin
David Crow26-Jun-06 9:20
David Crow26-Jun-06 9:20 
GeneralRe: declaring a global variable Pin
Tara1426-Jun-06 10:19
Tara1426-Jun-06 10:19 
GeneralRe: declaring a global variable Pin
Anilkumar K V26-Jun-06 18:22
Anilkumar K V26-Jun-06 18:22 
GeneralRe: declaring a global variable Pin
Zac Howland26-Jun-06 9:29
Zac Howland26-Jun-06 9:29 
AnswerRe: declaring a global variable Pin
Jun Du26-Jun-06 9:25
Jun Du26-Jun-06 9:25 
GeneralRe: declaring a global variable Pin
Tara1426-Jun-06 9:44
Tara1426-Jun-06 9:44 
GeneralRe: declaring a global variable Pin
Zac Howland26-Jun-06 9:54
Zac Howland26-Jun-06 9:54 
GeneralRe: declaring a global variable Pin
Jun Du26-Jun-06 10:20
Jun Du26-Jun-06 10:20 
GeneralRe: declaring a global variable Pin
Tara1426-Jun-06 10:26
Tara1426-Jun-06 10:26 
GeneralRe: declaring a global variable Pin
David Crow26-Jun-06 9:49
David Crow26-Jun-06 9:49 
GeneralRe: declaring a global variable Pin
Jun Du26-Jun-06 10:27
Jun Du26-Jun-06 10:27 
GeneralRe: declaring a global variable Pin
David Crow26-Jun-06 10:48
David Crow26-Jun-06 10:48 
AnswerRe: declaring a global variable Pin
Michael Dunn26-Jun-06 9:43
sitebuilderMichael Dunn26-Jun-06 9:43 

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.