|
One solution is file-mapping.
Kuphryn
|
|
|
|
|
i create a regular dll named MyDll using MFC, i want the dll popup a dialg in
the beginning of the function CMyDllApp::InitInstance() ,just as i did in my exe. but here caused serious error in wincore.cpp (line:884)
BOOL CMyDllApp::InitInstance()
{
// TODO: Add your specialized code here and/or call the base class
CDlg dlg;
dlg.DoModal();
return CWinApp::InitInstance();
}
who can tell me what's wrong to my program?
gucy
|
|
|
|
|
gucy wrote:
i create a regular dll named MyDll using MFC...
If by "regular dll" you mean a non-MFC DLL, this is rather contradictory, don't you think?
gucy wrote:
who can tell me what's wrong to my program?
I would guess that it's too early to be calling such functions. The DLL is not fully initialized at this point, and something within CDialog requires the DLL to be up and ready to go.
|
|
|
|
|
http://www.thesoftwareobjects.com
|
|
|
|
|
What does the software object to?
I'm guessing its demanding parity
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
One would assume you are connected with this business. You should say so or not, and don't post anonymously.
There is only one C++ product on the site, so I can't see it being very usefull to folks here at CP. The site also seems difficult to use to me at least.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
Hi,
I want to implement a function to lookup internet IP address to get its coresponding netblock information in my developing internet app.
Perhaps,my question is how to get WHOIS information in my program. Should my app connect to WHOIS server, such as APNIC WHOIS server?
For example,
if I lookup 202.84.144.73, I want to get its information
inetnum: 202.84.128.0 - 202.84.191.255
netname: HKT,HK
... and so on.
Any ideas? Thanks in advance.
|
|
|
|
|
|
Hi,
did you take a look at this article?
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
i have developed a application. in which a child window opens on clicking a button
but if user moves parent window to corner of screen ; child window gets opened on the center of parent window not on screen
i wanted to display it in the center of screen irrespective of position of parent window.
thankong you
chan
|
|
|
|
|
If you're using MFC, use CenterWindow(CWnd::GetDesktopWindow()) in your OnInitDialog() handler.
If you're not using MFC, you'll have to do a MoveWindow() and calculate the position where it should be. Look at the source code for CWnd::CenterWindow() to get an idea on how to do this.
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
Dear ALL,
I am developing an application for Windows NT/2000/XP. I need to know the path of root directory in my application.
Is there any API to know the root directory path (ie. c:\winnt or c:\windows)
Thanks in advance.
Rohit
|
|
|
|
|
Try GetWindowsDirectory()
Ryan
Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"
|
|
|
|
|
|
Hi world,
I want a simple dialog box (like CFileDialog) who let the user choose only a directory (not a file)...
Can somebody give me a simple example which does that?
Thanks in advance...
Hello World!!!
from Raphaël
|
|
|
|
|
|
I would have to look in Code Project first, sorry...
Hello World!!!
from Raphaël
|
|
|
|
|
Don't worry!
|
|
|
|
|
|
The following sample browses for a directory:
void BrowseForDir()<br />
{<br />
char caPathName[MAX_PATH];<br />
<br />
caPathName[0] = 0;<br />
<br />
GetDlgItemText(IDC_MYCTRL_TO_BACKFILL,caPathName,MAX_PATH);<br />
<br />
BROWSEINFO sBI;<br />
memset(&sBI,0,sizeof(BROWSEINFO));<br />
<br />
sBI.hwndOwner = m_hWnd;<br />
sBI.pidlRoot = NULL;<br />
sBI.pszDisplayName = caPathName;<br />
sBI.lpszTitle = "Select the folder that contains the desired files";<br />
sBI.ulFlags = BIF_RETURNONLYFSDIRS;<br />
sBI.lpfn = NULL;<br />
<br />
LPITEMIDLIST pidl = SHBrowseForFolder(&sBI);<br />
if (pidl)<br />
{<br />
SHGetPathFromIDList(pidl,caPathName);<br />
SetDlgItemText(IDC_MYCTRL_TO_BACKFILL,caPathName);<br />
GotoDlgCtrl(GetDlgItem(IDC_MYCTRL_TO_BACKFILL));<br />
}<br />
}
onwards and upwards...
|
|
|
|
|
My application uses a Flexgrid. Iam using the first row as the header. I need to insert new rows (data rows) after the first row (as the second row). Every new row inserted must become the second row and the remaining rows should get pushed down. Resetting the number of rows works but it appends a row at the end of the grid. Is there any way to achieve this? Where can I get the complete documentation on Flexgrid?
thanks.
|
|
|
|
|
void CMSHFlexGrid::AddItem(LPCTSTR Item, const VARIANT& Index) adds a new row. If you want to add a new row after the header then just call:
AddItem( Item, _variant_t((long)1) );
If you want the documentation for FlexGrid, go to Project->Add to project->Components and controls and then find the flexgrid control. Select it and then click More Info.
// Afterall, I realized that even my comment lines have bugs
|
|
|
|
|
is there anyway or API that helps me printing the contents of an List view control ?? , i mean here with "Printing" is to use the printer device not pronting on the screen.
if anyone can support me with articles or code will be better.
i use MFC.
thanx for advance
|
|
|
|
|
I have a stl set with pointers to objects. When I insert() a reference to one of these objects in the empty set I get an access violation in the while loop of the following code:
<br />
void _Dec()<br />
{if (_Color(_Ptr) == _Red<br />
&& _Parent(_Parent(_Ptr)) == _Ptr)<br />
_Ptr = _Right(_Ptr);<br />
else if (_Left(_Ptr) != _Nil)<br />
_Ptr = _Max(_Left(_Ptr));<br />
else<br />
{_Nodeptr _P;<br />
while (_Ptr == _Left(_P = _Parent(_Ptr)))<br />
_Ptr = _P;<br />
_Ptr = _P; }}<br />
When I change the set to a list an push_back() the same object I works fine. Is this an stl bug, or must I be doing something wrong?
|
|
|
|