Click here to Skip to main content
15,909,466 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clipping Pin
Shog925-Feb-02 19:47
sitebuilderShog925-Feb-02 19:47 
QuestionDoc/view question...?? Pin
alex.barylski25-Feb-02 13:15
alex.barylski25-Feb-02 13:15 
AnswerRe: Doc/view question...?? Pin
Jay Beckert25-Feb-02 13:43
Jay Beckert25-Feb-02 13:43 
GeneralRe: Doc/view question...?? Pin
alex.barylski25-Feb-02 14:06
alex.barylski25-Feb-02 14:06 
GeneralRe: Doc/view question...?? Pin
Jay Beckert26-Feb-02 10:37
Jay Beckert26-Feb-02 10:37 
AnswerRe: Doc/view question...?? Pin
Mazdak25-Feb-02 17:01
Mazdak25-Feb-02 17:01 
Generalvc6 macros: Object model shortcomings & bugs Pin
rseidl25-Feb-02 11:29
rseidl25-Feb-02 11:29 
GeneralRe: vc6 macros: Object model shortcomings & bugs Pin
J Patel25-Feb-02 11:36
J Patel25-Feb-02 11:36 
rseidl wrote:
Problems
--------------------------------
1. Object Required: 'WScript'
This code, run as a VC macro gives the above error:

MsgBox WScript.ScriptFullName

Saved in a text.vbs and double clicked on the same computer, same code works fine (so I know I have the right libs/registry settings for scripting)

What is wrong with the VC VB runtime environment ? Why can't I access WScript ? I read somewhere else that "for security purposes" some aspects of the VB runtime were disabled in VC and this could be registry hacked.
Well if necessary, I'll do that. Does anyone have ideas ? Does code containing WScript calls work in your VCVB macros ?


You won't be able to access the wscript object. However, I was playing with the WScript.Shell object and you can use it. This is how you'd do it.

<br />
Sub WScript()<br />
'DESCRIPTION: Test wscript<br />
	On error resume next<br />
	set shell = CreateObject("WScript.Shell")<br />
	shell.run "notepad"<br />
End Sub<br />


I don't know of a way to create the WScript root object (maybe there isn't one). Remember when you save it to a vbs file, this script is run by either wscript.exe or cscript.exe. I'm no expert at scripting, but these hosts add a named object "WScript".

As for your number 2, I haven't looked into it fully to provide an answer, but I think you'll probably have to parse the dsp file yourself.

HTH

Jignesh
GeneralWTL Question - Pointers to different dialogs Pin
David Stidolph25-Feb-02 11:07
David Stidolph25-Feb-02 11:07 
GeneralRe: WTL Question - Pointers to different dialogs Pin
Joaquín M López Muñoz25-Feb-02 11:26
Joaquín M López Muñoz25-Feb-02 11:26 
GeneralWorks ok in app but not in dll :( Pin
Muralia Dhar25-Feb-02 10:44
Muralia Dhar25-Feb-02 10:44 
GeneralRe: Works ok in app but not in dll :( Pin
Joaquín M López Muñoz25-Feb-02 11:08
Joaquín M López Muñoz25-Feb-02 11:08 
GeneralRe: Works ok in app but not in dll :( Pin
Muralia Dhar25-Feb-02 19:46
Muralia Dhar25-Feb-02 19:46 
GeneralRe: Works ok in app but not in dll :( Pin
Joaquín M López Muñoz25-Feb-02 20:16
Joaquín M López Muñoz25-Feb-02 20:16 
GeneralDamn Tray Notification Icon! Pin
25-Feb-02 9:22
suss25-Feb-02 9:22 
GeneralRe: Damn Tray Notification Icon! Pin
Roger Stewart25-Feb-02 11:25
professionalRoger Stewart25-Feb-02 11:25 
GeneralRe: Damn Tray Notification Icon! Pin
Nish Nishant25-Feb-02 14:47
sitebuilderNish Nishant25-Feb-02 14:47 
GeneralDatabase: mfc-odbc api getting column information Pin
25-Feb-02 8:29
suss25-Feb-02 8:29 
Questionhow do i use the "reinterpret_cast" operator? Pin
Pyropat25-Feb-02 8:13
Pyropat25-Feb-02 8:13 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Tim Deveaux25-Feb-02 8:34
Tim Deveaux25-Feb-02 8:34 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Paul M Watt25-Feb-02 9:30
mentorPaul M Watt25-Feb-02 9:30 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Nish Nishant25-Feb-02 16:19
sitebuilderNish Nishant25-Feb-02 16:19 
AnswerRe: how do i use the "reinterpret_cast" operator? Pin
Sef Tarbell27-Feb-02 4:59
Sef Tarbell27-Feb-02 4:59 
GeneralRe: (corrected)how do i use the "reinterpret_cast" operator? Pin
Sef Tarbell27-Feb-02 5:01
Sef Tarbell27-Feb-02 5:01 
GeneralDirectX or OpenGL Pin
Nnamdi Onyeyiri25-Feb-02 7:54
Nnamdi Onyeyiri25-Feb-02 7:54 

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.