Click here to Skip to main content
15,569,774 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to calculate a date one moth before from Current date? Pin
David Crow14-Oct-08 4:23
David Crow14-Oct-08 4:23 
QuestionSpeed problem in Excel sheet generation Pin
ilgale13-Oct-08 23:36
ilgale13-Oct-08 23:36 
AnswerRe: Speed problem in Excel sheet generation Pin
Roger Stoltz13-Oct-08 23:40
Roger Stoltz13-Oct-08 23:40 
GeneralRe: Speed problem in Excel sheet generation Pin
ilgale13-Oct-08 23:49
ilgale13-Oct-08 23:49 
GeneralRe: Speed problem in Excel sheet generation Pin
Rajesh R Subramanian14-Oct-08 0:16
professionalRajesh R Subramanian14-Oct-08 0:16 
GeneralRe: Speed problem in Excel sheet generation Pin
Roger Stoltz14-Oct-08 0:39
Roger Stoltz14-Oct-08 0:39 
JokeRe: Speed problem in Excel sheet generation Pin
CPallini13-Oct-08 23:47
mveCPallini13-Oct-08 23:47 
QuestionCompilation Error!!! undeclared variable :-( Pin
param_joshi13-Oct-08 23:10
param_joshi13-Oct-08 23:10 
Hi All, Good Morning.
I am facing compilation errors but I have declared everything properly. Something is missing Please help me. I declared a declared class having 3-4 member functions n variable in header file and defined its functions in source file. Everything was working fine. But Now if I add some #define statements in header file and use those in source file , It is giving error undeclared variable. also if I put the mouse on #define statement it showing the variable with _CURSOR_ appended with.
eg.
#define TRADE_TAG "trd"
if I put the mouse on TRADE_TAG then it will show like TRADE_TAG_CURSOR_ "trd".. dont know why.. also if I right click on TRADE_TAG n then look for declaration then msg box appears variable TRADE_TAG not declared ... can u guide me here.

Second issue.
If I add a member variable or member function to the class declaration n then define in source file , it again gives compilation errors. dont identify class member variables n function. strange thing is that in one function it is recongnising member variables n in the another it is not.. both functions are member of the class. putting mouse on member function defination shows it as member. but on compilation it is giving error then function is not a member of class see the declartion.I m pasting code here. Please help

Header file Kccdatabase.h
#ifndef __KCCDATABASE_INCLUDE__
#define __KCCDATABASE_INCLUDE__
#pragma once

#include "afxdb.h"

class CKccDatabase : public CDatabase
{
private:
char sTradeXML[500];
char sTradeKcc[150];
public:
CKccDatabase();
virtual ~CKccDatabase();
BOOL ConnectKccDatabase(CKccDatabase &;
void InsertTrade(CKccDatabase *);
void ConvertTrdToXML(long RowIndx , bool IsRegularTrade = 1);
void ConvertTrdToKccFormat(long RowIndx , bool IsRegularTrade = 1);
};


source file
#include "KccDatabase.h"

void CKccDatabase::ConvertTrdToXML(long RowIndx , bool IsRegularTrade)
{

sTradeXML="Hello";
}

void CKccDatabase::ConvertTrdToKccFormat(long RowIndx, bool IsRegularTrade)
{
sTradeXML = "Hello";
sTradeKcc= " yes";

}

when I compile this source file cntl+f7 then it gives these errors in
KccDatabase.cpp(126) : error C2039: 'ConvertTrdToKccFormat' : is not a member of 'CKccDatabase'
1> f:\kats_clients_local\kats32\kats32\KccDatabase.h(4) : see declaration of 'CKccDatabase'
1>.\KccDatabase.cpp(151) : error C2065: 'sTradeKcc' : undeclared identifier
1>.\KccDatabase.cpp(152) : error C2065: 'sTradeXML' : undeclared identifier

please note that it is recongnising variable xTradeXML in upper ConvertTrdToXML but not in ConvertTrdToKccFormat ... also when I put cursor on the ConverTrdToKccFormat function defination then It shows this as member of CKccDatabase class ..

the only difference is that i have defind ConvertTrdToXML 4-5 days ago .. and otherone today.. :-9
Can anybody help


thx
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
Saurabh.Garg14-Oct-08 0:42
Saurabh.Garg14-Oct-08 0:42 
AnswerRe: Compilation Error!!! undeclared variable :-( Pin
David Crow14-Oct-08 4:32
David Crow14-Oct-08 4:32 
GeneralRe: Compilation Error!!! undeclared variable :-( Pin
Jason Hamilton14-Oct-08 5:38
Jason Hamilton14-Oct-08 5:38 
QuestionGetPrinter function fails to retrieves the printer information. [modified] Pin
Gokul_md13-Oct-08 23:02
Gokul_md13-Oct-08 23:02 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
CPallini14-Oct-08 0:03
mveCPallini14-Oct-08 0:03 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md14-Oct-08 0:51
Gokul_md14-Oct-08 0:51 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
CPallini14-Oct-08 2:00
mveCPallini14-Oct-08 2:00 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow14-Oct-08 4:47
David Crow14-Oct-08 4:47 
GeneralRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md14-Oct-08 7:55
Gokul_md14-Oct-08 7:55 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow14-Oct-08 8:42
David Crow14-Oct-08 8:42 
AnswerRe: GetPrinter function fails to retrieves the printer information. Pin
Gokul_md14-Oct-08 20:17
Gokul_md14-Oct-08 20:17 
QuestionRe: GetPrinter function fails to retrieves the printer information. Pin
David Crow15-Oct-08 4:18
David Crow15-Oct-08 4:18 
QuestionVisual c++ runtime error in dotnet Pin
balu1234513-Oct-08 22:43
balu1234513-Oct-08 22:43 
AnswerRe: Visual c++ runtime error in dotnet Pin
CPallini13-Oct-08 23:37
mveCPallini13-Oct-08 23:37 
GeneralRe: Visual c++ runtime error in dotnet Pin
balu1234514-Oct-08 7:47
balu1234514-Oct-08 7:47 
GeneralRe: Visual c++ runtime error in dotnet Pin
Hamid_RT14-Oct-08 9:26
Hamid_RT14-Oct-08 9:26 
Questionplease guide content structural file SCS. Spoolfile in Iseries system. thanks Pin
aa_zz13-Oct-08 22:12
aa_zz13-Oct-08 22:12 

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.