|
|
Hello everyone,
I am migrating my C++ COM server to managed code (C# COM server). I am using the same client to use the same COM class in COM server. The C++ version COM server works properly, but when using the C# COM server, there is a strange error indicating dll is not installed correctly (data link error).
I have tried to delete the DLL at the same time to test whether the DLL could be found correctly when the client is invoking the DLL, and Windows system reports error message indicating that the DLL is in use -- so I think the DLL should be able to found. Why COM client will report the strange error indicating the DLL is not installed properly (C# COM server)?
Any check list to solve this issue?
thanks in advance,
George
|
|
|
|
|
Have you registered the dll using the RegAsm tool in the .NET SDK?
|
|
|
|
|
Hi Judah,
I think if we select "Register for COM" option, then it should be registered automatically in Windows registry? So, no need to run regasm again?
regards,
George
|
|
|
|
|
Hi All,
Wondering if someone could explain to me how to send a drop event to a different application. The Drag and Drop events allow an application to move objects around in a drag and drop event, but how do you get an application to send a drop event with the list of file(s) to a different application.
My application is .NET 2.0 compatible, the other application is written in delphi. The delphi application is a large complex application and is used throughout the company, the new application has to be able to process a file, convert it to a different file, save it, and then send a drop command with the new filepath to the delphi application which has drag/drop events enabled on its main window.
I'm needing something that will allow me to give it a handle of a window, a list of files and a structure.
Oh last but not least I'm coding in C#.
|
|
|
|
|
Not sure, but this sounds like you need to interop to the raw API call -
[DllImport("user32.dll", CharSet=CharSet.Auto)]
public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam,lParam);
You can then get the handle of your Dephi window, and send whatever message you like. YOu need to look up the actual message format and structure for WM_DROPFILES message (that was a pure guess at the message name)
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
how can i copy files and folders from a specific location on my computer to a remote pc on my network using c# code and a window form based application
|
|
|
|
|
Make your subject be specific.
don't post it as "urgent Help Required".
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
|
waqas_2k wrote: Re: Urgent Help Required
If it's urgent why are you asking here instead of paying someone to help?
You want a couple of FolderBrowserDialog's and the System.IO namespace.
|
|
|
|
|
originSH wrote: paying someone to help
|
|
|
|
|
Please read the forum guidelines. You have already been mocked once for using 'urgent' in your message titles. So now you are CROSS-POSTING your urgent messages.
READ THE FORUM GUIDELINES.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Every time you do this, I think of the Key Stone Cops come flyin' around the corner, siren blazing, with a bunch of guys, who look like Charlie Chaplin, hanging off the sides of the car!
|
|
|
|
|
Dave Kreskowiak wrote: hanging off the sides of the car
with powerful rifles also?
|
|
|
|
|
Next I plan on taking down every reporter who starts their segment with "Well,"
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
Uh oh! Now I'm going to have to watch how I start some of my replies!
|
|
|
|
|
Well, some of them.
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
|
|
|
|
|
I don't mind the occasional 'well' as I do it myself. But if you watch for it on CNN, your local news, etc. almost every reporter they cut to starts off with "Well Lou/Peter/Katie/Bill" yada yada. Once I started noticing it started to drive me crazy. That and people who do not use well/good correctly or use borrow/lend correctly.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
waqas_2k wrote: Urgent Help Required
Wrong subject. Please read Forum Posting Guidelines first.
|
|
|
|
|
Open filestream, save filestream, close filestream. And no, I'm not going to write it for you.
|
|
|
|
|
How rude putting urgent in your subject line.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi all,
I am creating an website using AJAX, When the user close the browser by clicking the X button in right top, i want to call an javascript function, this function calls an asp.net page using AJAX, In that asp.net page i am doing some database related operations.
My doubt is when i close the browser the asp.net page is called and closed suddenly, I cant able to call the method in that asp.net page.
How to solve this problem, plz any one suggest me.
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
I want to export my gridview data to excel, want to place each column of a row in gridview on to the text box by placing text box on the excel cell.
Thanks!
KU
|
|
|
|
|
string seth;
bool anm, beh, st, en;
StreamReader a = new StreamReader(".\\Format.cfg");
while (a.Peek != -1)
{
seth = a.ReadLine;
if (seth.Trim.Length != 0)
{
if (seth.Trim = "ABC")
{
anm = true;
}
else if (seth.Trim = "XYZ")
{
st = true;
}
}
}
these codes look pretty but have 5 errors
1.Operator '!=' cannot be applied to operands of type 'method group' and 'int'
2.Cannot convert method group 'ReadLine' to non-delegate type 'string'. Did you intend to invoke the method?
3.'string.Trim(params char[])' is a 'method', which is not valid in the given context
4.Cannot assign to 'Trim' because it is a 'method group'
5.Cannot assign to 'Trim' because it is a 'method group'
i tried lots of times and did as i could
i hope here is someone who can solve it
thanks
|
|
|
|
|
The bold items are the one's I've added/changed.
string seth;
bool anm, beh, st, en;
StreamReader a = new StreamReader(".\\Format.cfg");
while (a.Peek() != -1)
{
seth = a.ReadLine();
if (seth.Trim().Length != 0)
{
if (seth.Trim() == "ABC")
{
anm = true;
}
else if (seth.Trim() == "XYZ")
{
st = true;
}
}
}
|
|
|
|