Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# error Pin
AB777111-Jun-08 20:15
AB777111-Jun-08 20:15 
AnswerRe: C# error Pin
Guffa12-Jun-08 5:50
Guffa12-Jun-08 5:50 
QuestionRe: using HTTP as transportaion protocol in winodws application Pin
RameshwerE11-Jun-08 18:57
RameshwerE11-Jun-08 18:57 
QuestionConverting German characters like 'ß' using codepage 850 Pin
Tushar Mahajan11-Jun-08 18:40
Tushar Mahajan11-Jun-08 18:40 
AnswerRe: Converting German characters like 'ß' using codepage 850 Pin
Daniel Grunwald12-Jun-08 0:23
Daniel Grunwald12-Jun-08 0:23 
QuestionHow to debug in unmanaged COM in x64? Pin
RYU^^11-Jun-08 18:39
RYU^^11-Jun-08 18:39 
QuestionPST Pin
mohant$.net11-Jun-08 18:23
mohant$.net11-Jun-08 18:23 
QuestionClass Library Problems... Pin
Illegal Operation11-Jun-08 17:30
Illegal Operation11-Jun-08 17:30 
I am in a bit of a pickle. I need to write a windows application using Visual Studio 2005, I have an Accpac Financial System that has an API named XAPI.

What I did was that I will add this API as a reference and then insert the using namespace for the API, I have also added the namespace System.Runtime.InteropServices as this API works with an old COM component.

Now if I retrieve a value from the DB in the button_click event everything works. If I copy that code and put it in a method, say "public object Test()" and then reference the Test() in the button_click everything works.

Now I take that same code and copy that into a Class Library. I replace all the textboxes with property values as the textboxes cannot be accessed in the library. If I run the application I get a "Error HRESULT E_FAIL has been returned from a call to a COM component."

Can someone please help me with this?? I think it has something to do with the properties but I am not sure...

Thanks in advance!!

Illegal Operation

AnswerRe: Class Library Problems... Pin
S. Senthil Kumar11-Jun-08 18:25
S. Senthil Kumar11-Jun-08 18:25 
GeneralRe: Class Library Problems... Pin
Illegal Operation11-Jun-08 18:32
Illegal Operation11-Jun-08 18:32 
Questionstatic property Pin
George_George11-Jun-08 16:49
George_George11-Jun-08 16:49 
AnswerRe: static property Pin
N a v a n e e t h11-Jun-08 16:54
N a v a n e e t h11-Jun-08 16:54 
GeneralRe: static property Pin
George_George11-Jun-08 18:52
George_George11-Jun-08 18:52 
GeneralRe: static property Pin
User 665811-Jun-08 19:02
User 665811-Jun-08 19:02 
GeneralRe: static property Pin
George_George11-Jun-08 19:12
George_George11-Jun-08 19:12 
AnswerRe: static property Pin
Christian Graus11-Jun-08 17:24
protectorChristian Graus11-Jun-08 17:24 
GeneralRe: static property Pin
George_George11-Jun-08 18:53
George_George11-Jun-08 18:53 
AnswerRe: static property Pin
S. Senthil Kumar11-Jun-08 18:30
S. Senthil Kumar11-Jun-08 18:30 
GeneralRe: static property Pin
George_George11-Jun-08 18:54
George_George11-Jun-08 18:54 
AnswerRe: static property Pin
User 665811-Jun-08 18:34
User 665811-Jun-08 18:34 
GeneralRe: static property Pin
George_George11-Jun-08 18:54
George_George11-Jun-08 18:54 
Questionout variable Pin
George_George11-Jun-08 16:12
George_George11-Jun-08 16:12 
AnswerRe: out variable Pin
N a v a n e e t h11-Jun-08 16:42
N a v a n e e t h11-Jun-08 16:42 
GeneralRe: out variable Pin
George_George11-Jun-08 16:55
George_George11-Jun-08 16:55 
GeneralRe: out variable Pin
N a v a n e e t h11-Jun-08 16:59
N a v a n e e t h11-Jun-08 16:59 

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.