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

C / C++ / MFC

 
GeneralRe: VT_CY and VT_DECIMAL Pin
Mike Dimmick6-Oct-03 23:44
Mike Dimmick6-Oct-03 23:44 
GeneralRe: VT_CY and VT_DECIMAL Pin
Rome Singh7-Oct-03 0:40
Rome Singh7-Oct-03 0:40 
GeneralRe: VT_CY and VT_DECIMAL Pin
Mike Dimmick7-Oct-03 0:45
Mike Dimmick7-Oct-03 0:45 
GeneralRe: VT_CY and VT_DECIMAL Pin
Rome Singh7-Oct-03 0:49
Rome Singh7-Oct-03 0:49 
GeneralRe: VT_CY and VT_DECIMAL Pin
Rome Singh7-Oct-03 3:09
Rome Singh7-Oct-03 3:09 
GeneralRe: VT_CY and VT_DECIMAL Pin
Rome Singh7-Oct-03 2:49
Rome Singh7-Oct-03 2:49 
GeneralAutomatic dllname change in VC++ ide Pin
xylan6-Oct-03 15:03
xylan6-Oct-03 15:03 
GeneralRe: Automatic dllname change in VC++ ide Pin
FearlessBurner7-Oct-03 0:29
FearlessBurner7-Oct-03 0:29 
There are two ways (that I know of) of using a VBScript macro to do this:

a) Use the script to directly access the workspace Developer Studio objects and make the necessary changes. or

b) Use the script to modify the workspace file as a text file. This is the method that I normally use because it is then easy to apply search and replace operation to change project names, output names etc in text format. You can then get the macro to load up the workspace/project as usual. As an example, try this:

<br />
	ExecuteCommand "SaveCloseAllThings"<br />
	Documents.Open "myworkspace.dsw", "Text"<br />
	ActiveDocument.Selection.StartOfDocument<br />
	blnFound = ActiveDocument.Selection.FindText("ProjectName")<br />
	If blnFound = false Then<br />
	   ActiveDocument.ReplaceText "ProjectName", "NewProjectName"<br />
	End If<br />
	ActiveDocument.Save<br />
	Documents.Open "myworkspace.dsw", "Auto"<br />


whichs opens myworkspace.dsw, finds all instances of "ProjectName" and replaces them with "NewProjectName", saves the changes, and then loads up the file as a normal workspace. The initial "SaveCloseAllThings" has only been included to make sure that all active windows are closed.
GeneralMaple !!! Help !!! Pin
tankhoasp6-Oct-03 15:02
tankhoasp6-Oct-03 15:02 
GeneralRe: Maple !!! Help !!! Pin
JussiL7-Oct-03 3:29
JussiL7-Oct-03 3:29 
GeneralRe: Maple !!! Help !!! Pin
tankhoasp7-Oct-03 5:58
tankhoasp7-Oct-03 5:58 
GeneralDirectory Selection Pin
PhotoMike6-Oct-03 11:44
PhotoMike6-Oct-03 11:44 
GeneralRe: Directory Selection Pin
Rickard Andersson206-Oct-03 12:04
Rickard Andersson206-Oct-03 12:04 
GeneralCRichEditCtrl and Drawing Fonts Pin
Larry J. Siddens6-Oct-03 10:56
Larry J. Siddens6-Oct-03 10:56 
GeneralRe: CRichEditCtrl and Drawing Fonts Pin
Larry J. Siddens7-Oct-03 3:46
Larry J. Siddens7-Oct-03 3:46 
GeneralI can cause VC6's compiler to fail in... Pin
Ravi Bhavnani6-Oct-03 9:27
professionalRavi Bhavnani6-Oct-03 9:27 
GeneralRe: I can cause VC6's compiler to fail in... Pin
Abin6-Oct-03 14:13
Abin6-Oct-03 14:13 
GeneralRe: I can cause VC6's compiler to fail in... Pin
Ravi Bhavnani6-Oct-03 14:50
professionalRavi Bhavnani6-Oct-03 14:50 
GeneralRe: I can cause VC6's compiler to fail in... Pin
Abin6-Oct-03 16:20
Abin6-Oct-03 16:20 
GeneralRe: I can cause VC6's compiler to fail in... Pin
Chris Richardson6-Oct-03 17:04
Chris Richardson6-Oct-03 17:04 
GeneralC1010 Error Pin
Mad Docs Hairy Belly6-Oct-03 9:14
Mad Docs Hairy Belly6-Oct-03 9:14 
GeneralRe: C1010 Error Pin
David Crow6-Oct-03 10:45
David Crow6-Oct-03 10:45 
GeneralRe: C1010 Error Pin
Mad Docs Hairy Belly7-Oct-03 11:11
Mad Docs Hairy Belly7-Oct-03 11:11 
GeneralRe: C1010 Error Pin
David Crow8-Oct-03 2:34
David Crow8-Oct-03 2:34 
GeneralCEdit control scroll bar problem Pin
haritadala6-Oct-03 8:53
haritadala6-Oct-03 8:53 

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.