Click here to Skip to main content
15,891,907 members
Home / Discussions / COM
   

COM

 
QuestionHow to create an ActiveX in a CView (MFC) help or URL or Books wanted Pin
Remi Morin27-Sep-01 4:46
Remi Morin27-Sep-01 4:46 
AnswerRe: How to create an ActiveX in a CView (MFC) help or URL or Books wanted Pin
Remi Morin28-Sep-01 3:42
Remi Morin28-Sep-01 3:42 
GeneralThe interface contract Pin
Andrew McGrath27-Sep-01 2:00
Andrew McGrath27-Sep-01 2:00 
GeneralRe: The interface contract Pin
Not Active27-Sep-01 6:35
mentorNot Active27-Sep-01 6:35 
GeneralRe: The interface contract Pin
In-At23-Oct-01 20:35
In-At23-Oct-01 20:35 
GeneralRe: The interface contract Pin
Andrew McGrath23-Oct-01 21:09
Andrew McGrath23-Oct-01 21:09 
GeneralRe: The interface contract Pin
In-At23-Oct-01 23:59
In-At23-Oct-01 23:59 
Questionhow to pass USER_LOGON variable to ActiveX developed in VC++? Pin
Bartek27-Sep-01 0:26
Bartek27-Sep-01 0:26 
Hi,

I am developing activeX control in VC++.
My control is built with usage of two other OCX files so I pack three OCX files and INF file in one single CAB file.

It is being placed on the web page with CODEBASE tag and class id of my control.

It works fine but I need to get USER_LOGON to verify user's permissions to access database (this is INTRANET application)

to get user login I am using VBScript:

<%
full_user_id = Request.ServerVariables ("LOGON_USER")

Response.Write full_user_id

i=InStrRev(full_user_id,"\",-1,vbTextCompare)

if i>0 then
user_login = Right(full_user_id,len(full_user_id)-i)
else
user_login = full_user_id
end if
%>

and i get the proper string in 'user_login'

the question is - how can I pass this user_login variable to my C++ code ?

i would guess by setting :

<param name="web_user_name" value="<%" response.write="" user_login="" %="" />>

Am I on the right track ? Does anyone know how to pass USER_LOGON variable from the html page to activex control's code (VC++) ?

thank you
QuestionThe initial size in the resurce editor? Pin
George26-Sep-01 21:19
George26-Sep-01 21:19 
Questionhow to transfer Interface Pointer? Pin
maya26-Sep-01 16:05
maya26-Sep-01 16:05 
GeneralNewbie, please help Pin
Rob Brown26-Sep-01 9:25
Rob Brown26-Sep-01 9:25 
GeneralRe: Newbie, please help Pin
Daniel Turini29-Sep-01 3:30
Daniel Turini29-Sep-01 3:30 
GeneralExport function Pin
Jose Fco Bonnin26-Sep-01 4:47
Jose Fco Bonnin26-Sep-01 4:47 
GeneralRe: Export function Pin
Not Active26-Sep-01 5:22
mentorNot Active26-Sep-01 5:22 
GeneralDCOM access denied Pin
Ali Issa25-Sep-01 1:16
Ali Issa25-Sep-01 1:16 
GeneralRe: DCOM access denied Pin
maya26-Sep-01 15:56
maya26-Sep-01 15:56 
GeneralRe: DCOM access denied Pin
Shadi Al-Kahwaji2-Oct-01 22:23
Shadi Al-Kahwaji2-Oct-01 22:23 
GeneralRe: DCOM access denied Pin
Shadi Al-Kahwaji8-Oct-01 0:33
Shadi Al-Kahwaji8-Oct-01 0:33 
Generalcomparioson of VB COM and ATL COM Pin
Ganesh Ramaswamy24-Sep-01 6:39
Ganesh Ramaswamy24-Sep-01 6:39 
GeneralRe: comparioson of VB COM and ATL COM Pin
Daniel Turini24-Sep-01 6:43
Daniel Turini24-Sep-01 6:43 
GeneralRe: comparioson of VB COM and ATL COM Pin
Amit Dey25-Sep-01 18:21
Amit Dey25-Sep-01 18:21 
GeneralRe: comparioson of VB COM and ATL COM Pin
David Salter27-Sep-01 11:11
David Salter27-Sep-01 11:11 
GeneralUnable to synchronize the data from SQL Server CE Pin
24-Sep-01 0:07
suss24-Sep-01 0:07 
Generalretrun BSTR Pin
Eran22-Sep-01 3:25
Eran22-Sep-01 3:25 
GeneralRe: retrun BSTR Pin
Aaron Schaefer24-Sep-01 5:49
Aaron Schaefer24-Sep-01 5:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.