|
Hi,
Perhaps this help you: HERE[^]
-----------
Mila
|
|
|
|
|
Does this, certainly cannot examine a webpage whether exists? Only analyzes a URL.
alantop
|
|
|
|
|
Are you wanting to validate the URL itself, or the actual Web site? If the latter, try InternetCheckConnection() or IsDestinationReachable() .
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
I was using UDP protocol(SOCK_DATAGRAM) to do the network communication.
I used 'sendto ' system call to send data . After sending data repeatedly using 'sendto' system call it failed at one point.
Using WSAGetLastError I could retrieve the error code as 10055 which means --
No buffer space available.
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
Can anyone suggest me how to overcome this problem.
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|
|
there are 2 classes
class MyClass1: public CDialog & class MyClass2: public CDialog
CObArray m_obArray is protected member of MyClass1
The task is to initialize CListCtrl m_list of MyClass2 with elements of m_obArray
|
|
|
|
|
And you couldn't even rephrase the task of your homework before posting it?
|
|
|
|
|
|
I couldn't//maybe course it's not homework
|
|
|
|
|
MyClass1 will need a 'getter' method that returns a reference/pointer to its m_obArray member.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|
|
How we can convert (color-depth) of HBITMAP bitmap image.
|
|
|
|
|
See Here[^]
maybe it is some helpful to you
whitesky
|
|
|
|
|
I have a requirement to create an application which will accept the command line parameter. Depening on the parameter passed to the application, it will start and stop.
For Ex. on command prompt
C:\>MyExe start
This command will start the application for a given task.
C:\>MyExe stop
If MyExe is already running then the above command will stop it.
Appreciate your help.
|
|
|
|
|
What is the type of application ? Console, Win32, MFC, ...
Your question is not very clear.
Cédric Moonen
Software developer
Charting control
|
|
|
|
|
It would be Win32 or MFC application
|
|
|
|
|
|
Ravi Jadhav wrote:
C:\>MyExe stop
That will run a second instance of MyExe. You'll need to use IPC to look for a running instance and tell it to stop its work.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I dont want the second instance. Can you please help me how to use IPC?
|
|
|
|
|
|
Ravi Jadhav wrote: If MyExe is already running then the above command will stop it.
do you want to create service!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
It would be Win32 or MFC application
|
|
|
|
|
|
Thanks I think this will suffice my requirement
|
|
|
|
|
Create some gloabl object like NamedPipe, Mutux etc to manage single instance
Use PostQuitMessage to exit
|
|
|
|
|
Could you find a simpler way to solve your problem?
Example
C:\>MyExe start
write on a registry or on a fixed file
RUN = TRUE
and then the program will start
C:\>MyExe stop
write on a registry or on a fixed file
RUN = FALSE
and this instance ends
The first instance, thatsometimes (like into the OnIdle function) are checking the key , understands that he needs to be closed and .... close itself .
hope that helps
|
|
|
|
|
So what exactly is the question? You've given us a high-level overview, but nothing specific.
"The largest fire starts but with the smallest spark." - David Crow
|
|
|
|