|
I believe the proxy settings are stored in the registry. A while back I helped create a IE package at work and I am pretty sure all the proxy settings are stored in the registry. Sorry I can't be any more specific.. I'll see if I can dig something up and post it..
Rob
|
|
|
|
|
WinInet function InternetSetOption is your starting point.
As for Netscape, I'm afraid it is no simple task, you have to edit a file named prefs.js but the whole issue is rather messy.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for good point you told me, regarding Netscape prefs.js.
For Explorer, I will use the registry key, as I was pointed by another answer.
Regards,
Mihai
|
|
|
|
|
For Explorer, I will use the registry key, as I was pointed by another answer.
It is up to you which method you choose to use, but IMHO resorting to InternetSetOption increases your chances that your app will work with upcoming versions of IE.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
You are absolutely right,
I don't thinked to future.
Mihai
|
|
|
|
|
Generally it is not a good idea to have your app's setup modify user settings. I would be very peeved to find my browser settings tweaked by a setup program without being notified and given the opportunity to cancel.
You can modify Netscape settings by removing it and installing IE.
|
|
|
|
|
As already said, it better to not change the IE settings without asking agreement from the user!
Anyway if u still need to do that, it is in the registry under the key:
HK_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings
and the values to change is : ProxyServer ( xxx.xxx.xxx.xxx:port )
If u need anything else post it!
Papa
|
|
|
|
|
Thanks a lot for pointing me in the right direction!
You are absolutely true, I found the setting right where you point me.
And as you say, the user will be prompted about changes.
Best regards, Mihai
|
|
|
|
|
Am I allowed to distribute an app that uses Microsofts MSHTML or CHtmlView without contacting MS for pemission. I have seen some apps with this in their about box.
"Microsoft Internet Explorer components under licence from Microsoft"
.NET or not .NET? MFC is the question......
|
|
|
|
|
Hello!
According to
Redistributing Microsoft Visual C++ 6.0 Applications
Redistributing Web Applications
If your application uses the MFC classes implementing the WebBrowser control (for example, CHtmlView or CHtmlEditView), Microsoft Internet Explorer 4.0 or later must at least be minimally installed on the target computer.
So this means that the user has to install IE4 or later to use your product, but since IE is "free" ...
// Mike
|
|
|
|
|
Two question:
1.
My program must monite the communication port in real-time mode,and display the trend-line in the screen,but when i do another long task,such as copy a big file to the floppy disk,
It seem that the program's interface can't updated until this long task has finished,
what shoud I do in such case?
2. when I drag another application's window, It seem that the WM_TIMER message only occured after I release the mouse-button,but I don't want this ,what do I do in such case?
Thanks a lot!
|
|
|
|
|
hemouse wrote:
the program's interface can't updated until this long task has finished,
what shoud I do in such case?
You should create a thread to perform time consuming tasks (such as the file copy) in the background. Alternatively, you can perform the file copy in small chunks, between which you should flush the Windows message queue. The separate thread is the preferred way.
hemouse wrote:
when I drag another application's window, It seem that the WM_TIMER message only occured after I release the mouse-button
WM_TIMER messages are still being sent as you perform the drag. However, Windows will handle higher priority messages first (eg: WM_MOUSEMOVE). Eventually, all the WM_TIMER messages will be handled as a single one. You need to restructure your logic to account for this.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
about first question:
perhaps you have misunderstood my meaning.
I didn't copy the big file in my application.Instead, I switched to the window's explore to do this task, so my application can't handle something(such as update the interface in real-time , send a signal to the comport's DTR when I received some special bytes from the comport),and these only can do after the file's copying is ended.
About question 2:
Can you give me some good advices ?
Have a nice day!
No money is a terrible thing!
|
|
|
|
|
Hi,
If you must monitor the communication port in real-time mode, do not use WM_TIMER !
Use waitable timers(check the api SetWaitableTimer) or more precise than this
multimedia timers, do a check for this on MSDN.
Anyway WM_TIMER is meant to use in user mode gui applications , not on your type of project.
I've done this kind of development, and WM_TIMER doesn't work well, it have lower priority than waitable timers and multimedia timers(more precise)
Cheers,
Joao Vaz
|
|
|
|
|
I'm developing sth. similar: Data from Serial is displayed in a diagram.
I have a workerthread polling data from serial and adding it to a shreadsave queue. a GDI-thread takes data from the queue and draws a diagramm in the Client area.
Re: to hintiflo@gmx.at if you're interested!
Don't reply from CP directly, my account doesn't work!
mfg HintiFlo
|
|
|
|
|
hemouse wrote:
It seem that the program's interface can't updated until this long task has finished,
what shoud I do in such case?
As I posted, I suggest, updating not via timer, but polling data from a queue in another thread. Maybe it helps if you read my code, I have troubles with painting, so we could exchange our projs. But only if you sware not to laugh about me and my coding "style" !
Forget the email I sent yesterday, I'm on track about your question again!
|
|
|
|
|
Hi, as the title. Can you give me a sample or some links? Thank you.
More details:
FlexGrid binds to a Recorderset, which opened with SQL cmdText not table. How can I performance this?
|
|
|
|
|
Kamp Huang wrote:
Did anybody ever use MSFlexGrid control in VC++ before?
Yes, it sucks - next question....
Seriously you can't *bind* a flexgrid to a recordset, you need to go through and copy the data into the grid.
Save yourself some grief and download Chris Maunders most excellent grid control instead. You'll still need to handle copying data into and out of the grid, but it is a LOT nicer and more flexible.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Copy the datas one by one?
|
|
|
|
|
Kamp Huang wrote:
Copy the datas one by one?
Yes, I've not seen any samples that auto fill a grid for you. If I'm wrong, please correct me, but I've never seen it happen by itself.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
I've never found that too. Thanks for your reply. It seems that I'd better shift back to DataGrid control.
|
|
|
|
|
See my sample on MS Data Grid, That Auto fills data for you.
http://www.codeproject.com/useritems/msdatagrid.asp
MS Data Flex Grid is used with ODBC and non OLE DB data sources. MS Data Grid is used for OLE DB data sources.
|
|
|
|
|
Thanks, I've read your excellent article before. But there is a strange thing in DataGrid. When I called SetRow() method, I failed set to the row that existed but not visible in current scroll range. Do you know why?
|
|
|
|
|
I am also facing the same problem of not able to see the data in the current scroll range but with MS Flex Grid. Did u get any solution for this.and if naybody knows it please reply back.
Thanks
Chitra
|
|
|
|
|
This sample uses the MS FlexGrid
http://www.codeproject.com/database/isqlado.asp
|
|
|
|