|
You are missing a Passenger ctor in your cpp file that is used by one of your Reservation ctors.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
can you help me how can i add the passenger constructor in the cpp file
this is the passenger constructor :
#include <iostream>
#include "Passenger.h"
using namespace std;
Passenger::Passenger(string a="",string b="",long c=0)
{
setPassengerName(a);
setPassportNumber(b);
setContactNumber(c);
}
many thanks
|
|
|
|
|
Try this.
Passenger::Passenger()
{
}
This ctor for Passenger is used by the Reservation class.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
its WORK
but it seems i will have infinite No. of errors
when i got the last error i got another LNK2019 error with it, but i thought if i solve one of them the other will be solved also , and my thoughts was wrong
this is the other error :
1>Reservation.obj : error LNK2019: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > __thiscall Reservation::ID_sn(void)" (?ID_sn@Reservation@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "public: class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > __thiscall Reservation::getReservationNumber(void)" (?getReservationNumber@Reservation@@QAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
|
|
|
|
|
This time you get the error because you didn't define the funtion ID_sn().
I would just create a local std::string, assign to that one in line 44 and return it at the end.
|
|
|
|
|
You defined ID as const .
Also your <pre> tags are being ignored, have a look at the setting of the Treat my content as plain text, not as HTML checkbox, at the bottom of this page and/or in your settings page.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
i cant change anything in the header file
all my work will be on the source file only
|
|
|
|
|
Hi everyone
I have three questions
1.why do I need to use of TEXT macro in my codes and if I remove it compiler shows error
2.why CreateProcess cant open test.txt while second parameter is command line and I have to write full path ("c:\\notepad.exe c:\\1.txt")
3.Do I need to use of WaitForSingleObject
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof (STARTUPINFO);
GetStartupInfo (&si);
si.dwFlags = STARTF_USESHOWWINDOW |STARTF_TITLEISAPPID ;
si.wShowWindow = SW_SHOWMAXIMIZED;
si.lpTitle=TEXT("Test");
if(CreateProcess(TEXT("c:\\notepad.exe"),TEXT("c:\\test.txt"),NULL,
NULL,FALSE,NULL,NULL,NULL,&si,&pi))
{
//WaitForSingleObject(pi.hProcess, INFINITE);
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
}
Thanks
|
|
|
|
|
messages wrote: 1.why do I need to use of TEXT macro in my codes and if I remove it compiler shows error See here.
messages wrote: 2.why CreateProcess cant open test.txt while second parameter is command line and I have to write full path ("c:\\notepad.exe c:\\1.txt") Do you understand the difference between absolute vs. relative paths?
messages wrote: 3.Do I need to use of WaitForSingleObject Only if you need to wait.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Do you know your answers are great?
Thanks
|
|
|
|
|
Hi
I have to program, one is in c++ I have compiled with VStudio 2010, and one in c compiled in gcc.
In c program, I need data which come from c++.
how to export data from c++ to C? does any one have the sample code for this one?
thankyou
|
|
|
|
|
Data is data, it has nothing to do with what language is used to process it. Please try and explain your problem in more detail.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have a program in C++ compile with Visual Studio 2010. This program is to get data from joystick, this joystick will control robot in server pc.
in this client PC I have udp client server in C compile with gcc.
I need to pass data from joystick program to udp client program.
How can I do that? data is in char format, and input udp have the same format.
are there any source code example to do that?
|
|
|
|
|
Make a socket connection and send the data, suitably formatted, to your client. I don't understand what the problem is here, transferring data between clients and servers is how the entire world is run these days.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I have udp server client connection it is in C program, but the problem is, that my joystick program in client is in C++, I want to pass C++ data to client C program.
thank you
|
|
|
|
|
There is no such thing as "C++ data", data is data, it's just a series of bytes. I cannot see how you are able to write C and C++ code and, apparently, understand UDP client/server, and yet do not understand this basic concept.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
Hi all,
Can any one tell me How to overlay text over a video available, using Linux Commands.
I have tried with ffmepg tool, But I can't able to make it possible.
The Command I used was,
ffmpeg -i Input.avi drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40" -y Output.avi
An Error Message i got:
Unable to find a suitable output format for 'drawtext=fontfile=/usr/share/fonts/truetype/freefont/FreeSans.ttf:text=HelloWorld:fontcolor=red@1.0:fontsize=70:x=00: y=40'
Please let me know, How to work it out or some other Linux tool to overlay a text over Video.
Expecting for the best reply soon
Thanks & Regards
Srivathsan.K.R
|
|
|
|
|
This is the C++ forum please try elsewhere.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Looking at the documentation xlSheetVisible property
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
does this mean this property is exposed in excel.dll if so I only have the executable
thanks
|
|
|
|
|
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am thinking I have to have some dll where this
Method is exposed
|
|
|
|
|
Yes, and you already showed that information in your original question; it is part of the Office interop. However, you need Microsoft Office installed on your system in order to access it. What exactly are you trying to do, and is this really a C++ question?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
OLE programming and since at work I cannt down load anything I want I am guessing what I am looking for is in nativeexcel.dll
The only thing I have on my machine is excel.exe
|
|
|
|
|
ForNow wrote: The only thing I have on my machine is excel.exe Then you should have the required DLL's also. Have a look here[^] for some suggestions.
One of these days I'm going to think of a really clever signature.
|
|
|
|