|
Has anyone here used c-tree plus by FairCom in a real application. I'm especially interested if you did any performance and ease of coding/maintenance comparisons with MSDE.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
I did, albeit some time ago, and it predated the availability of MSDE, so I can't give any comparisons. However, I do recall it being as fast as, say C-ISAM from Informix, in the tests I ran. That said, both of them were lower level (ie non-SQL) than MSDE, which meant writing test harnesses for stuff rather than just using Query Analyser to make sure I'd get what I want.
FWIW, my advice would be to avoid anything there isn't an ODBC or OLE DB driver for on a Windows platform - that way you can use tools like MS Query and Crystal Reports, which can save lots of time in the development cycle. However, if you have real performance constraints, and no need for high level access (you can do your own query plans etc), then an ISAM type package can make a real difference (although I'd look at D-ISAM as well).
Steve S
|
|
|
|
|
Joe Woodbury wrote:
Has anyone here used c-tree plus by FairCom...
Not since 1991.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
i am trying to send a mail to abc@spymac.com using SMTP thourgh TELNET..
these are the procedure i used :
1: connected to port 25(SMTP) of spymac.com:
telnet spymac.com 25
2: HELO spymac.com: it return 250 OK.
3: MAIL FROM: deepgeorge@spymac.com:
it returned 250 OK.
4: RCPT TO: deepgeorge@spymac.com:
it returned 554 relay access denied...
i've been searching for the solution for many days now, but in vain..
can anyone help me....
yours truly,
|
|
|
|
|
The clue is in the error message 'relay access denied'.
Spymac isn't running an open relay (a good thing, as it's a spammer's paradise otherwise). Presumably the server has a list of acceptable TCP/IP addresses (or netmasks) it will accept mail from, and your machine isn't on that list.
Alternatively, I'm talking from an orifice not normally reserved for communication, and someone who knows more will be along in a minute.
Steve S
|
|
|
|
|
The IP for spymac.com is 213.218.8.109 the 'MX' for spymac.com is mail-in1.spymac.net which has an IP of 213.218.8.221.
So when you connect to a mail server at spymac.com and ask it to deliver mail to a spymac.com address it must relay that mail to the mail-in1 server, and it won't do that from just any old IP address. Hence the SMTP error.
Try connecting to the other SMTP and see what happens.
BTW your SMTP conversation should start with a 'HELO' or 'EHLO'.
Paul
|
|
|
|
|
hi:below little program ,to realize transfer capital character into lower character。
#include <locale>
#include <iostream>
using namespace std;
int main( )
{
locale loc1 ( "German_Germany" );
char string[] = "HELLO, MY NAME IS John!";
use_facet<ctype<char> > ( loc1 ).tolower
( &string[0], &string[strlen(&string[0])-1] );
cout << "The lowercase string is: " << string << endl;
}
but when running,note error:(1)error C2780: 'const _F &__cdecl std::use_facet(const class std::locale &,const _F *,bool)' : expects 3 arguments - 1 provided
error(2)error C2228: left of '.tolower' must have class/struct/union type
how to modify?
|
|
|
|
|
Dear Friends,
Please let me know how to access USB data. Not only USB what are the methods in VC++ to access USB or RS232 port and system hardware.
Please help me and give me ur valuable suggession ASAP.
Thanking you in advance.
Bilar
|
|
|
|
|
Hello,
I have created a Win32 Windows application that uses a WinMain() and WndProc(). Currently, my application runs within the application Window. I want to see the output of variables, but not inside my application window. Instead, I want to use the console window. Basically, I want to run my application and then if the programs debug flag is on then I want to open up a console window and start printing variables. How do I do this, because if I choose a console application there is no WinMain?
In addition, how do I call an .exe from within my Win32 windows program. Like the cmd.exe and then another custom.exe within that console window? I do not wish to use MFC at this time.
Thanks.
|
|
|
|
|
its better if u go for a console based application.
why do u need WinMain- its better to use main().
but, if u need a win32 application, then u have to start a win32 application project.
i u wish to see the current values of various variables, add a listbox and print then all...
but, i suggest to use the DEBUGGING procedures inside the IDE... use Ctrl-F10 for running to cursor, etc...
u can set WATCHES, etc....
for calling an EXE from inside ur win32 application, use the WinExec or ShellExecute
API... or u can go for the CreateProcess API...
my suggestion is to use the ShellExecute API..
its very simple and powerfull...
one more thing, its better not to use MFC , if ur more into SYstem Side Programming.....
|
|
|
|
|
Thanks for the response. I will look at ShellExecute.
I need to create a win32 window for my graphics application. Can I still create a window with a console application. Currently I am using winmain, but I want to simultaneously launch a console. How do I do this? Can I use a console based application with a main and then create a win32 window?
Thanks
|
|
|
|
|
You can use the AllocConsole() API to create a console for your application
|
|
|
|
|
nope,
u cannot use the console based application project and then create a win32 application...
i guess u can, but u will have to change the compiler setting and other linker options....
some other person gave u a reply on using allocconsole() api, go for that, search it in MSDN... or google it....
|
|
|
|
|
i think the TRACE(...) may be what you want;
used like printf, and output to the IDE's output-window only when debugging;
hope this helps
|
|
|
|
|
check out debugview from sysinternals.com
Sonork 100.41263:Anthony_Yio
Life is about experiencing ...
|
|
|
|
|
Hi.
Usual question. How can I load an Icon into my main MFC window. I already searched on this web site for answers but obviously they won't work for me. I tried several differnt ways:
I then tried this :
BOOL CMyAppView::PreCreateWindow(CREATESTRUCT& cs)
{
if (!CWnd::PreCreateWindow(cs))
return FALSE;
m_hIconFrame = AfxGetApp()->LoadIcon(MAKEINTRESOURCE(IDR_MAINFRAME));
cs.lpszClass = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_DBLCLKS,
::LoadCursor(NULL, IDC_ARROW), reinterpret_cast<hbrush>(COLOR_WINDOW+1), m_hIconFrame );
return TRUE;
}
Then I tried :
in MyApp::InitInstance()
{
AfxGetApp()->LoadIcon(MAKEINTRESOURCE(IDR_MAINFRAME)); <--- this wont work
CWinApp::LoadIcon(IDR_MAINFRAME ); <------------------------- this wont work too
m_pMainWnd = pFrame;
// create and load the frame with its resources
pFrame->LoadFrame(IDR_MAINFRAME,WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, NULL);
}
Then I tried in int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct). Still no luck..
However same function call ie. AfxGetApp()->LoadIcon(IDR_MAINFRAME); in my dialog class displays the bloody icon ok.
what is going on? Why can't I see this icon in my main window caption bar? ARGH....
Can somebody help please. thank you.
|
|
|
|
|
I'm pretty sure you just need to add an icon as a resource and then name it:
IDR_MAINFRAME
Then when you create the mainframe it should be there. I don't think you need to manually load.
Look here to help out in MFC:
http://www.adminmod.org/karel/2/index.htm
|
|
|
|
|
|
Ok thank you. Cwnd::SetIcon() solved my problem
|
|
|
|
|
Hi.
Can anyone please advise on how I can specify a class member function as the 'Cmp' function in the above call.
I would like to be able to call the sort() function from within a class member function and to be able to specify another class member function( of the same class and instantiation ).
I do not want to declare a struct that defines a comparison operator etc.. I would like to be able to keep the whole process private to a class that defines a 'Cmp' type function that I can provide as an argument.
Thanks in advance.
James.
|
|
|
|
|
hi
Yes it is possible, provided the user-defined binary predicate function shud b static. Otherwise u know, while linking a class, every member function will get an _this pointer automatically. This changes the function signature of a predicate function and will show error while compilation. If it is static the parameter list will remain unchanged. c the sample class.
rgds..mil10
using namespace std;<br />
class TstClass<br />
{<br />
public:<br />
vector<int> _data;<br />
void loaddata()<br />
{<br />
_data.push_back(20);<br />
_data.push_back(10);<br />
_data.push_back(30);<br />
}<br />
<br />
static bool UDgreater ( int elem1, int elem2 )<br />
{<br />
return elem1 > elem2;<br />
}<br />
<br />
void displaysorted()<br />
{<br />
sort(v.begin(),v.end(),UDgreater);<br />
vector<int>::iterator it;<br />
<br />
for( it=v.begin(); it!=v.end(); it++ )<br />
cout<<(*it); <br />
}<br />
};
|
|
|
|
|
Mil10 wrote:
Yes it is possible, provided the user-defined binary predicate function shud b static. Otherwise u know, while linking a class, every member function will get an _this pointer automatically. This changes the function signature of a predicate function and will show error while compilation.
From Section 11.5 in "The C++ Programming Language, 3rd":
An ordinary member function declaration specifies three logically distinct things:
(1) The function can access the private part of the class declaration, and
(2) the function is in the scope of the class, and
(3) the function must be invoked on an object (has a this pointer).
By declaraing a member function static ($10.2.4), we can give it the first two properties only. By declaring a function a friend, we can give it the first property only.
Maxwell Chen
|
|
|
|
|
Thanks very much for the help.
James.
|
|
|
|
|
From Section 11.5 in "The C++ Programming Language, 3rd":
An ordinary member function declaration specifies three logically distinct things:
(1) The function can access the private part of the class declaration, and
(2) the function is in the scope of the class, and
(3) the function must be invoked on an object (has a this pointer).
By declaraing a member function static ($10.2.4), we can give it the first two properties only. By declaring a function a friend, we can give it the first property only.
very nice explanation - thanx Chen.
rgds...mil10
|
|
|
|
|
I think you want the mem_fun adapter function, which returns an appropriate functor object (typically a mem_fun1_t object).
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|