Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThanks Pin
Ahmad9927-Sep-01 4:27
Ahmad9927-Sep-01 4:27 
GeneralContent of Stl-Container in Debug-Mode Pin
Olivier Heidemann27-Sep-01 2:35
Olivier Heidemann27-Sep-01 2:35 
QuestionVideo Capture Resolution Change? Pin
jwrich0127-Sep-01 2:29
jwrich0127-Sep-01 2:29 
Generalbitmap from imglist Pin
Noman Nadeem27-Sep-01 1:39
Noman Nadeem27-Sep-01 1:39 
GeneralRe: bitmap from imglist Pin
Tomasz Sowinski27-Sep-01 2:06
Tomasz Sowinski27-Sep-01 2:06 
Generalclass wizard is disabled Pin
27-Sep-01 1:36
suss27-Sep-01 1:36 
GeneralRe: class wizard is disabled Pin
27-Sep-01 3:18
suss27-Sep-01 3:18 
Questionhow to pass USER_LOGON variable to ActiveX developed in VC++? Pin
Bartek27-Sep-01 0:29
Bartek27-Sep-01 0:29 
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
AnswerRe: how to pass USER_LOGON variable to ActiveX developed in VC++? Pin
Ricardo Beja28-Sep-01 6:31
Ricardo Beja28-Sep-01 6:31 
GeneralVC++ AddIn - How does one open a window Pin
Franz Klein26-Sep-01 23:56
Franz Klein26-Sep-01 23:56 
GeneralPrevent CTreeCtrl from being auto collapsed Pin
Alex Dong26-Sep-01 23:45
Alex Dong26-Sep-01 23:45 
GeneralRe: Prevent CTreeCtrl from being auto collapsed Pin
27-Sep-01 0:35
suss27-Sep-01 0:35 
GeneralRe: Prevent CTreeCtrl from being auto collapsed Pin
27-Sep-01 15:12
suss27-Sep-01 15:12 
Generalstructuring in MFC Pin
JoNy26-Sep-01 23:03
JoNy26-Sep-01 23:03 
GeneralRe: structuring in MFC Pin
Tomasz Sowinski27-Sep-01 0:26
Tomasz Sowinski27-Sep-01 0:26 
GeneralRe: structuring in MFC Pin
JoNy27-Sep-01 1:42
JoNy27-Sep-01 1:42 
GeneralRe: structuring in MFC Pin
Tomasz Sowinski27-Sep-01 2:00
Tomasz Sowinski27-Sep-01 2:00 
GeneralInterprocess communication Pin
^GeeK^26-Sep-01 21:58
^GeeK^26-Sep-01 21:58 
GeneralRe: Interprocess communication Pin
Braulio Dez26-Sep-01 22:48
Braulio Dez26-Sep-01 22:48 
GeneralPassing Messages Between Processes Pin
26-Sep-01 20:53
suss26-Sep-01 20:53 
GeneralRe: Passing Messages Between Processes Pin
Michael Dunn26-Sep-01 21:16
sitebuilderMichael Dunn26-Sep-01 21:16 
GeneralRe: Passing Messages Between Processes Pin
26-Sep-01 21:35
suss26-Sep-01 21:35 
GeneralRe: Passing Messages Between Processes Pin
Christian Graus27-Sep-01 2:34
protectorChristian Graus27-Sep-01 2:34 
GeneralDirectX book Pin
26-Sep-01 20:41
suss26-Sep-01 20:41 
Generalextract a substring from CString Pin
Tryhard26-Sep-01 19:02
Tryhard26-Sep-01 19:02 

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.