|
cout is not plain C
but effectively, there nothing else to do but changing cout with printf() , and removing the C++ headers included and the std namespace.
|
|
|
|
|
Sorry, I missed that. You are right.
|
|
|
|
|
it is very awful C++ code... i conceed
|
|
|
|
|
thanks
|
|
|
|
|
I have several data files and wanf to compress and decompress using BC++.
Is any body knows the class lib that will help me
|
|
|
|
|
As you don't give much details (what kind of compression for example), take a look here[^]. Maybe you'll find something usefull.
|
|
|
|
|
|
|
i want to make a dialog with a CTabControl(TC1) which has a CTabControl(TC2) in one of its pages, but TC2 can't be shown, i'm sure that i have added some pages into TC2. Does anyone know how to solve that? thanks.
|
|
|
|
|
If I understand your problem.
You are taking the tabcontrol on one of the dialog then you would have created the no. of child dialogs equal to the no. of tabs.
Now you add the another tab control on the one of the child dialog and add some pages to it. I think this will solve your problem
Cheers
"Peace of mind through Technology"
|
|
|
|
|
yes, you understand my problem, and the tab control on the child dialog can't be seen, pages added into that tab control also can't be seen.
|
|
|
|
|
ok,
Why do you use the tab conrol then. Just as to give effect as tab. USe the child dialogs.
Suppose you want three tabs. For this plcae three buttons on the dilaog and then on click of each button call the child dialog at appropriate postion. and same as for other two buttons.
Next now do the same thing on the one of the child dialog create buttons = no. of tabs and show the child dialogs for it.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
that's a good idea and may solve what i'm encountering. thanks Ganesh_T.
|
|
|
|
|
I want to make toolbar in dialog, like those which is in IE, WinZip, WinRar etc. How to do it, any example? Toolbars are easily built in CFrame, but not in CDlg.
Now I made it through CStatic bitmaps, but those bitmaps do not react VISUALLY on mouse events, clicking, getting focus etc.
-- modified at 5:03 Thursday 13th April, 2006
|
|
|
|
|
|
Rage wrote: You can embed a CToolbar normally in a dialog.
But I can't.
I made toolbar itself and toolbar variable
public:
CMainDlg(CWnd* pParent = NULL);
CMenu shlMenu;
CToolBar shlToolBar;
I inserted in OnInitDialog next lines
shlToolBar.Create(this);
int m = shlToolBar.LoadToolBar(IDR_TOOLBAR);
shlToolBar.SetBarStyle(CBRS_ALIGN_TOP | CBRS_TOOLTIPS | CBRS_FLYBY);
shlToolBar.ShowWindow(SW_SHOW);
but I don't see any toolbar.
May be I something forgot?
Or I need static control to place toolbar in and no way without it?
PS I tried to do exactly in reference, but all I got it's frame about toolbox. No any buttons.
http://x-14224.narod.ru/screen.jpg
-- modified at 9:19 Thursday 13th April, 2006
|
|
|
|
|
Your code works for me.
~RaGE();
|
|
|
|
|
All functions return TRUE but Dlg is not seen.
May be matter is my dialog is modeless?
If I surely not forgot anything?
I just added toolbar itself, toolbar member (public)
class CMainDlg : public CDialog
{
DECLARE_DYNAMIC(CMainDlg)
public:
CToolBar tb;
...
}
and that lines in OnInitDialog:
BOOL CMainDlg::OnInitDialog()
{
CDialog::OnInitDialog();
if(tb.Create(this))
{
if( tb.LoadToolBar(IDR_TOOLBAR1) ){
tb.SetBarStyle(CBRS_ALIGN_TOP | CBRS_TOOLTIPS | CBRS_FLYBY);
tb.ShowWindow(SW_SHOW);
}
}
I made no handlers but tb must already be seen at this stage IMHO?
PS Your code works for me. I begun aproach your code to mine and revealed next thing.
After commenting line
m_wndFormatBar.SetWindowPlacement(&wpl);
in your code your toolbar disappearing too.
So write just
m_wndFormatBar.Create(this);
m_wndFormatBar.LoadToolBar(IDR_TOOLBAR_FORMAT);
m_wndFormatBar.SetBarStyle(CBRS_ALIGN_TOP | CBRS_TOOLTIPS | CBRS_FLYBY);
m_wndFormatBar.ShowWindow(SW_SHOW);
is not enough to show toolbar. At least at mine comp.
I will investigate it on.
And thanks for example.
-- modified at 6:00 Friday 14th April, 2006
|
|
|
|
|
I read an article on the internet with the sentence:
----------------------------------
Vector fonts, on the other hand, are not device dependent, because each glyph is stored as a collection of scalable lines.
----------------------------------
my Q is:
what does scalable lines mean?
how to draw a simplest scalable line?
just LineTo() function?
or need some special settings?
A special image tool for C++ programmers, don't miss it!
The world unique Software Label Maker is here for you and me ...
A nice hyper tool for optimizing your MS html-help contents.
|
|
|
|
|
Hi,
Scalable lines are lines stored as vectors, i think...
For example in true type font, the letters are stored as a series of lines and curves with there relative co-ordinates rather than pixel data.
- NS -
|
|
|
|
|
How can i write and build a DLL under DDK for use?
is there any different between normal DLL and a DLL build under DDK(Win2k,XP)
Pls give me step by step direction
Thanks much
|
|
|
|
|
DDK ?
As far as I remember, DDK means Driver Devlopment Kit. And so, it has nothing to do with dll but with drivers (.sys). But I'm not an expert in that field so I may be wrong.
|
|
|
|
|
I want to customize USBView in DDK sample to a DLL and export function for displaying information in UI module written in MFC.
Pls tell me the way to do this.
Thanks
|
|
|
|
|
Did you read my post ?
You cannot change your USB driver into a dll. But what are you trying to do here ? Trying to export functions from your driver to be used by a MFC program ? That is totally crazy and breaks completely the architecture of the system.
Can't you retrieve this information by using DeviceIOControl ? Do you have some documentation supplied with the driver ?
|
|
|
|
|
USBView is not a driver.It is a program builded under DDK because it use structs and functions support belong to DDK.
|
|
|
|