|
but is there something, which will do the job..
i want a function in the base class which calls a overloaded function from derived classes?
"I'm from the South Bronx, and I don't care what you say: those cows look dangerous." U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
|
|
|
|
|
FOR CRYING OUT LOUD
IT F#$%ING WORKS !!!!
file.h:
class cBase
{
public:
virtual void func1(){ func2(); }
virtual void func2()==0;
};
class cDer1
{
public:
void func2() { printf("(2)It works!!!\n");}
};
class cDer2
{
public:
void func2() { printf("(2)It works!!!\n");}
};
file.cpp
#include "file.h"
#include <conio.h>
#include <stdio.h>
void main()
{
cBase * a= new cDer1();
cBase * b= new cDer2();
a->func1();
b->func1();
a->func2();
b->func2();
printf("IT F@#!@ WORKS");
getch();
}
====================
=== THE SERVER ===
====================
|
|
|
|
|
it really works..
my problem was that i didn't declare both base class members as virtual, because in my real project the calling function was the constructor.. and the constructor can't be virtual (at least i think the constructor can't be virtual)
thanks for your help (i found another workaround)
bernhard (hope you didn't get too angry)
"I'm from the South Bronx, and I don't care what you say: those cows look dangerous." U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
|
|
|
|
|
Anyone knows why am i getting this exception while using ado and what to do ?
Exception thrown for classes generated by #import Code = 8007007e
Code meaning = The specified module could not be found.
Source = (null)
Description = (null)
Thank you !
Also another question ---> which app posts the ado210.chm in the sysyem/ado folder ?
|
|
|
|
|
Hey Friends Is is Possible to get the Events of a Control From the View Class.If Yes How ?.
Pl Help
|
|
|
|
|
I want to konw how can i create a flat TabCtrl?
fjn
|
|
|
|
|
Create it with the TCS_FLATBUTTONS style (or Modify the Style)
|
|
|
|
|
thanks
i am trying……
fjn
|
|
|
|
|
m_wndTab.Create(WS_VISIBLE|TCS_RIGHT|TCS_BUTTONS,rect,&m_wndStatusBar,1001);
m_wndTab.SetExtendedStyle(TCS_FLATBUTTONS);
m_wndTab.InsertItem(0,_T("sheet1"));
m_wndTab.InsertItem(1,_T("sheet2"));
m_wndTab.InsertItem(2,_T("sheet3"));
why it desn't like flat?
fjn
|
|
|
|
|
Hey guys,
I need to embed a web browser in a dialog for a project I'm working on which doesn't use MFC. Does anyone have any sample code to do this?
Cheers
James
|
|
|
|
|
|
Hi Mike, thanks for the reply.
I don't know anything about ATL. Does it require any external libraries like MFC?
Cheers
James
|
|
|
|
|
|
Web browser without MFC article[^].
And, if you don't like Internet Explorer, Mozilla is distributed along with an .ocx to play with. The Gecko engine itself can also be embedded using a C/C++ SDK.
|
|
|
|
|
My database file (MDB) is larger day by day
I want its size is small again but I don't know how to fix it
it look like COMPACT DATABASE of Access
Counld you help me
thanks
|
|
|
|
|
What program are you using?
Access 2002 has Compact and repair..
Other programs use Dump and Load...
jhaga
CodeProject House, Paul Watson wrote:
...and the roar of John Simmons own personal Nascar in the garage. Meg flitting about taking photos.Chris having an heated arguement with Colin Davies and .S.Rod. over egian values. Nish manically typing *censur*. Duncan racing around after his pet *c.* Michael Martin and Bryce loudly yelling *c.* C.G. having a fit as Roger Wright loads up *c.* . Anna waving her *c.* and Deb scoffing chocolates in the corner.
...Good heavens!
|
|
|
|
|
I mean:
is there a SQL statement to COMPACT DATABASE ?
"Dump and Load" >>>> could you show me more detail about it?
thanks
|
|
|
|
|
There is COMPACT TABLE statement but you can not use it in Access
as far as I know. Try VB/VBS/ASP/ADO like this:
http://www.pstruh.cz/tips/detpg_CompactMDB.htm[^]
or C++ like this:
Visual C++: Compacting an Access Database via ADO
Besides #import, the Msado15.dll (MDAC2.1), add the following #import statement to generate the wrapper classes for JRO to your .cpp classes (alternatively, you can generate the wrapper classes more efficiently by using the no_implementation and implementation_only attributes of the #import pre-processor statement):#import "C:\PROGRAM FILES\COMMON FILES\System\ado\MSJRO.DLL" no_namespace
Add the following (specifying your own source and destination database paths) to the .cpp file where you want to compact the database:...
try
{
IJetEnginePtr jet(__uuidof(JetEngine));
jet->CompactDatabase(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\nwind2.mdb",
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\abbc.mdb;" \
"Jet OLEDB:Engine Type=4");
}
catch(_com_error &e)
{
::MessageBox(NULL, (LPCTSTR)e.Description( ), "", MB_OK) ;
}
jhaga
CodeProject House, Paul Watson wrote:
...and the roar of John Simmons own personal Nascar in the garage. Meg flitting about taking photos.Chris having an heated arguement with Colin Davies and .S.Rod. over egian values. Nish manically typing *censur*. Duncan racing around after his pet *c.* Michael Martin and Bryce loudly yelling *c.* C.G. having a fit as Roger Wright loads up *c.* . Anna waving her *c.* and Deb scoffing chocolates in the corner.
...Good heavens!
|
|
|
|
|
Given that you are using an Access database, you could use CDaoWorkspace::CompactDatabase() .
|
|
|
|
|
thank but I dont use MFC
I use non-MFC and I dont know how to use DAO in non-MFC form
|
|
|
|
|
I've got to make a CStatic dlgItem changing its background color as I want.
How can I do that?
|
|
|
|
|
|
|
hey,
i wrote a program that recieves video from a webcam, priviews
it and also captures it (compressed) to disk, at the same time.
now i need to be able to send the video that's being recieved,
through LAN to clients, which will also be able to priview and
capture it. my questions are:
1) is it possible (to send to multiple clients assuming that it's
not a 1GB network)?
2) is it done using a directshow filter (file async?!?!) or do i
have to implement it myself using winsock?
3) should i send the priview pin or what i compressed to file
to save bandwidth?
4) should i use directplay, RTC?
5) any source samples about this out there, that can get me
started in the right direction?
any help is very much appriciated
|
|
|
|
|
I recently bought a Psion Revo and i absolutely love it. But i want to start programming for it, but everywhere it says i need the Symbian v5 SDK but i cant find it ANYWHERE for download. Does anyone still have it or know a place where i can download it??? Please let me know.
Thanks
Kuniva
--------------------------------------------
|
|
|
|