embedded_msit,
I dont know whether i m going on right path of assigning resources.
Please read these links first:
http://msdn.microsoft.com/library/en-us/xpehelp/html/xehowhowtocomponentizeapplications.asp
http://msdn.microsoft.com/library/en-us/dnxpembed/html/customxpecomp.asp
We have an application 'pctvt' runs on .Net Framework. We created
a
component for this pctvt aplication. component name - pctvt1.1. This
Component contains all relavant files and dependencies are also
added. We
added this component to the target image and deployed it.
It displayed Login screen. when I clicked on submit buttton then
application gave following error..
************** Exception Text **************
System.TypeInitializationException: The type initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException (0x80040154): Class not
registered
Please analazy the project settings in VS that you used to build the
applicaiton. There should be the whole registration procedure
mentioned (unless you do that manually on the dev machine but then you
know what to do on XPe)
Here I thought that 'pctvt_new_ui.pctvtUI' file should be
registered by
FBA/DLL com registration.
An interesting conclusion

You should haven't guessed but rather
read about PE/COFF file format.
Also, it would help if you know what COM objects (especially in-process
objects).
You can get started here:
http://www.gamedev.net/reference/articles/article1313.asp (please note
a usual export functions you would
see from a COM object DLL implementation).
the above file is added as a resource for the
component(resources->FBA
DLL/COM registration--> in the path i ve specifed the path of
'pctvt_new_ui.pctvtUI' file).
Unfortunately, I know nothing about your application and files that
belong to the applicaiton (the files you built) so you would
need to find out all the required applicaiton components/files/registry
entries/dependencies by yourself.
--
Regards,
KM, BSquare Corp.
:
embedded_msit,
We should have asked this earlier but what type is the file
pctvt_new_ui.pctvtUI.resources?
What FBA resource you assinged to it?
KM
PS. You still didn't seem to understand what and how XPe/XPe
assignes drive letters. You should do some more reading on that.
However, it is likely irrelevant to your problem because of the
hardware setup you've got.
System is dual boot system
1.Windows XP resides on C:/
2.Windows XPe on D:/
No of HDD's - 1
No. of Partitions - 2
partition size - 20gb
format -NTFS
I made sure that the file to be registered is in this path
'Program Files\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources'
IN fBA log.txt errors are :
[FBACallEntryPoint]:LoadLibrary(D:\ProgramFiles\PCTVT\obj\Debug\pctvt_new_ui.pctvtUI.resources
(Error: 0xc1)
Regards,
Emedded_msit
:
Embedded,
I m manually copying all the files to D:/ . SO i m sure about
that D:/
drive.
Unfortunately this is not true, if you have read my article
(that Konstantin
gave you link on) you would know the reason why and how you can
preassign
volume letters from TD.
Please give us fba.log or tell us about how many HDD's do you
have and what
partitions types are on them with their sizes.
Regards,
Slobodan
in message
I m manually copying all the files to D:/ . SO i m sure about
that D:/
drive.
I have not checked FBAlog.txt . I ll go thru that link .
Could u plz show me how the path should look like in this
case( for the
given path).
ThanQ,
Embedded_msit
Here the prob
:
embedded_msit,
How are you sure that your XPe runtime is on D: drive? Hope
you checked
FBALog.txt or you checked that out at run time.
If it is still D:, the path would likely be something like
'D:\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources'. But you
obviously
better to use a proper environment variable like
%SystemDrive%.
Please also read this to get an understanding on how XP/XPe
assigns drive
letters:
http://msdn.microsoft.com/embedded/community/community/tips/xp/rtpartin/default.aspx
--
Regards,
KM, BSquare Corp.
My run-time is deployed on D:/( second partition) so i gave
that path..
can i place that file on C:/ and give environment path..
regards,
Embedded_msit
:
embedded_msit,
I created component for an application. I found that
some files in
that need
to be registerd during FBA . I added a resource FBA
COM/DLL
registration for
one file(here the file is
'pctvt_new_ui.pctvtUI.resources').
In the path of file location i ve mentioned path
--'D:\DriveE\comp\obj\Debug\pctvt_new_ui.pctvtUI.resources' .THis
is the
location of file on target system(same system but on
diff
partition(D:/)).
This is a wierd path. Are you sure the path is the exact
same when
XPe launched? (especially the DriveE folder makes me
think
you
are using the wrong path from dev.machine).
Please keep in mind that the path must be the one that
will be at run
time (XPe) but not the one you've got on the dev.machine.
On Run-time image i've included this component. While
using the
application
it is giving an error
System.TypeInitializationException: The type
initializer for
"pctvt_new_ui.pctvtUI" threw an exception. --->
System.Runtime.InteropServices.COMException
(0x80040154): Class not
registered
Certainly, the class was not registred. Check out
FBALog.txt file and
you should see the failed registration note there.
The reason - wrong path - see above.