Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rename VCX. Any problems doing this?
Message
From
12/02/1999 13:59:01
 
 
To
12/02/1999 13:41:16
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00186661
Message ID:
00187120
Views:
24
>>>>I would like to rename a VCX in one of my projects in VFP6. Can I just rename the file and all references to it (in forms etc..) will be updated? Anything to watch out for?
>>>

>>>
>>>You can do it only you HACK everything involve on that VCX...
>>>
>>>* After Rename
>>>Use myNewVcx.vcx
>>>Replace All ClassLoc with STRTRAN(ClassLoc, "myOldVcx", "myNewVcx")
>>>use
>>>Use myForm.scx && For All Forms reference that vcx class..
>>>Replace All ClassLoc with STRTRAN(ClassLoc, "myOldVcx", "myNewVcx")
>>>use
>>>
>>>

>>>
>>>Reason: there will be a Class, ClassLoc to carry the information of "Class Definition", once you create an instance of vcx class, you can see "Class", "ClassLoc" value will be the location with path on VCX location!
>>>
>>>So, take care all ClassLoc involved will do~~ ^_^;
>>
>>Justok,
>>
>>Your tagline says "Five bytes can reboot computer"... which is precisely something I need to do... could you give me more details on how to do this? How do you "send" the five bytes? In a .prg? In a .bat?
>>
>>Thanks
>
>I have no idea if Justok's reboot command works, but if it does it probably needs to be placed in a exe or com file with a hex editor.

You can use the DEBUG.EXE program, it still comes with Windows (at least 95/98). It's been a long time, so I don't remember quite how (I think you have to start at address 100, set up some register values for length, etc, and use the DEBUG N command to name/save it), but you can create a .COM type program file using just DEBUG. Note this is not a COM object, but .COM executable type file for the OS.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform