|
but that has minimize and maximize icons.
also it shows up in the taskbar before being minimized.
how can it stay off taskbar? and remain in system tray.
|
|
|
|
|
See this[^] article. Btw, it's impolite to shout.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
With 32 bits adresses the total adress space is 4 GB. From what I've heard Windows reserves 2 GB. It is then useless install more than 2GB RAM. Is there any way around this so you can make use of more than 2GB RAM if necessary?
Regards, Haakon S.
|
|
|
|
|
Windows can run more than one process simultaneously and each process has its own address space, so Windows can make use of more than 2GB physical RAM.
|
|
|
|
|
See Microsoft Knowledge Base article Q170756 (sorry I don't have a direct link to it; I found it in my copy of the MSDN). There is a BOOT.INI option to enable 3 GB addressing for user mode programs running under Windows NT Advanced Server and DataCenter Server.
Software Zen: delete this;
|
|
|
|
|
We must indicate the size of date when using Recevie() function, but how to peek the data size of input queue? sometimes we don't know what size is that current queue head data.
|
|
|
|
|
hi
you can use ioctlsocket function to find out how much data is available to read.
|
|
|
|
|
I split a window into two parts(left and right)using CSplitterWnd .I want to dynamically changing right view. I have a method, but it must destory last view and create the view i want.how can i change the right view and don't destory the view before
thanks!!!!!
|
|
|
|
|
|
i tried DeleteFile
it didnt work - perhaps it's just meant for "files" - not directory
norm
|
|
|
|
|
How about ::RemoveDirectory() ?
B.
|
|
|
|
|
Nice but you must have deleted all files and folders in it.
-> It seems to be a little recursive task.
Try this @ home. (B&B)
|
|
|
|
|
::SHFileOperation() is a good one!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
How do you declare a pointer to a template?
I'm trying to make a clone of the CList class, and cannot figure out how they have defined the POSITION type.
in list.h (search for 'clist' in the MSDN library), it is defined thusly:
#define POSITION CNode<type>*
This works for all class methods of my CList and CNode, however when I try and use it in code I get a "TYPE undeclared" error.
Suggestions?
- Xavier
|
|
|
|
|
I hope I am answering this before CG.
Why do you have to reinvent the wheel? Use std::list
Best regards,
Alexandru Savescu
P.S. Interested in art? Visit this!
|
|
|
|
|
Learning purposes, although I haven't looked at std::list, maybe that will shed some light.
Thanks.
- Xavier
|
|
|
|
|
we are using ODBC api call to access a oracle database.
we are using VC++.
Anyone knows how to get the SQL string with the parameter markers (?) replaced by their actual value.
Even after executing the query, parameter markers are still visible.
The goal is to use the full query to log the execution plan to file.
help is appreciated.
|
|
|
|
|
Hi,
I have written the following code to avoid multiple instances of my application.
if(::FindWindow(NULL,_T("My app"))!=NULL)
{
CWnd *pWndPrev;
if (pWndPrev = CWnd::FindWindow(NULL,_T("My app")))
{
pWndPrev->SetForegroundWindow();
pWndPrev->SendMessage(WM_MYMSG,(WPARAM)0,0);
return 0;
}
}
If my application is already running,If i try to launch again for the first time works.But if i try to launch again
it shows some assertion failure in mfc42.dll.
Can nayone help me?
Regards
Neha
|
|
|
|
|
try this
CWnd pWndPrev = ::FindWindow(NULL,_T("My app"));
if (pWndPrev)
{
SetForegroundWindow(pWndPrev);
// or need a test with AfxMsgBox(...); or something else
//pWndPrev->SendMessage(WM_MYMSG,(WPARAM)0,0);
return 0;
}
Borland solution
----------------
HWND hWnd=FindWindow(NULL,"NetTimer 3");
if(hWnd)
{
BringWindowToTop(hWnd);
if(IsIconic(hWnd)) ShowWindow(hWnd,SW_RESTORE);
else SetForegroundWindow(hWnd);
if(BringWindowToTop(hWnd))
MessageBox(hWnd,msg,"NetTimer 3",MB_OK | MB_ICONEXCLAMATION);
else SetForegroundWindow(hWnd);
return 0;
}
Have nice day
Leedoriden ( FRANCE )
|
|
|
|
|
Thanks for the reply.
If i don't do any sendmessage or postmessage it works.
|
|
|
|
|
If all you want is to prevent multiple instances of your app, try this:
HANDLE MutexHandle;
BOOL IsAlreadyRunning()
{
MutexHandle = CreateMutex(NULL, TRUE, "YOURAPPNAME");
if(GetLastError() == ERROR_ALREADY_EXISTS)
{
return(true);
}
else
{
return(false);
}
}
void CloseThisInstance()
{
ReleaseMutex(MutexHandle);
CloseHandle(MutexHandle);
}
...
if(IsAlreadyRunning())
{
MessageBox(NULL, _T("The app is already running!"), _T("Your app name"), MB_OK);
}
else
{
}
...
CloseThisInstance();
Regards,
Rohit Sinha
|
|
|
|
|
If you're using MFC, here's all you need to put in the app's InitInstance:
static CMutex mutex(FALSE, "YOURAPPNAME");
if (::GetLastError() == ERROR_ALREADY_EXISTS)
return FALSE;
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
Can merge two floating into one tabbed also can split them into two....
Thanks!
Thanks!!
|
|
|
|
|
Can somebody help me how does a download manager work with the features like resuming a download, finding alternate urls for a specific file.
|
|
|
|
|
I use IsBadReadPtr and IsBadWritePtr quite a bit in my code and for the most part have not considered the issue of performance related to these functions. I know there is some cost to their use, but how I just don't know. I try not to use them in deep inner loops (like any other function call), but I am still interested to know the cost of these functions.
Does anyone know how they work and how costly they are in CPU cycles?
|
|
|
|