can anyone exmplain me how to use lpOpenProjectFile and how to open a specified - main source code of project.

thx
Posted on 2002-01-08 11:14:05 by NEMO
Hi NEMO


Set the lpFile buffer to the path & filename of the project file you want to open and call lpOpenProjectFile. Note: A project must be open.

KetilO
Posted on 2002-01-08 12:03:32 by KetilO
thx KetilO, i've add a func to FlipCase addin. now it opens the main source when ever new project is opened.



.elseif uMsg==AIM_PROJECTOPENED
;Always return false
;hWin handle of mdi child window
;lParam pointer to ProjectFile
.DATA?
TempBuffer DB 1024 DUP (?)

.CODE
mov eax,[lpDStruct]
mov edx,(ADDINDATA ptr [eax]).lpProject
Invoke lstrcpy, ADDR TempBuffer, edx
Invoke lstrlen, ADDR TempBuffer
Lea Edx, TempBuffer
mov DWORD PTR [edx+eax-4], 4D53412Eh

;Open the file
mov eax,[lpDStruct]
mov edx,(ADDINDATA ptr [eax]).lpFile
invoke lstrcpy,edx,addr TempBuffer
mov eax,[lpPStruct]
mov eax,(ADDINPROCS ptr [eax]).lpOpenProjectFile
call eax
mov eax,[lpPStruct]



it works great
thx KetilO one more time!
cya
Posted on 2002-01-08 15:52:21 by NEMO
Hi NEMO

Great :alright:

Can I steal it?

KetilO
Posted on 2002-01-08 16:58:09 by KetilO
go ahead:alright:
Posted on 2002-01-09 02:13:55 by NEMO