|
That is strange. If I include the lib-file i C++. It works!
I cannot find any dll file that should contain the source. If I only colud find that my problem would be resolved.
Do you have any ideas, who to find it???
|
|
|
|
|
Like I said, C/C++ use .lib files to link when you're compiling and linking your source. This resolves exports, their relative addresses, and maps them into your code. When executed, your app or library actually binds against the DLL. The .libs are only used during linking and only work in C/C++.
.NET is managed environment, managed by the Common Language Runtime. There is no such linking (at least, not in that way). They are two completely different environments.
I suggest you read-up on .NET at http://msdn.microsoft.com/netframework[^] and get an overview of what actually happens.
If you want more specific information on P/Invoke, see Consuming Unmanaged DLL Functions[^] in the .NET Framework SDK.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thanks for your answers and your time.
|
|
|
|
|
You actually P/Invoke using the .dll. A .lib is used only when linking your C/C++ compiled code.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
I want get printable area. I get them by call GetDeviceCaps. But I get the defalut printable and when I change paper size by System.Windows.Forms.PrintDialog, the printable don't modify. It still be the defalut printable area.How can I get the correct printable.
Thank you very much
|
|
|
|
|
The printable area of a document is entirely based on your implementation. If you only want a certain region to be printed, then only print that region in your event handler for the PrintDocument.PrintPage event.
If you're talking about margins, see the PageSettings.Margins property.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Thank you.
But I want to get the Printable area before the PrintDocument.PrintPage event.
|
|
|
|
|
Again, this is entirely up to your implementation. There is nothing that sets a printable area in the printing classes in the .NET FCL. You should keep a variable that defines the printable area and set it through whatever means you like.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
I want to dynamically allocate datagrids depending on the input. So I declared a datagrid array .But it is not working . Can I do this way?
I tried keeping a single datagrid .It is working. Later I changed it into array keeping a loop.Now it is not working.
Karteek
|
|
|
|
|
let me conform this. you want to dynamically create grid based on some values. am i right ?.
if not explain your problem little bit more
Sreejith S S Nair
|
|
|
|
|
Hi,
I will take the number as input from the user and display as many datagrids as the number is.They don't have any values for present.( Later he can select the values to be present in each datagrid.)
Karteek.
|
|
|
|
|
Instead of using different DataGrid s based on the input, use the DataGrid.TableStyles property to define different table styles with explicit DataGridColumnStyle s. That's what it's there for. See the documentation for the DataGrid.TableStyles property for more information and an example.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
The question isn't how do I split it into binary chunks which are unplayable but rather, "How do I split it into multiple playable .avi files?"
What I'm actually trying to accomplish is to cut a section out of an avi and have a shortened version which is playable.
I also need this process to be fast. The avi's are in RLE format and their audio is PCM (if that helps).
I also do not need 3rd party applications to do this it must be done within my app (even if I have to kluge a commandline to do it for me).
Also, importantly, I need to be able to tell it from what point to what point to cut out...though that seems obvious to me.
Thanks in advance for your help, you all are excellent!
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
|
|
Hehe, I searched for everything BUT AVI.
split avi
cut avi
edit avi
just not avi. I figured I'd just get a bunch of "how to show an avi on your form" type results '
Thanks!
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
Hmm, not that helpful to me. Though admitedly I am a sad little C# newb
HOWEVER, I used one of my valuable "Get the answer from a Microsoft dev" points and was given a C++ sample which does EVERYTHING and more that I need and quickly.
The code (and much more) can be found on MS MSDN Here.
You have to download about 130 or so meg of a huge file and then look search inside the file for "AVIedit."
I hope this is helpful to some of you. I have the extracted source which zipped is only 36k so email me if you would rather not download the massive file.
--Tony Archer
"I can build it good, fast and cheap. Pick any two."
|
|
|
|
|
You mean an article that tells you what APIs to P/Invoke in order to split an AVI into frames when you want to split an AVI into frames isn't helpful? Hmm, interesting.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Can anyone tell me if there is a difference between "String" vs "string" in C#?
"string" comes up as a keyword in VS.NET.
"String" does not.
Just wondering.
Thanks.
|
|
|
|
|
They are identical (aliases). So are Object and object as well as Decimal and decimal and a few others.
Ian Mariano - Bliki | Blog
"We are all wave equations in the information matrix of the universe" - me
|
|
|
|
|
|
hai there,
give a little idea about macros and development using VSIDE. Other wise mention any links which explaines VS macros.
Sreejith S S Nair
|
|
|
|
|
It's all in the VS.NET product documentation.
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
hi all.
In my program I need to convert a double number to string representation in fraction format and vise versa. For example, convert 0.75 to string "3/4" and convert string "1/2" to 0.5. The class will only need to handle numbers that increment by 1/32. That is 1/32, 2/32, 3/32.... 31/32, 1. If the double number is 0.28 which is between 1/4 and 9/32, the string should be 9/32(go with the bigger number).
TIA
|
|
|
|
|
See the example source code for my article, Custom String Formatting for .NET[^], which includes a Rational class (a pretty common implementation). That should do what you need and then some.
Microsoft MVP, Visual C#
My Articles
|
|
|
|