|
Have you looked on Google or MSDN? It's the ADO.NET data provider used to communicate with a Microsoft SQL Server database engine.
|
|
|
|
|
lankaudaranga wrote: c#
Gosh! That's an excellent subject for a post in the C# forum. I would never have guessed that the post might possibly have anything at all to do with C#.
|
|
|
|
|
Nice.
|
|
|
|
|
Whyis it that almost every incorrectly placed, wrong titled, and ridiclous question comes with "Location India" in the profile?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
American companies should use these forums as a case study to forecast what things will be like before they convince themselves that outsourcing is such a great idea!
|
|
|
|
|
They should do that, but it will hurt us american developers too. They will see what we do here at CP during the "Research time" that will bill them for
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
I have two assemblies which both contain a definition for a specific interface, unfortunately these definitions differ in that some of the function signatures require different type like:
SomeFunction(IntPtr param1, int param2);
and
SomeFunction(MyClass param1, MyEnum param2);
(Obviously not the real function and class names)
When I try to bind to the interface from the other assembly I get an InvalidCastException even though they are both defined with the same GUID.
Is there any way I can get this to work without changing the signatures as this causes a lot of issues in the rest of the project (Both parts not mine BTW).
Thanks.
|
|
|
|
|
Have you tried casting to the required type?
I get all the news I need from the weather report - Paul Simon (from "The Only Living Boy in New York")
|
|
|
|
|
So you have an interface that looks like this:
public interface IMyFunctions
{
SomeFunction(IntPtr param1, int param2);
SomeFunction(MyClass param1, MyEnum param2);
} which is defined in assembly Interfaces.dll?
In some other assembly you have a class that looks like
public class SomeClass : IMyFunction
{
SomeFunction(IntPtr param1, int param2) { ... };
SomeFunction(MyClass param1, MyEnum param2) { ... };
} Assuming that the above is reasonably correct to your implementation, you get an InvalidCastException when you try to do what?
What do you mean "they are defined with the same GUID"? There are no GUIDs that you can set that have any kind of impact on the compiler and runtime behavior.
Have you stepped through the code with a debugger attached to see where the exception is actually ocurring? That should give you a better idea of what is going wrong.
|
|
|
|
|
I should have been more clear. The interface is IShellFolder, it is defined in both assemblies as a ComImport
[ComImport, Guid("000214E6-0000-0000-C000-000000000046"),<br />
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
The problem is the the signatures are different, for example:
<br />
int BindToObject(IntPtr pidl, [In] IntPtr pbc, [In] ref Guid riid, [Out] out IntPtr ppv);<br />
and
<br />
int BindToObject(IntPtr pidl, [In] IntPtr pbc, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out IShellFolder ppv);<br />
When I call IShellFolder.BindToObject on from one assembly to the other I get a valid IntPtr but when I cast it using Marshal.GetObjectForIUnknown I get an error saying "Specified cast is not valid"
|
|
|
|
|
Hi all,
I would like to have a control that can be binded either to *.Jpg for a picture or *.mpeg for a video content.
Can you please help me get which control i have to use to accopmlish this task?
Is there any control on the default microsoft Toolbox?
Thanks very much.
-- modified at 9:39 Wednesday 15th August, 2007
|
|
|
|
|
You can use the WebBrowser control which can display pictures natively or embed WMP in the HTML to play video.
|
|
|
|
|
Thank you very much for your time.
Sorry can i get this control on the default C sharp or Asp.net Developent toolbox?
If not where can i find it?How would i include it in to my page?
I am using C sharp and Asp.net for reporting application.
Thanks for you time.
|
|
|
|
|
The WebBrowser control is for the Windows Forms toolkit (e.g. C# desktop app development). I don't know ASP.NET well enough to tell you whether there's such a control. Probably not. My guess is you could simply have some logic that created an <img> tag for images, and otherwise used Flash or Windows Media Player for video.
|
|
|
|
|
Thanks very much once again,
How will i get the Window Media player in to the toolbox?
sorry i havent used it before?
Can you please get me the steps in getting the media player on to My ASP page?
Thanks
|
|
|
|
|
This question is better posed in the ASP.NET message board.
Phil
|
|
|
|
|
|
how to save , edit,querry a database using C# toolbar
|
|
|
|
|
What's C# toolbar? Is this something you designed?
|
|
|
|
|
hi all
how i can convert the language (English to Arabic) When i Leave the TextBox1 to TextBox2 The Convert just in text language as
TextBox1 is write in English language and the TextBox2 is Write by Arabic Language
thanks for all body hellp me
Thaer
|
|
|
|
|
First you will need to catch textbox2 enter event. In that event you can change input language. Then set input language using InputLanguage Class
|
|
|
|
|
thanks Mr Giorgi Dalakishvili
but your answer is not Complete my Quesion
Pleas if you have Code To ny Quesion Give me it
thanks Mr
Thaer
|
|
|
|
|
First, you have asked this question before. Second, this forum is for people who are having issues with existing code. Asking someone to just hand over the code so you don't have to work on it is considered RUDE.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
No one is going to give you complete code here. I gave you directions and you can explore them. If you are stuck at a specific point please say so and I'll be happy to help you
|
|
|
|
|
do you want to enter english in tb1 and enter arabic in tb2, or enter english in tb1 and have it translated into arabic and displayed in tb2? The existing answer will let you do the former, the latter will require buying 3rd party translation software. I have no recommendation for this.
--
You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
|
|
|
|