|
Variable length structures aren't something you can do directly from C#; the marshaller wasn't designed to handle them.
Your best bet is to write a wrapper using the Managed Extensions to C++, and then call it from C#. If you send me some email, I'll send you a powerpoint presentation and some sample code I did a while back.
Eric
EricGu@microsoft.com
|
|
|
|
|
Hi! I’m new in .NET and I’m going start playing with C#.
I installed .NET FRAMEWORK BETA 2.
Does anyone know Inside C# by Tom Archer up today (BETA 2) or any other books which will concentrates on C#.
Best regards.
Igor.
|
|
|
|
|
See http://www.dotnetbooks.com.
|
|
|
|
|
Yes Igor. 'Inside C#' was written with Beta2. http://www.codeguru.com/announcements/dotnetbooks.html has a list of .NET books including which ones are written for beta2.
Please feel free to email me (tarcher@mindspring.com) if you have any specific questions about my book.
Cheers,
Tom
"Ya got lucky, ya lucky prick" - Keith McCready
|
|
|
|
|
I like the books published by WROX. I find then very good. The books gets the message accross on a professional level that i like.
|
|
|
|
|
I'd like to know if with C# is possible to develop Win32 native(EXE) application (in the "old" stile, without the need of CLR).
Thanks.
|
|
|
|
|
No, all C# applications require the runtime.
|
|
|
|
|
I am looking for some help with COM interop. I am trying to using a COM object from within a web service written in C#. Most of the methods exposed through the interface work fine, except for those that return a safearray of variants. Below is an example of one such method's definition in the .idl file.
HRESULT foo([in] SAFEARRAY(BSTR)* tags, [out, retval] SAFEARRAY(VARIANT)* values);
The COM object connects to a server process and I can see the server executing the request, but the following exception is thrown :
System.ArgumentException: Method's type signature is not Interop compatible.
Any ideas on what is happening?
Thank you,
Jason
|
|
|
|
|
Is there any where, which is be able to give me an short working sample using the principalpermission-class from .net?
like:
user peter is "admin" and calls method a_1 from class myClass.
user tom is "user" and calls method a_1 from class myClass and here is throw an principal-permission-Security-exception... because tom is not an admin.
but how i have this to write in c#?
greetings marian
marian@tfh-berlin.de
|
|
|
|
|
Good day.
I wrote a program about placing 8 queens to a chessboard. It found 92 combinations. Do u know the real answer?
Thank you
|
|
|
|
|
Why are you sure that the answer you got is wrong ? Why do you want to know ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
1. Can I use Global Message Hooking ?
(I saw "Microsoft.Win32.Interop.HookProc"
in .Net Framework SDK class view)
2. If it is possible, How can I use that?
3. How can I get another window handle?
|
|
|
|
|
I have an old application written in C where I had a large image on view and the user was then able to create a moving line / image between a point and the mouse cursor without redrawing the orginal image, the line/image was also removes as the cursor position changes relative to the start point. With the old sdk this was done with calls as setrop2 etc. How can I do this with C# and .net
Thanks
Graham.
|
|
|
|
|
i want to know function that its role is setrop2
i making drawing tool. but i didn't find it
|
|
|
|
|
Is it possible to implement an interface that has been written in another language in c#?
Right now I have an interface that was writtin in unmanaged C++ (proably) that I have been told to implement in C#. How tough would this be?
|
|
|
|
|
An interface is just a description of methods and properties you must impliment. So you should be able to just create the interface in C# and use it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Does anyone know if and how to include DX8 in a C# program. I'm sure you can. Also know if .net apps will work with upcoming X-Box
|
|
|
|
|
You can use DX8 from C#. Look on http://discuss.develop.com/ in the DOTNET newsgroup for a discussion; there's a problem with the DX8 typelib as shipped.
|
|
|
|
|
Hello you,
Can you tell me the Website address in order to download it,
thanks very much
Tron
hovantron.com Signature
|
|
|
|
|
|
Hello friends,
Can anybody guide me what is the hardware requirements for the VS.net installation...
I have PC with celeron 633MHz,128 MB RAM ...
So, is it okay or need to have more RAM and faster processor?
____________________
s_vrajesh@yahoo.co.in
|
|
|
|
|
That's enough for "minimum requirements", the recommended configuration is at least 733MHz CPU and 256MB RAM. I think upgrading your RAM is more important than a faster CPU.
|
|
|
|
|
More RAM is definitely more important than CPU speed. I like 256MB, though 512MB can also make in improvement in speed (and RAM is pretty cheap these days).
|
|
|
|
|
How can I save and retrieve initialization or startup or generally configuration info in C#?
Anybody has tried to dive into ConfigManager class? ConfigManager.Put, ConfigManager.PutItem and so on?
How about IConfigCollection Interface?
Thanks in advance, quique
quique
|
|
|
|
|
I have a class with some member functions. My requirement is that i will get the function names as strings and using those strings I should be able to invoke the member functions.
I would appreciate if somebody could help me out in this issue.
thanks
sukesh sabbani
|
|
|
|