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

C / C++ / MFC

 
GeneralRe: call a function from Multiple project into single solution. Pin
Sarath C5-Jul-06 3:49
Sarath C5-Jul-06 3:49 
GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 3:02
Amit Agarrwal5-Jul-06 3:02 
GeneralRe: call a function from Multiple project into single solution. Pin
Cedric Moonen5-Jul-06 3:17
Cedric Moonen5-Jul-06 3:17 
GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 3:34
Amit Agarrwal5-Jul-06 3:34 
GeneralRe: call a function from Multiple project into single solution. Pin
Sarath C5-Jul-06 3:51
Sarath C5-Jul-06 3:51 
GeneralRe: call a function from Multiple project into single solution. Pin
Cedric Moonen5-Jul-06 3:54
Cedric Moonen5-Jul-06 3:54 
GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 4:09
Amit Agarrwal5-Jul-06 4:09 
GeneralRe: call a function from Multiple project into single solution. Pin
Sarath C5-Jul-06 4:38
Sarath C5-Jul-06 4:38 
Let me say one thing.
For a properly written class ( source files) can be used with any C++ applications.

aavesh wrote:
i think u people are misinterpreting me..


Is it our mistake? if yes, sorry for the same.


aavesh wrote:
hi
i include the header file like that


#include "gloox/src/connection.h"

and call the member function on buttion click event like this


gloox::Connection::temp();

here gloox is a namespace,coonection is class and temp is function name.

when i call like this its giving me error illigal call of non static member function.

thanx


This was one of you post.
You know that the function is not static. you can call temp function without creating an object,only if it is static function.

Cedric asked you for the constrcutor right?

The Compiler will put a default constructor, if there's no constructor available in your class

for example

class CTest
{
public:
	CTest(int i ){};
};


If you try to create
CTest t;

it will give the same error what u said eralier. In this case you can create an object in this way
CTest t(10);

we have tried to help you by spending our time... Just look at the forum... it's quite a big discussion right?


aavesh wrote:

hi

when i pass the argument then it gives the error that

"Error : object have struct/unioun tyoe"

what to do.

it there any clear way to call a other project function into our project (both of the project in the same solution).

thanx


Without provinding enough information how we could track your bug? even after asking you for the ctor, u didnt give anything.. don't blame us for your mistake.

C++ is not written for a single peron. there are alot of people using the same in this world.

99.99% it will be our mistake. don't blame the compiler.

Hope you will take this in positive sense.



SaRath.

"It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar."

<blink>My Blog | Understanding State Pattern in C++

GeneralRe: call a function from Multiple project into single solution. Pin
Amit Agarrwal5-Jul-06 4:49
Amit Agarrwal5-Jul-06 4:49 
QuestionSingleton class question Pin
Tnarol5-Jul-06 1:33
Tnarol5-Jul-06 1:33 
AnswerRe: Singleton class question Pin
Viorel.5-Jul-06 1:40
Viorel.5-Jul-06 1:40 
AnswerRe: Singleton class question [modified] Pin
Sarath C5-Jul-06 1:44
Sarath C5-Jul-06 1:44 
GeneralRe: Singleton class question Pin
Tnarol5-Jul-06 1:55
Tnarol5-Jul-06 1:55 
GeneralRe: Singleton class question Pin
Sarath C5-Jul-06 2:02
Sarath C5-Jul-06 2:02 
GeneralRe: Singleton class question Pin
Sarath C5-Jul-06 2:07
Sarath C5-Jul-06 2:07 
AnswerRe: Singleton class question Pin
Cedric Moonen5-Jul-06 2:42
Cedric Moonen5-Jul-06 2:42 
Questionhow we can use owner draw for list control and tab control Pin
vasusree5-Jul-06 1:25
vasusree5-Jul-06 1:25 
AnswerRe: how we can use owner draw for list control and tab control Pin
KarstenK5-Jul-06 1:42
mveKarstenK5-Jul-06 1:42 
AnswerRe: how we can use owner draw for list control and tab control Pin
Hamid_RT5-Jul-06 1:56
Hamid_RT5-Jul-06 1:56 
Questionfont button and picture Pin
ashish dogra5-Jul-06 1:20
ashish dogra5-Jul-06 1:20 
AnswerRe: font button and picture [modified] Pin
_AnsHUMAN_ 5-Jul-06 1:38
_AnsHUMAN_ 5-Jul-06 1:38 
GeneralRe: font button and picture Pin
ashish dogra5-Jul-06 2:03
ashish dogra5-Jul-06 2:03 
AnswerRe: font button and picture Pin
Hamid_RT5-Jul-06 2:03
Hamid_RT5-Jul-06 2:03 
AnswerRe: font button and picture Pin
David Crow5-Jul-06 3:05
David Crow5-Jul-06 3:05 
QuestionBitmap on toolbar button Pin
anjita5-Jul-06 1:17
anjita5-Jul-06 1:17 

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.