ATL SERVER QUESTION

VC

    Next

  • 1. Newbie: Question about CEdit
    I would like to get each character in the edit control. I think I need to override the OnKeyDown method, but I'm not for sure. Maybe I need to override the ON_WM_CHAR? So far my code looks like this: CMyEdit : public CEdit { public: BEGIN_MSG_MAP(CMyEdit) MESSAGE_HANDLER( WM_KEYDOWN, OnKeyDown ) END_MSG_MAP() LRESULT OnKeyDown(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { return 0; } } Is this the best approach to retrieving the inputted value before it's displayed in the edit control? Thanks!
  • 2. Igor Tandetnik // Wow~
    Thank you very much.. really~ really.. I'm very happy. Igor Tandetinik. If you are beside me, I'll give some presents~ ^^ AND... I have a problem. I want to catch SETFOCUS of ComboBoxEx (edit). How do I catch it?
  • 3. I want to catch WM_IME_CHAR in ComboBoxEx (IE ToolBar)
    Always I said I'm making an IE Toolbar. I used a ComboBoxEx. I solved ComboBoxEx to catch SETFOCUS by WM_NOTIFY. And now I know I can't write 2-byte string (included Korean/Japanese) in ComboBoxEx. I saw about WM_IME_CHAR to solve the problem. But I don't know how I catch the MESSAGE. Please help me. please...............................
  • 4. How can I catch SETFOCUS of ComboBoxEx?
    I'm trying an IE Toolbar with ComboBoxEx. I must use ComboBoxEx to display Icon. In case ComboBox, I solved it by CBN_SETFOCUS (In Case Edit, ... EN_SETFOCUS) Now I don't know what I use. Please tell me it..!
  • 5. how can service application access the share folder on a remote computer?
    I create a Windos 2000 service application by using VC++ ATL. In this application,I need to access a share floder on the remote computer,such as" \\192.168.1.20\d$\Myfiles\test.txt". But this action always failed,because when the system just start up,and no user login the system then the service will have no permission to access this share floder.How can I do for accessing the share folder?

ATL SERVER QUESTION

Postby retf » Wed, 08 Nov 2006 05:03:15 GMT

Hi,
I have one page that have many things to process (connection whit DB) - PAGE 
01 - HANDLER 1 .
This page delay 3-5 seconds to process when user click in link to process 
this page.
I want show one page (PAGE 2) (before) with animated gif  that show: 
Loading...please...wait...
And when the page 01 is complete - page 2 change to page 1 that has the 
results..

Any one have any idea how I can do this in ATL Server.

Thanks

VC 7.1 - WINXP SP2 



RE: ATL SERVER QUESTION

Postby stcheng » Wed, 08 Nov 2006 17:24:55 GMT

ello Retf,

From your description, you're developing an web application through ATL
Server. There is one page which provide a link and the user click it to
start a server-side processing. You want to redirect the user to another
waiting page during the processing and return to original page after the
server-processing finished, correct? If anything I missed, please let me
know.

Based on my experience, in html page based web applications, generally we
have the following options to do such task:

1.when the user click link to post the page, our processing begin at
server(maybe in a backgroun thread), then you directly return some client
script to redirect to the waiting page. In the waiting page, you can use a
iframe(point to another page) to contantly postback to server and query the
status of the server-side process(maybe through a sessionstate variable).
When the task is finished the iframe page can output some script to
redirect the parent page(waiting page) to the original page.




2.Actually, you can also consider use some AJAX script code to poll status
from server without postback the page(use some XMLhttp component in client
script). In such case, what you need to do is as below:

** when user click link in page1, it start processing at server-side, and
redirect to a page(waiting page)

** in this waiting page, it has cilent-script(AJAX) that will constantly
send request to server to poll the processing status. You need to define a
server-side handler that will accept such client request(send through
XMLHTTP component in client) and return the task status).

** when the returned result indicate that the server-side processing has
finished, you simply redirect back the page to original page1


Here are some web article discussing on use ajax script or html <iframe> to
refresh page or query server-side status. Most of them may involve ASP.NET
or other server-side code logic ,however, the technique is neutural to
common web page development.



