|
are you using visual studio or the command line interface?
/\ |_ E X E GG
|
|
|
|
|
|
If you are using a command-line interface, compile as below:-
csc /nologo /t:library myfile.cs
> whoami
The system is unable to identify you when you don't even know your name!
|
|
|
|
|
I have to display the results of my MS Access DB application in graph. Figured it will be good to it with GDI+, but dont have a clue where to start from
please throw me a line...
sea#
|
|
|
|
|
msdn.microsoft.com[^]
Basically, you need to look into the System.Drawing namespace, where you will create a Bitmap, a Graphics object to hold it, and then call methods on the Graphics object to draw on it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello,
Is there a way to access the subStrings of myString, without using
foreach statement, after using myString.Split(',');
Thank you
|
|
|
|
|
the return value is a string array, so you can access certain elements like this:
substrings[5]; // will access the 6th substring, if present, make sure to check the bounds
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hi,
I can open a MSWord document from C# code, but
is it possible to automate a Word document that is
not opened from the C# code ?(i.e. the Word document
is already opened before the c# code run ) If yes, how ?
Thanks
|
|
|
|
|
I need to create an object in memory at runtime using reflection.
I know how to do this, and then save to a file, but in this case I just wish to create the object, then create an instance of it then manipulate it, without creating a persistant copy.
I have used code such as:
Type type = TypeBuilder.CreateType();
object obj = Activator.CreateInstance(type);
But the contents of the object created is non existant, any help would be appreciated.
|
|
|
|
|
I want to do some big matrix calculations using C#. For that purpose I want to use the LAPACK subroutines embedded in C#. IS this possible?
Regards,
Amit
|
|
|
|
|
You might want to look and the bottom of this[^] page. You might also want to look at the top of that page for the best Reflector for .NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Plz, help me...
When i try to generate metadata from my remote server in dll file using SoapSuds
soapsuds -url:http://localhost:8001/Server?WSDL -oa:Server.dll
it throws an error:
The type or namespace 'Drawing' does not exists in the class or namespace 'System'
What should I do?
best regards, FLUID
|
|
|
|
|
I would change the soapsuds command line to generate code instead of an assembly. It is clear that one of your exported methods is using something like System.Drawing.Point which clearly does not exist in that "Server.dll" assembly.
|
|
|
|
|
:(Hi all,
Interesting problem here. I was working on a simple winform in VS2003 on XP Pro SP2 and in the form designer I could see my 3 text boxes, 2 labels and a button control - but... when I go to run it, all I see is an empty form? Has anyone seen this and how do you overcome it?
|
|
|
|
|
Hi,
I am attempting to simulate a drag n drop operation in one of my custom components (build from scratch). For this reason, I was changing the cursor to a custom drag cursor (that will give the appearance of dragging) which is defined static and will be read from the file as follows:
private static Cursor dragCursor = new Cursor(".\Images\MyCursorFile.cur");
It loads fine and I am able to use it quite well. However, sometimes, the cursor just does not show and I have to close and re-open my application to get back the cursor. I have no clue why this happens as there is no reproducable path to the problem.
Any ideas? (Or any other way to load a .cur file without having to load from a file?)
Thanks.
Regards,
Rajesh
|
|
|
|
|
I have a question on code found here at code planet.
url is: http://www.codeproject.com/csharp/2WayConnection.asp
Can someone who is good with tcp and http please review the page and then tell me whether they are qualified enough to answer a question.
This question pertains to the req.Body in the Connection class.
I wanted to email the author but couldnt find an address.
Any help would be appreciated.
Steve Welborn
Software Architect
|
|
|
|
|
At the end of the article page you will find this ATRICLE forum ,you can post your question to it ,and he will be notified.
|
|
|
|
|
No kidding?
Learn things new everyday.
Thanks man, have a great afternoon.
Steve Welborn
Software Architect
|
|
|
|
|
Hello.
Does anyone know if I can open an image, convert the colors from RGB to CMYK and save it back? And without using any commercial components or libraries.
thank you
|
|
|
|
|
Can anyone tell me if there is something like pointer in C#. If I want to interchange two rows in a mtrix which is the most efficient way? In C, probabaly we can use, if we wan to elliminate the extensive use of the stoarage space.
Regards,
Amit
|
|
|
|
|
You can use regular old pointers in C#. You just have to do it in an unsafe context:
unsafe static void WriteLocations()
{
int *p;
int i;
i = 10;
p = &i;
string addr;
addr = int.Format((int) p, "X");
Console.WriteLine(addr);
Console.WriteLine(*p);
*p = 333;
Console.WriteLine(i);
i = *(&i) + 10;
Console.WriteLine(i);
}
Also, instead of marking a class or function as static, you can mark portions of code as unsafe:
void DoSomething()
{
unsafe
{
}
}
Also note that the C# compiler needs the /unsafe switch turned on in order to use unsafe code.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
Thanks Judah!
How can one function be unsafe? what is a unsafe code.
regards,
Amit
|
|
|
|
|
Unsafe code is
- code that cannot be verified as type-safe by the .NET Common Language Runtime (CLR).
- is not Common Language Specification (CLS)-compliant, meaning that other .NET languages like VB.NET, J#, and so on are not required to implement nor are they guaranteed to consume such code, if it were declared as public and made available to other .NET dlls & executables.
- requires a full trust security scenario in order to run, for instance, it must be installed/run from the target machine; if you try to use pointers in code run in a partial-trust scenario (e.g. a C# applet over the internet), the .NET CLR will throw a SecurityException because pointers require full access to the machine's memory, thus are potentially dangerous to the end user.
For a function, class, or code block to be unsafe, just use the unsafe keyword:
unsafe class MyClass
{
}
unsafe void MyFunction()
{
}
void MyFunctionWithUnsafeBlock
{
unsafe
{
}
}
Despite all these cautions, you're free to use pointers as much as you like if your application is a standalone app or dll, indeed, the .NET framework uses pointers internally quite often for performance gains and interop scenarios.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Homosexuality in Christianity
Judah Himango
|
|
|
|
|
There is seldom any real need for pointers. Can't you use a reference instead?
---
b { font-weight: normal; }
|
|
|
|