|
Paul Riley wrote:
MS have been saying in MSDN for years that Profile API functions are included for compatibility with Win 3.X and yet people still use them.
Well there you go. Now, since it's a lot harder, people won't use them . And for those poor fools who really need them, there's always DllImport .
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
It looks like DirectShow 9 lacks support for managed code. I've seen people talking about creating COM wrappers and interop to support this.
I have glances at the DirectX.NET articles here at CodeProject, but it doesn't cover what I am mainly interested in: DirectShow Editing Services (DES). The Dexter library also lacks this.
I guess some of you have already created this stuff, so my question is: Where can I find this kind of libraries?
-Øyvind
|
|
|
|
|
In the past, I have been working with DirectShow, and from what I know :
- DirectShow Editing services is available since DirectX 8.1. May be release 9 adds a few interfaces, but that's not a requirement.
- DirectX objects are COM objects, and embed a tlb. For instance, DirectShow's type-library is embedded in quartz.dll. Who prevents you from calling this "tlbimp.exe quartz.dll" to get the interop library ? I don't know why you should install DirectX 9 just for that purpose.
Of course, once you have that interop type library, you need to rewrite the samples from C++ to C# or other .NET languages. That's probably what DirectX9 provides you for free (but again, nothing really required).
|
|
|
|
|
.S.Rod. wrote:
DirectX objects are COM objects, and embed a tlb. For instance, DirectShow's type-library is embedded in quartz.dll. Who prevents you from calling this "tlbimp.exe quartz.dll" to get the interop library?
Of course you can. What I meant was that I was hoping that DirectShow 9 would fully be supported with managed code. But it didn't.
I don't think that the DirectShow Editing Services is covered in quartz.dll. Am I right?
I guess someone already has converted the DirectShow Editing Services interfaces from IDL to C#. Where can I find this?
As you may guess I am interested in all information I can get in how to use DirectShow Editing Services from C#.
Thanks for any help.
-Øyvind
|
|
|
|
|
|
Why don't one of our experts here write an article to give us a comparison between all databases and tell us the advantages and disadvantages of every one for personal any corporate applications. I have not found such article or research anywhere.
Databases to Study:
MS Access
SQL Server
Desktop SQL Server with MSDE
Sybase Anywhere
mySQL
Oracle
SAP DB
Jassim Rahma
|
|
|
|
|
You might try this link.
http://www-3.ibm.com/software/data/pubs/pdfs/bloor.pdf[^]
I'm not suggesting it isn't biased (lets face it, a database vendor paid for it), but it does have a wide variety of information in it. At 150 odd pages, its a hefty read. (Perhaps this is why no-one takes up the challenge - a comparison of databases is not a trivial thing).
-Adrian
|
|
|
|
|
I write one dll called graphicobject.dllto Serialize store my Graphics object in order to reuse these object.
After I modified the graphicobject.dll code and complie it.
All the data I used the previous graphicobject.dll to Serialize can not open
again.
How can I do to make the previous Serialized data(used the previous graphicobject.dll) can be De-Serialize in new graphicobject.dll?
Thanks!
|
|
|
|
|
This is one of the things that I really hate about serialization. If you change the structure of the stored object you cannot use the new library to open the old file. I usually include backwards compatibility in my programs. And add version upgrade utilities, features.
If you need to get the data salvaged you will need to use the old version of the library.
|
|
|
|
|
Hello everyone,
I need to call a C++ .NET project from a C# project. Is it possible and if yes, how to go about doing it? Your help will be greatly appreciated.
Thanks alot!
min
|
|
|
|
|
What do you mean by calling C++ NET project?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I am using the Visual .NET studio to do the system .. I got this C++ project and C# project in the visual studio. I need to call the classes written in the c++ project from the C# project.
thanks
min
|
|
|
|
|
shimin wrote:
I need to call the classes written in the c++ project from the C# project.
Another chance for me to push my latest article (this actually does what you are asking):
Cross Language Web Service Implementation[^]
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
I try looking thru your article but i don really understand. I am sorry, but I am just a beginner, i hope you can enlightened me.. Thanks
min
|
|
|
|
|
Is your C++ project written in MC++ or pure C++? If in MC++, then you do not have any problem, just compile the MC++ project into assembly and use it like any other .NET dll.
Make sure your MC++ classes are marked as "public _gc..."
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
the C++ is visual C++ , can i still do what you say?
and how to compilt the project into an assembly?
thanks alot for your help
min
|
|
|
|
|
You will have to study the .NET system a bit more. Visual C++ supports the normal C++ and the Managed Extensions to C++ (MC++). The MC++ is designed for .NET programming and the normal C++ for other systems.
You cannot call the normal C++ from C# or VB.NET. But you can call MC++ classes from C# or VB.NET.
Again, the question is which are you using C++ or MC++?
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
I am really sorry that I know this much only. How do I know whether it is MC++ or C++? Cos I got this program from a Phd student and he is not available for me to query.
thanks
min
|
|
|
|
|
MC++ classes are marked with "__gc". Any C++ class which is not marked with "__gc" are normal C++ classes.
A simple MC++ class is as follows:
public __gc Test
{
Test() {}
};
It is therefore very easy to identify the MC++ classes.
Best regards,
Paul.
Jesus Christ is LOVE! Please tell somebody.
|
|
|
|
|
How could one proceed to get the real width of a DataGrid? What I mean by the real width is the width of the actual DataGrid's area, i.e. the width that one would need to resize it to to stop a scrollbar from appearing—not the width I've set it to, which can be any arbitrary value.
I tried wierd techniques like adding (after experimentation) 39 to the width of the columns, but this comes up just short in certain circumstances that I really don't see the reason for—for example, when I have resized the DataGrid myself to force scrollbars onto it.
But there must be a supported, logical way. Only problem is, I can't find it!
Thanks in advance...
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
Domenic [Geekn] wrote:
I tried wierd techniques like adding (after experimentation) 39 to the width of the columns, but this comes up just short in certain circumstances that I really don't see the reason for—for example, when I have resized the DataGrid myself to force scrollbars onto it.
I haven't actually done this in code, however the height of the thumb in the scrollbar is/should be proportional to the total height of what you are displaying. What I am saying is that if you have say "4" sets of data in height to display then the height of the thumb should only be about 1/4 of the total. HTH
Nick Parker
You see the Standards change. - Fellow co-worker
|
|
|
|
|
That doesn't quite work though... my real goal is to resize the window to the "real" width of the DataGrid . So the scrollbar approach won't work if the window is bigger than the DataGrid , only if it's smaller and a scrollbar is showing. And besides, it sounds rather hackish and imperfect...
Or perhaps I'm not understanding?
Thanks for you help
-Domenic Denicola- [CPUA 0x1337]
“I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”
|
|
|
|
|
hi to ya'll..want to ask a ques..ok lets say i have an Linux operating system and i want to write a configuration file into the system that can read the data entered by the user(data enter by user is done using VB, VB is used to create the interface and then vbscript is used to generate a text file. The text file contains all info entered by the user. This text file is then sent to the Linux OS, and a configuration file in the os is used to validate the info entered).Ok, my ques is what language am i going to use, and how am i going to do it?
Nash Hon
|
|
|
|
|
How are you getting the data sent to Linux?
How often is it going to get sent?
What programming languages can you program in?
For myself, I know PHP and Perl, which generally do admirably for small jobs which are not long running. However, PHP requires a web server, and Perl requires a fairly significant runtime loaded, so it can be a pain. C or C++ with the SOAP libraries are also an option. I wouldn't go with Java simply because the java implementation on Linux has reliability issues (in my experience, which is limited since I had other options rather than Linux open to me, so I never pursued my issues).
-Adrian
|
|
|
|
|
i written a reply to ur email..pls reply me as soon as possible...thanks
Nash Hon
|
|
|
|