#How To: Submit and Poll for Long-Running Tasks
http://msdn2.microsoft.com/en-us/library/ms979200.aspx


#Refresh Portion Of Your Web Page Using XMLHTTP
http://www.codeproject.com/jscript/refreshpartweb.asp?df=100&forumid=2172&ex
p=0&select=31537
nj


http://www.frontpagewebmaster.com/m-116141/tm.htm

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

========================================

RE: ATL SERVER QUESTION

Postby stcheng » Fri, 10 Nov 2006 21:36:19 GMT

Hello Retf,

How are you doing on this issue, have you got any progress or further 
ideas? If you have anything unclear in my last reply or anything else we  
can help, please feel free to let me know.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
 

This posting is provided "AS IS" with no warranties, and confers no rights.


Re: ATL SERVER QUESTION

Postby retf » Fri, 10 Nov 2006 22:53:51 GMT

Hi Steven ,

Thanks for help.

subject 1 - I did try same things with this, but I didn't have sucess.
subject 2 - I don't know AJAX then I bought a book of this inssue.

If you can explain whit more detail subject 1 , I be grateful.

Thanks Again and sorry about my english.

"Steven Cheng[MSFT]" < XXXX@XXXXX.COM > escreveu na mensagem 





Re: ATL SERVER QUESTION

Postby stcheng » Sat, 11 Nov 2006 19:25:40 GMT

Hello Retf,

Glad to hear from you.

OK. Here is a what the iframe approach will do:

** after user click a link or button and post the page to do the work, you 
redirect user to another page, this can be a static html page which has an 
<iframe> that link to another page/handler. 

** the iframe linked page/handler should be dynamic and this page use 
<meta> tag to constantly refresh itself. e.g.

===refresh page once every 5 seconds=====
<meta http-equiv="refresh" content="5">
===========

 http://www.**--****.com/ 

also, this page has a <input type="hidden" value="0" /> field that contains 
the value which indicate the server processing's status. (by default set as 
0).  Then in your server-side ATL handler for this page, you will check the 
processing status(maybe through a session variable) and determine the value 
to output for the <input type="hidden" ..> field. When task finish, it will 
output 

<input type="hidden" value="1" />


** in the container static html page, you can use script to constantly 
query the <input type="hidden" ...> field's value in the iframe page. and 
if the value indicate that the task is finished, redirect to the original 
or target page.



Hope this helps clarify this further.


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

 

This posting is provided "AS IS" with no warranties, and confers no rights.



Re: ATL SERVER QUESTION

Postby stcheng » Wed, 15 Nov 2006 21:22:55 GMT

Hello Retf,

Still any questions on this? Please feel free to let me know if there is 
anything we can help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
 

This posting is provided "AS IS" with no warranties, and confers no rights.


Similar Threads:

1.ATL Server Question (64 bit)

2.atl server questions

Hi,

    Is this a right group for ATL Server questions ?


Thanks!
peter lin


3.ATL COM Server instantiated from ATL Dll (Newbie Question)

4.ATL Server Question: Put Text Info in form field?

Hi All,
I have one page that has one form with 2 fields, when this page is loaded I 
need put info from cookie in this fields.

to get text of field I use:

CString fieldLogin;

fieldLogin = requestParams->Lookup("login");



My question is: How to put info in thise fields.



Thanks to all.


5.Stupid ATL COM Server question

Hi

I wrote my first ATL COM Server exe today.  Works great with my VB client app.  Now I want to run the VB client app on another box and have it connect to this machine where the server runs.  I don't think I need to create the Proxy/Stub DLL (via .mk) because my interfaces are dual.  I read in a previous posting that if it is dual then no DLL required.  That leaves me with the TLB file.  Unfortunately REGSVR32 xyz.TLB doesn't work.  What does

Thanks in advance
Brian

6. ATL Server - TEXT QUESTION (accent related)

7. Can Use ATL & ATL Server Library in 64-bit Platfforms

8. Accessing a COM EXE Server from an ATL Web Server



Return to VC

 

Who is online

Users browsing this forum: No registered users and 92 guest