|
I downloaded STLPort (I hate STL).
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
I hate STL even more now.
STLPort is NOTHING like the SGI implementation...
So much for portability, eh?
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
|
All of the filenames are different, a lot of types are renamed - it's quite impossible for me to use it.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
ATL has CSimpleArray and CSimpleMap which can substitute for std::vector and std::map . They might not be good substitutes depending on your needs, but at least all the code is templates so you can just copy & paste it in to try them out.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Can anyone tell me how to make a fullscreen window in SDI and Dialog based application.
Omar Alvi
|
|
|
|
|
If you want to occupy the area used by the taskbar you should do this:
CRect rectWorkArea;
rectWorkArea.left = 0;
rectWorkArea.top = 0;
rectWorkArea.right = ::GetSystemMetrics(SM_CXSCREEN);
rectWorkArea.bottom = ::GetSystemMetrics(SM_CYSCREEN);
SystemParametersInfo(SPI_SETWORKAREA,0,&rectWorkArea,SPIF_SENDCHANGE);
and at OnInitDialog's end this->ShowWindow(SW_SHOWMAXIMIZED);
if you don't want to ocuppy the area used by the taskbar... then only this->ShowWindow(SW_SHOWMAXIMIZED); will do the work...
Hope this helps...
|
|
|
|
|
Hi,
In my app the user can compose and e-mail with some data from the App, and then click "Send E-Mail", ... it send the e-mail to outlook...
I would like to test before the user spend his time writing the e-mail... if Outlook is installed on the computer or not, but it seems that creating an instance of Outlook automated would take a long time...
Is there any way to check it in a faster way ?
Thanks in advance, greetings
Braulio
|
|
|
|
|
Try to create an IPOutlookApp COM interface!
This code is just from a Pocket PC 2002 application, but I think you can also
use it on another system!
BOOL IsOutlookAppInstalled()
{
HRESULT hr;
IPOutlookApp* polApp;
CoInitializeEx(NULL, 0);
hr = CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, (LPVOID*)&polApp);
if (SUCCEEDED(hr))
{
polApp->Release();
}
CoUninitialize();
return (SUCCEEDED(hr) ? TRUE : FALSE);
}
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
|
|
Thomas George wrote:
I see FindWindow and FindWindowEx in the list. Were they undocumented?
No, I actually recognise a lot of them...
Ryan
He who laughs last thinks too slowly.
|
|
|
|
|
I need to do the same with Byte (VT_UI1), Short(VT_I2), float(VT_R4), and other VARIANT that what I have made with long (VT_I4).
How I can do it?
Thanks.
A part of the code:
for (long k=0;k<TOTALNUMPARAM;k++)<br />
{<br />
SafeArrayGetElement (PVAVLISTAVALORESPARAMETROS.parray,&k,&item);<br />
switch (item.vt)<br />
{<br />
case VT_UI1:<br />
break;<br />
case VT_I2:<br />
break;<br />
case VT_I4:
item.lVal = 0;<br />
if (input[parameter_start] == 0)<br />
{<br />
for (int l=parameter_start+1;l<(parameter_start+32);l++)<br />
item.lVal += input[l]*(int)pow(2,(parameter_start+32)-l-1);<br />
}<br />
else<br />
{<br />
for (int l=parameter_start+1;l<(parameter_start+32);l++)<br />
item.lVal += ((input[l]+1)%2)*(int)pow(2,(parameter_start+32)-l-1);<br />
item.lVal++;<br />
item.lVal *= (-1);<br />
}<br />
parameter_start += 32;<br />
SafeArrayPutElement (PVAVLISTAVALORESPARAMETROS.parray,&k,&item);<br />
VariantInit(&item);<br />
break;<br />
case VT_R4:<br />
break;<br />
|
|
|
|
|
Does anyone know how could I make the resource view support hebrew?
under "...\VC98\MFC\Include" I do not have a library "l.heb", does anyone where could I find a download for this?
|
|
|
|
|
Hi...
I'm trying to create a single flippable overlay surface with a specific pixel format. Here is this pixel format:
DDPIXELFORMAT ddpf = { sizeof(DDPIXELFORMAT), DDPF_RGB | DDPF_PALETTEINDEXED8, 0, 8, 0, 0, 0, 0};
In fact I want a 8 BPP surface... I've already try this format too:
DDPIXELFORMAT ddpf = { sizeof(DDPIXELFORMAT), DDPF_RGB, 0, 8, 0xFF, 0xFF, 0xFF, 0};
But the result is the same... That's failed when I create the corresponding surface.
Why this failed?... I suppose that is a Hardware capabilities problem...
Thanks for all who can help me !!!
Hello World!!!
from Raphaël
|
|
|
|
|
Can you show us the code where you create the overlay surface!?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Yes I can....
It's a little big but here is:
Note that I work in windowed mode (not Fullscreen)...
CString str_err = "";
HRESULT ddrval = DD_OK;
DDSURFACEDESC2 ddsd;
int i = 0;
DDPIXELFORMAT ddpf = { sizeof(DDPIXELFORMAT), DDPF_RGB | DDPF_PALETTEINDEXED8,
0, 8, 0xFF, 0xFF, 0xFF, 0};
ZeroMemory(&ddsd, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);
ddsd.ddsCaps.dwCaps = DDSCAPS_OVERLAY | DDSCAPS_FLIP | DDSCAPS_COMPLEX | DDSCAPS_VIDEOMEMORY;
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT | DDSD_WIDTH | DDSD_BACKBUFFERCOUNT | DDSD_PIXELFORMAT;
ddsd.dwWidth = MAX_DST_OV_WIDTH;
ddsd.dwHeight = MAX_DST_OV_HEIGHT;
ddsd.dwBackBufferCount = 1;
ddsd.ddpfPixelFormat = ddpf;
ddrval = lpDD->CreateSurface(&ddsd, &lpDDS_POVideo, NULL);
if(FAILED(ddrval))
{
str_err.Format("We couldn't create an overlay flippable surface? Code error %.8xh", ddrval);
MessageBox(str_err);
return FALSE;
}
DDSCAPS2 caps;
caps.dwCaps = DDSCAPS_BACKBUFFER;
caps.dwCaps2 = caps.dwCaps3 = caps.dwCaps4 = 0;
ddrval = lpDDS_POVideo->GetAttachedSurface(&caps, &lpDDS_BOVideo);
if( FAILED(ddrval) )
{
str_err.Format("lpDDS_POVideo->GetAttachedSurface failed with code %.8xh", ddrval);
MessageBox(str_err);
return FALSE;
}
I suppose that's OK... But the 8 BPP pixel format always failed...
I hope that it's what you want.
Hello World!!!
from Raphaël
|
|
|
|
|
Hello, I don't know how to get my child window maximized when my app starts!
Need help!!!
Thanks!
|
|
|
|
|
overwite the function ActivateFrame in your derived CMDIChildWnd class.
usually it is called CChildFrame...
implement it like this:
void CChildFrame::ActivateFrame(int nCmdShow)
{
// TODO: Speziellen Code hier einfügen und/oder Basisklasse aufrufen
nCmdShow = SW_SHOWMAXIMIZED;
CMDIChildWnd::ActivateFrame(nCmdShow);
}
|
|
|
|
|
Thank you!! It did the trick!
See ya!
|
|
|
|
|
Add a handler for WM_CREATE in CChildFrame and there ShowWindow(SW_MAXIMIZE);
|
|
|
|
|
Hello friends,
I am using a TVisualObject class given by Zoran M. Todorovic
I am able to split and place the tabs but one of the splitted window is occupying the entire space.I tried with changing the parametrew of CSize fn but its not working.i have attached the piece of code.Please suggest me to resize the window.
TVisualObject *pSplitter = new TVisualObject(1,"", 2, 1, pContext);
TVisualObject *pView1 = new TVisualObject(2,0,0,pContext, RUNTIME_CLASS(CDummyEdit), CSize(0,880));
TVisualObject *pView12 = new TVisualObject(13,0,0,1,2,pContext);
TVisualObject *pw12 = new TVisualObject(14,0,0,pContext,RUNTIME_CLASS(CDummyEdit),CSize(330,30));
TVisualObject *pw22 = new TVisualObject(15,0,1,pContext,RUNTIME_CLASS(CDummyEdit),CSize(0,80));
TVisualObject *pViewtab1 = new TVisualObject(3,1,0,pContext,RUNTIME_CLASS(TTabWnd),CSize(770,660));
TVisualObject *pTabView1 = new TVisualObject(4,"Log",pContext,RUNTIME_CLASS(CDummyEdit));
TVisualObject *pTabView2 = new TVisualObject(5,"Summary", pContext,RUNTIME_CLASS(CDummyTree));
//pTabView2->SetIcon(IDR_FINALTYPE);
m_Framework.Add(pSplitter);
m_Framework.Add(pSplitter, pView12);
m_Framework.Add(pView12,pw12);
m_Framework.Add(pView12,pw22);
m_Framework.Add(pSplitter, pViewtab1);
m_Framework.Add(pViewtab1,pTabView1);
m_Framework.Add(pViewtab1,pTabView2);
m_Framework.Create(this);
TVisualFrameworkIterator it(m_Framework);
while (!it.End()) {
TVisualObject *pObject = it.Get();
it++;
}
m_Framework.SetActivePane(pView12);
return TRUE;
|
|
|
|
|
I have not been able to find a simple way to show only the minimize or maximize buttons on the title bar. Whether or not I include WS_SYSMENU in the createstruct.style, it seems the WS_MAXIMIZEBOX and WS_MINIMIZEBOX bits only enable/disable the functions of the boxes, but they both seem to show regardless of the settings. Is there any simple way to show only one of the boxes? Or do I have to get out of MFC and create my own main frame window? Thanks for any suggestions.
|
|
|
|
|
Hi all,
I need to check in my MFC 7 application whether a particular directory exists.
How can I do this?
I know how to create a directory, but not how to check whether it exists or not.
Thanks so much!
-- narada
|
|
|
|
|
BOOL PathFileExists(
LPCTSTR pszPath
);
|
|
|
|
|