Hardi
asked on
Including a DLL in VS2005 solution
In my VS2005 solution, I was using someone else's project (I think it's a C++ project, I use c# myself).
I had to deploy his project to the PDA so that my solution can call his function.
But this makes deployment complicated.
So I tried including the dll produced by his project (instead of including the project) in my solution.
I set the dll Build Action property to Embedded Resource.
It compiles ok, but at runtime when I call the function, it throws an exception: Class not registered.
What is the best way of including this project/dll created by someone else?
I only have 4 hours to solve this.
Thanks in advance :-)
I had to deploy his project to the PDA so that my solution can call his function.
But this makes deployment complicated.
So I tried including the dll produced by his project (instead of including the project) in my solution.
I set the dll Build Action property to Embedded Resource.
It compiles ok, but at runtime when I call the function, it throws an exception: Class not registered.
What is the best way of including this project/dll created by someone else?
I only have 4 hours to solve this.
Thanks in advance :-)
add the dlll as a reference in the Project -> Add Reference option.
ASKER
yea thats what i did
but somehow i had to deploy this project manually from visual studio to the PDA to get it working
but somehow i had to deploy this project manually from visual studio to the PDA to get it working
don't declare the library as Embedded, just as Content
ASKER
i think that was the default, didn't make any difference
ASKER
I'm sorry for the unclear question... +_+
Let me rephrase the problem:
I have a project.
I am using another project created by someone else, call this project B.
I include B.dll in my project, as I need to call FunctionB() from project B.
After I deployed my project successfully, at runtime when calling FunctionB() it throws exception "Class not registered"
To solve this problem, I have to open project B in Visual Studio, right click the project, click Deploy -> This deploys project B to the PDA.
After this my project would run smoothly in the PDA.
The problem is... for every new PDA, I have to open Visual Studio, open project B and click Deploy to that PDA.
Any solution to make things easier?
Thank you
Let me rephrase the problem:
I have a project.
I am using another project created by someone else, call this project B.
I include B.dll in my project, as I need to call FunctionB() from project B.
After I deployed my project successfully, at runtime when calling FunctionB() it throws exception "Class not registered"
To solve this problem, I have to open project B in Visual Studio, right click the project, click Deploy -> This deploys project B to the PDA.
After this my project would run smoothly in the PDA.
The problem is... for every new PDA, I have to open Visual Studio, open project B and click Deploy to that PDA.
Any solution to make things easier?
Thank you
ASKER
I tried making a CAB file for project B, so I can deploy to PDA without using Visual Studio.
But somehow it failed and couldn't produce the CAB file.
I'm not sure about this stuff, I have only successfully made 1 CAB file (installer) for another project in my life.
BRB
But somehow it failed and couldn't produce the CAB file.
I'm not sure about this stuff, I have only successfully made 1 CAB file (installer) for another project in my life.
BRB
does your dll contains a COM object, I think it is a problem of COM class registration.
ASKER
it might... i don't really understand this project it's a C++ project.
What should I do if its got a COM?
What should I do if its got a COM?
you have to register it when donwloaded to the Pocket PC. Maybe you can ask the DLL author about this detail.
ASKER
The problem is he is gone. Otherwise I wouldn't need to post question here ^^
Anyway the time's up for me. I'll be back in January. I don't know what I should do with the points?
Thank you jaime for your assistance.
Perhaps could you perhaps tell me how to register it without having to use VS?
Anyway the time's up for me. I'll be back in January. I don't know what I should do with the points?
Thank you jaime for your assistance.
Perhaps could you perhaps tell me how to register it without having to use VS?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
alright cool i'll just accept it thank you