|
Anywhere in particular, this is what mine looks like which I assume is pretty plain for a new application. I am guessing that I should call it before dlg.DoModal(); or before CFileViewerDlg dlg; is called, does it matter?
BOOL CFileViewerApp::InitInstance()
{
AfxEnableControlContainer();
#ifdef _AFXDLL
Enable3dControls();
#else
Enable3dControlsStatic();
#endif
CFileViewerDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
}
else if (nResponse == IDCANCEL)
{
}
return FALSE;
}
Nick Parker
|
|
|
|
|
I placed it right before CFileViewerDlg dlg; and everything showed up. Thanks again Chris
Nick Parker
|
|
|
|
|
AfxInitRichEdit(); you have to put this line into your apps initinstance.
|
|
|
|
|
Is there a complete listing the all VC++ data types and their definitions. I am going through the Programming Windows with MFC book and it is a little pain (until I memorize them) looking some of these types up that I don't recognize as I go through the book.
Example:
--------------------------------------
DWORD --- 32 bit unsigned integer
Nick Parker
|
|
|
|
|
|
Thanks Tomasz, that's exactly what I was looking for.
Nick Parker
|
|
|
|
|
Could someone explain to me how
BYTE buffer[0x1000];
Constitutes a 4kb buffer? I know this sounds stupid but what I don't understand right now is the 0x1000 portion, everything else makes sense. Thanks in advance.
Nick Parker
|
|
|
|
|
0x1000 is a hex number (base 16). and, it just happens to equal 4096 in decimal.
-c
Though the cough, hough and hiccough so unsought would plough me through,
enough that I o'er life's dark lough my thorough course pursue.
--Stuart Kidd
|
|
|
|
|
|
Open up Calculator
View Scientific
Click on Hex
Punch in 1000
Click on Dec
Answer = 4096
Todd Smith
|
|
|
|
|
Hi guys, I'm new on windows programming so I'm seeking a little bit help here regarding to ::SendMessage API.
<br />
LRESULT SendMessage(<br />
HWND hWnd,
UINT Msg,
WPARAM wParam,
LPARAM lParam
);
The first two parameters are clear and good, but the 3rd and 4th? MSDN says they both "Specifies additional message-specific information", so it's confusing, why there are two if they do exactly the same thing?
Also is there any documents I can find that gives some details on the format/contents of wParam/lParam? For example if I wanna send a key-down message "alt + ctrl + f3", what should be the wParam/lParam value? I just cannot find any explicit explanation from MSDN.
Any help are appreciated.
|
|
|
|
|
The meaning of wParam and lParam depends on value of 2nd argument. Each WM_xxx message is documented with description of what wParam and lParam mean.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
In Windows 2000 and XP, how do you check if the user logged in has access to write to a certain directory... this must be done withOUT writing a file because it is being used in a TreeCtrl browser. Any help is appreciated.
<><><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
Try the GetFileSecurity function
Mauricio Ritter - Brazil
Sonorking now: 100.13560 MRitter
|
|
|
|
|
Hi!
I have a windows 2000 computer with exchange on it.
I need to block the port 25 and replace it with another(any non useful)
Can I do it through exchange or windows?
If not, what can I do!?
Thanks!
Coding is a family business
|
|
|
|
|
You could always buy a router. this allows you to block or redirect ports to specific PCs on your network.. or if you have only one PC then.. your PC.
"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
|
|
|
|
|
and if i want to implement a software solution?
Thanks
|
|
|
|
|
Almost sounds like something that firewall software (or hardware) can do. just a guess though.
There are three types of people in this world: those who can count, and those who can't.
|
|
|
|
|
When you manualy connect all the filters in a filtergraph, do you have to also deconnect them all manualy before you release the filtergraph?
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
BOOL Beep(DWORD dwFreq, DWORD dwDuration)
Why the Beep function doesn't work corretly in some computer ??
In my program in vc6., in some computer produce the same sound with diferents values of dwFreq and dwDuration.
Any idea ??
Thanks,
Cris.
|
|
|
|
|
Hi,
perhaps: see in your msdn
SystemParametersInfo with SPI_SETBEEP, SPI_GETBEEP
DanielO
|
|
|
|
|
Ok, I made this, but it also doesn't work. The function always return Beeper is On.
Cris.
|
|
|
|
|
Hi there,
how hard is setting up MSVC6 to work with CVS and have a really comfortable checking in/out? CVS runs on a different box in my local LAN.
I was told to have a look on wincvs (GUI for CVS)... any alternatives or plugins for VC?
Thanks for your feedback, Moak
|
|
|
|
|
Try CS-RCS
http://www.componentsoftware.com/products/rcs/
Jonathan de Halleux, Belgium.
|
|
|
|
|
WinCVS is very nice!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|