Click here to Skip to main content
15,913,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionLPCOLESTR? Pin
Alain Royer9-May-00 10:33
Alain Royer9-May-00 10:33 
AnswerRe: LPCOLESTR? Pin
Alex Gorev9-May-00 11:01
Alex Gorev9-May-00 11:01 
AnswerRe: LPCOLESTR? Pin
Dundas TCP/IP Support9-May-00 11:29
Dundas TCP/IP Support9-May-00 11:29 
GeneralMetafile output on Win98 problem Pin
Chris Losinger9-May-00 9:27
professionalChris Losinger9-May-00 9:27 
GeneralRe: Metafile output on Win98 problem Pin
Gert Boddaert10-May-00 3:17
Gert Boddaert10-May-00 3:17 
QuestionHow to call a com object's method that takes VARIANT * parameters? Pin
plu9-May-00 6:55
plu9-May-00 6:55 
AnswerRe: How to call a com object's method that takes VARIANT * parameters? Pin
Member 10549-May-00 8:29
Member 10549-May-00 8:29 
QuestionHow to call other class functions from another class Pin
olive9-May-00 4:14
olive9-May-00 4:14 
Hi:I try to call function from other classes in here and get some problem.
All the necessary include files I put already.
I have the following functions that I want to call on other class. MY QUESTION
IS HOW TO IMPLEMENT THESE FUNCTIONS ON OTHER CLASS... SEE MY PSEUDOCODE....
I try some of them but mostly not working.
1) istream& loser.ReadFrom(istream& in, char* format ) ; --->read from cin
2) bool Ticket::Search( int* array, int item ,int elementsInArray );--> search
how many balls are matched
3) Ticket HistoryFile::GetMatch( Ticket& searchItem ); --> see if the date
of cin and from the file is match
the pseudocode to call those functions to other class:
read from cin -->istream& loser.ReadFrom(istream& in, char* format )
see if the date match --> Ticket HistoryFile::GetMatch( Ticket& searchItem);
if date on cin & date on file is same ---->if (ticket == ticket &);
match how many balls are match -->bool Ticket::Search( int*
array, int item ,int elementsInArray ); cout << "You match : " << ;else
null ticket ---> ticket.ticket( );endifThe following is my code:
void Pureluck::Run( ){
istream& loser.ReadFrom( ); --> //will give me this error
Error: PURELUCK.H(92,24):Too few parameters in call to 'Ticket::ReadFrom(istream
&,char *)'
then if I put --> loser.ReadFrom(istream &, char * ); //---> will give me
this errorError: PURELUCK.H(92,29):Improper use of typedef 'istream'
all the rest of message are mostly: Expression syntax.
winners.GetMatch( loser& searchItem ); //search for match date
if (ticket == searchItem) // if found match {
Ticket::Search( int* array, int item ,int elementsInArray )//find
out how many match } else {
Ticket::Ticket( ); //not found become null ticket }
endif; */}//endfn RunPlease let me knowThank's
GeneralDisplaying the Property Sheet for a file Pin
magesh9-May-00 2:42
magesh9-May-00 2:42 
GeneralRe: Displaying the Property Sheet for a file Pin
Mike Dunn9-May-00 15:51
Mike Dunn9-May-00 15:51 
GeneralRe: Displaying the Property Sheet for a file Pin
magesh9-May-00 19:24
magesh9-May-00 19:24 
GeneralRe: Displaying the Property Sheet for a file Pin
magesh9-May-00 19:25
magesh9-May-00 19:25 
GeneralRe: Displaying the Property Sheet for a file Pin
Brian Hart25-Jun-00 13:37
Brian Hart25-Jun-00 13:37 
GeneralRemoving caption bar in toolbar Pin
Andrebon9-May-00 2:20
Andrebon9-May-00 2:20 
GeneralRe: Removing caption bar in toolbar Pin
Cristi Posea9-May-00 4:38
Cristi Posea9-May-00 4:38 
GeneralControls Pin
Ravi8-May-00 23:25
Ravi8-May-00 23:25 
GeneralRe: Controls Pin
Mike Dunn9-May-00 15:58
Mike Dunn9-May-00 15:58 
QuestionHow to use ActiveX without dialog ? Pin
Member 36018-May-00 15:02
Member 36018-May-00 15:02 
AnswerRe: How to use ActiveX without dialog ? Pin
Hussam Ahmad8-May-00 21:30
Hussam Ahmad8-May-00 21:30 
GeneralRe: How to use ActiveX without dialog ? Pin
Kurt10-May-00 1:48
Kurt10-May-00 1:48 
QuestionIs there any way of printing a pdf file? Pin
Erich J. Ruth8-May-00 14:45
sussErich J. Ruth8-May-00 14:45 
GeneralTest Only -Pls Ignore Pin
Anthony Mai8-May-00 13:35
Anthony Mai8-May-00 13:35 
GeneralAudio CD Problem on Windows 2000. Pin
Yaron Mizrahi8-May-00 4:38
sussYaron Mizrahi8-May-00 4:38 
GeneralMCI & Audio CD Pin
Yaron Mizrahi8-May-00 4:31
sussYaron Mizrahi8-May-00 4:31 
GeneralApplication like Microsoft money Pin
Member 4818-May-00 3:32
Member 4818-May-00 3:32 

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.