Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGlobal variable in MFC Pin
22-Feb-02 21:52
suss22-Feb-02 21:52 
GeneralRe: Global variable in MFC Pin
Paul M Watt22-Feb-02 22:06
mentorPaul M Watt22-Feb-02 22:06 
GeneralRe: Global variable in MFC Pin
Nish Nishant22-Feb-02 22:22
sitebuilderNish Nishant22-Feb-02 22:22 
GeneralRe: Global variable in MFC Pin
23-Feb-02 0:10
suss23-Feb-02 0:10 
GeneralOnPaint Handling... Pin
John Cruz22-Feb-02 18:30
John Cruz22-Feb-02 18:30 
GeneralRe: OnPaint Handling... Pin
Paul M Watt22-Feb-02 22:15
mentorPaul M Watt22-Feb-02 22:15 
GeneralRe: OnPaint Handling... Pin
John Cruz23-Feb-02 2:39
John Cruz23-Feb-02 2:39 
GeneralVC6 Macros: Object model shortcomings & bugs Pin
rseidl22-Feb-02 18:01
rseidl22-Feb-02 18:01 
I am trying to write some scripts in VB for use in VC6 and have run into two problems (what only TWO ? Poke tongue | ;-P )

Config
--------------------------------
XP Home, MSVC6, Windows Script Debugger, Windows Script 5.5
Service Pack 5 for VC6 (before that it would even crash the IDE when you tried accessing files. Bah !)

Problems
--------------------------------
1. Object Required: 'WScript'

This code, run as a VC macro gives the above error in the second line:

Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad " & WScript.ScriptFullName

Saved in a text.vbs and double clicked on the same computer, it works fine

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 ?

2. The object model is half-baked
I don't know who designed the object model for the add ins but they must have stopped right in the middle of it ! You can't iterate over the files in a project ? Or set attributes per file ?
Is there a workaround for this half-assed job ? Has someone built a C++ addin that exposes this extra functionality to the scripting engine somehow ? Or do I really have to parse through dsp files (please no)

Your help is much appreciated - I just found this site tonight after googling for answers to the above - it is awesome !

Thanks in advance
Robert

GeneralRe: VC6 Macros: Object model shortcomings & bugs Pin
rseidl24-Feb-02 21:05
rseidl24-Feb-02 21:05 
GeneralReplacing one CFormView derived view with another Pin
Aaron Schaefer22-Feb-02 17:20
Aaron Schaefer22-Feb-02 17:20 
GeneralRe: Replacing one CFormView derived view with another Pin
Mazdak22-Feb-02 22:01
Mazdak22-Feb-02 22:01 
GeneralSelectObject(HBITMAP) problem. Pin
22-Feb-02 16:49
suss22-Feb-02 16:49 
GeneralRe: SelectObject(HBITMAP) problem. Pin
Paul M Watt22-Feb-02 18:21
mentorPaul M Watt22-Feb-02 18:21 
GeneralRe: SelectObject(HBITMAP) problem. Pin
23-Feb-02 12:27
suss23-Feb-02 12:27 
GeneralRe: SelectObject(HBITMAP) problem. Pin
Paul M Watt23-Feb-02 16:07
mentorPaul M Watt23-Feb-02 16:07 
GeneralProgrammatically Send a menu command Pin
Aaron Schaefer22-Feb-02 16:18
Aaron Schaefer22-Feb-02 16:18 
GeneralRe: Programmatically Send a menu command Pin
Michael Dunn22-Feb-02 16:26
sitebuilderMichael Dunn22-Feb-02 16:26 
GeneralRe: Programmatically Send a menu command Pin
22-Feb-02 16:32
suss22-Feb-02 16:32 
Generalwriting to a file Pin
Steve L.22-Feb-02 14:32
Steve L.22-Feb-02 14:32 
GeneralRe: writing to a file Pin
22-Feb-02 16:29
suss22-Feb-02 16:29 
QuestionResource ID for standard "drop" cursor? Pin
David Fleming22-Feb-02 12:14
David Fleming22-Feb-02 12:14 
AnswerRe: Resource ID for standard "drop" cursor? Pin
Henry Jacobs22-Feb-02 12:58
Henry Jacobs22-Feb-02 12:58 
GeneralAnother MFC Doc/View Question Pin
Aaron Schaefer22-Feb-02 11:22
Aaron Schaefer22-Feb-02 11:22 
GeneralRe: Another MFC Doc/View Question Pin
Michael Dunn22-Feb-02 13:11
sitebuilderMichael Dunn22-Feb-02 13:11 
GeneralMoving objects in GDI+ Pin
Mazdak22-Feb-02 10:57
Mazdak22-Feb-02 10:57 

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.