|
Take a look at the various RAS functions, including:
RasCreatePhonebookEntry()<br />
RasEditPhonebookEntry()<br />
RasSetEntryProperties()<br />
RasSetEntryDialParams()
etc
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
It was really helpful and i can look at it the DUN related settings.
Now how can we change the Modem Settings do u have/know the some code snippets? Something i found here http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q163/2/36.asp&NoWebContent=1
But i ddidn't get more details to set the "Wait for dial tone before dialing",Call Preferences, "Cancel the call if not connected within"
etc.
Thankx a lot in advance
|
|
|
|
|
hi,
i want to hide a dialog when it start.
but, why it can't hide a dialog in OnInitDialog() with following code?
this->ShowWindow(SW_MINIMIZE); // work in OnInitDialog()
this->ShowWindow(SW_HIDE); // failure in OnInitDialog()
minimize is ok... but, can't hide a window.
even i added following in OnSize() also can't hide a window when i start.
if ( nType == SIZE_MINIMIZED )
{
this->ShowWindow(SW_HIDE);
}
any help?
thanks,
jim
|
|
|
|
|
Instead of calling dlg.DoModal(), use dlg->ShowWindow( SW_HIDE )
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
what u do for dialod based app will lead to assertion!
|
|
|
|
|
|
In my MFC MDI app, when I call GetRichEditCtrl().SetWordCharFormat or GetRichEditCtrl().SetSelectionCharFormat to color a piece of text, and then press Ctrl+Z (or Edit->Undo), the formatting gets undone!
Is there any way to tell the rich edit control not to allow this character formatting to be able to be undoable?
|
|
|
|
|
Use EmptyUndoBuffer() .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
I know of that, but what if before I call SetWordCharFormat the user has an operation that is undoable. If I called EmptyUndoBuffer, they would be unable to undo that operation they had "done" before I called SetWordCharFormat. There's got to be a solution
|
|
|
|
|
Hi!
I am trying to create a chat application using the async socket mode ( I dont need more than 20 connections at a time so I didnt use overlapped mode).
My chat program has a server and clients connected to it. The server returns to all clients the messages sent by a client and all the clients view the same message.
The problem is that my chat server can resend a message which came from a client to only one client... I think I made a mistake in the FD_ACCEPT message:
<br />
case FD_ACCEPT:<br />
{<br />
sockaddr_in remoteAddr;<br />
int iRemoteAddrLen;<br />
iRemoteAddrLen = sizeof(remoteAddr);<br />
hRemoteSocket = accept(hSocket, (sockaddr*)&remoteAddr, &iRemoteAddrLen);<br />
}<br />
break;<br />
This code accepts all incoming clients but only lets me communicate with just one ! How can I communicate with more clients ?(Do I have to create a new socket for all new clients? )
Thank you very much for your future answers!
Well... I am a beginner ...
|
|
|
|
|
You may have to keep a reference to all the client sockets that is connected to your server sockets. You can use an array / list of socket descriptors for this.
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
Scolinks wrote:
How can I communicate with more clients ?(Do I have to create a new socket for all new clients? )
Indeed you do. The socket you initially create on your server is just used to accept new connections from clients. When you call accept it will return a socket which you use to communicate with that client. You'll need to keep track of all sockets created by th accept fn.
Phil
|
|
|
|
|
OK! Thanks a lot! I'll try to figure out how I can create a socket array!
Well... I am a beginner ...
|
|
|
|
|
I want my program to run an additional shell command.
I see function:
int system(const char* command);
It can execute command, but I cannot get the result of the command.
Is there any function that can execute command and recieve its result in some parameter? If not, I want any idea to get the result after the command is executed.
(I develop my program on Linux.)
|
|
|
|
|
Use either CreateProcess() or ShellExecute() instead.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
A better approach would be to use redirection. You can redirect the output of a command to a file. It should work irrespective of the platform used.
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
i dont know what this visual c++ is and what it does but i cant run my java with it.. it says see visual c++ documention for help on assertion failure, but.. god.. i can only turn on the damn computer! please help me someone
|
|
|
|
|
|
You can begin by reading through this document[^].
After you did understand this, I you can come back and I'll give you some excercises to improve your understanding.
Nice troll, thank you very much
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Try the VB forum - they might not be able to help you, but they can certainly sing along with you
Phil
|
|
|
|
|
lol
I Dream of Absolute Zero
|
|
|
|
|
Honestly, I go crazy soon...
I'm trying to remotely debug an application, both PCs are connected trough LAN. I have all the correct .pdb files along with the dlls, but when there is an assert or a breakpoint, I can't see the source code, only assembler, and on the context call stack I have only hex numbers.
I don't know how to make this thing work...
Are there any tips and tricks to know to efficiently use remote debugger ?
Regards
Daniel
|
|
|
|
|
You might be working on the release version. Check it out!!!
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|
|
I'm working with the debug version, and all my dlls are debug dlls aswell, all compiled with debug-info and program database activated.
Any other clue?
I only have the source code visible on the main project, if the call goes into a dll, i get only assembler...
|
|
|
|
|
You can try this.
If you have the source codes for the dll, you can probably start debugging that dll code by specifying the EXE name ( you already have that!!! Right ) in Project->Settings->Debug->"Executable for Debug Session".
"A robust program is resistant to errors -- it either works correctly, or it does not work at all; whereas a fault tolerant program must actually recover from errors."
|
|
|
|