G
Guest
Hi,
I am pretty new to XP Embedded. My IMAPI application (uses Microsoft IMAPI
for CD writing) ran well in Windows XP Professional and data written to CDs
without problem. However, when I ran it on my newly created windows XP
Embedded (SP2, not Feature Pack 2007) in the same machine but different
partitions, it didn't work. The call
pIStorage->CreateStorage(wVolumeName, STGM_READWRITE|STGM_SHARE_EXCLUSIVE,
0, 0, &pIVolumeStorage)
returns pIVolumeStorage as a null. As a result, I couldn't create a folder
in the CD and I couldn't copy files to the CD. I have tried the following
things but they didn't work.
1) I have included Ole32.dll in "Program Files\System32" in the embedded
image, that is required by CreateStorage() in MSDN. It didn't work.
2) Then I manually registered Ole32.dll in my XP Embedded environment. The
registration succeeded but I still got a null pointer for pIVolumeStorage
when I ran my application. BTW, I could find IStorage in my registry.
3) Then I changed the IMAPI application folder to allow everyone "full
control". Still it didn't work.
I ran out of options, can anybody shed some light on this?
I am pretty new to XP Embedded. My IMAPI application (uses Microsoft IMAPI
for CD writing) ran well in Windows XP Professional and data written to CDs
without problem. However, when I ran it on my newly created windows XP
Embedded (SP2, not Feature Pack 2007) in the same machine but different
partitions, it didn't work. The call
pIStorage->CreateStorage(wVolumeName, STGM_READWRITE|STGM_SHARE_EXCLUSIVE,
0, 0, &pIVolumeStorage)
returns pIVolumeStorage as a null. As a result, I couldn't create a folder
in the CD and I couldn't copy files to the CD. I have tried the following
things but they didn't work.
1) I have included Ole32.dll in "Program Files\System32" in the embedded
image, that is required by CreateStorage() in MSDN. It didn't work.
2) Then I manually registered Ole32.dll in my XP Embedded environment. The
registration succeeded but I still got a null pointer for pIVolumeStorage
when I ran my application. BTW, I could find IStorage in my registry.
3) Then I changed the IMAPI application folder to allow everyone "full
control". Still it didn't work.
I ran out of options, can anybody shed some light on this?