|
|
Hi!
The link is about how to use pointers in c#.
But i need to write to a specific memory address a value, but i can't because window's set it inaccessible...
--------------------------------
visit: http://pmartike.deviantart.com/
|
|
|
|
|
Don't Cross post in Multiple Forums.
Regards,
Satips.
|
|
|
|
|
??
http://pmartike.deviantart.com/
|
|
|
|
|
Hi all,
I am developing a windows application using C#.. In that I want to extract Email Ids from Outllook, Outlook Express and Windows Address Book...
In Outllook..........
I can extract Email ids using the following code...
Outlook.Application app= new Microsoft.Office.Interop.Outlook.Application();
Outlook.NameSpace ns = app.GetNamespace("MAPI");
object _missing = System.Reflection.Missing.Value;
Outlook.MAPIFolder ctc = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
foreach (Outlook.ContactItem citem in ctc.Items)
{
listIds.Items.Add(citem.Email1Address);
}
Q1) Using the above code I can display all the email ids from the outlook.
But if there are more than one profiles are created in the outlook.. (Say..... profile1 ,profile 2)...
Now this code will extract only from the default profile..
I want to give an option to the user to select the profile which he want to email ids...
I tried like
ns.Logon("Profile1",_missing, false, true);
But it is not working properly.. I think it is taking the profile name from somewhere else it is stored ( A session or something (I am not sure))...
How can I do that?????
NOW OUTLOOK EXPRESS and WAB
Q2) How can I access Outlook express and WAB using C#???
I think I can import Wab32.dll ...
From where i will get some reference for that (I got many C++ eg: but not a single one from C#)..
Thanking you in advancce
JAZ;)
-- modified at 5:12 Tuesday 3rd July, 2007
|
|
|
|
|
how can i import items in a listview to text file.
|
|
|
|
|
Do you mean how can I export items from a ListView into a textfile
or
How do you import items from a testfile and place them in a listview?
|
|
|
|
|
ya i mean
Do you mean how can I export items from a ListView into a textfile
but i dont want to save a text file its up to user to save it manually so some thing like temp file which can only be viewed but when closed should not be saved to any path.
thank you
|
|
|
|
|
Is there printing feature in Dundas Gauge for window application?
if it's there then can anybody send me picture of printed gauge.
I wanna see how it looks like.
And send some coding too.
Thank you so much
Alisa o_o
|
|
|
|
|
You'd do better to ask Dundas that, I think they have a demo version which will answer your questions.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Just look the code:
<br />
string sUri = "http://url";<br />
NetworkCredential myCred = new NetworkCredential("","");<br />
myCred.UserName = "admin";<br />
myCred.Password = "password";<br />
<br />
WebRequest request = WebRequest.Create(sUri);<br />
request.Credentials = myCred;<br />
WebResponse response = request.GetResponse();<br />
Our HTTP server using "SESSION BASE" authendication, So the "request.GetReponse" will return the HTML code of the HTTP server's login page, NOT the uri I want to retrive.
If I change HTTP server to "BASIC" auth, the code run good.
How to implement "SESSION BASE" auth in C#?
|
|
|
|
|
When you request the login page with the correct login, it will create the session variables on the server and return a cookie to identify the client. You have to pick up the cookies that the server sends and return them to the server in every request.
---
single minded; short sighted; long gone;
|
|
|
|
|
could you show me a sample code? Thanks!
|
|
|
|
|
|
I'm sure you do. Do your own homework. Otherwise, you'd still fail your course.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
using System;
class FuzzyDiceThingy
{
static void Main()
{
}
}
I've left out a few minor details, so just fill those in and you're ready to go!
Or better yet make an attempt yourself at solving the assignment and ask for help with specific problems that arise, not just posting your homework and hoping someone will do it for you.
|
|
|
|
|
I voted only 4, since you did not provide NUnit fixture, which is essential
to verify the lot.
|
|
|
|
|
|
Sure. Fork over about US$10,000 (cash, up front) and I'll do your homework for you. Pity, you won't learn anything so you can actually pass the course.
|
|
|
|
|
Given the following class hyerarcy I'm trying to figure out how to explicitly call the Base class implimentation of a virtual method (in this case Name()) instead of the Child class implimentation:
class Base
{
public virtual void Name()
{
Console.Writeline( "Base" );
}
};
class Child : Base
{
public override void Name()
{
Consol.Writeline( "Child" );
}
};
So far the only way I've been able to figure out how to do this is to impliment another method on Child, something like
...
public void BaseName()
{
base.Name();
}
...
But I don't want to have to impliment this method, I want to call the Base class Name method from outside of Child.
In C++ this would be done by using the static binding operator (: , like so.
Child c;
c.Base::Name();
It seems like there has to be something equivalent in C#.
Thanks
Matt Schuckmann
|
|
|
|
|
mschuckmann wrote: Child c;
c.Base::Name();
Cast the child to base:
<br />
Child c;<br />
((Base) c).Name();<br />
(I hope that works, I didn't test it.)
|
|
|
|
|
Unfortunately, this doesn't work. I did try it.
|
|
|
|
|
Dang, I put my foot in it again.
From http://msdn2.microsoft.com/en-us/library/aa645767(VS.71).aspx[^]
Note that it is possible to invoke the hidden virtual method by accessing an instance of D through a less derived type in which the method is not hidden.
This must be one of those naughty things that C++ allows that C# fixed.
|
|
|
|
|
Of course ! that's how you can do it, at the expense of some new method names.
Here is my experiment:
class class1 {
public virtual void print() { basePrint(); }
public void basePrint() { log("class1"); }
}
class class2 : class1 {
public override void print() { log("class2"); }
}
class class3 : class2 {
public override void print() { log("class3"); }
}
public void Test() {
class3 a=new class3();
a.print();
a.basePrint();
class1 b=new class3();
b.print();
b.basePrint();
}
it does print:
class3
class1
class3
class1
at the expense of 1 additional method (basePrint in the base class)
[EDIT: there is absolutely no need for a second method in class2, what was I thinking?]
I still would prefer something that strips the specialization (but without copying data),
so one could write b.base.print(), which would mean print() needs no sibbling.
-- modified at 17:55 Monday 2nd July, 2007
|
|
|
|
|
That's not even right the immediate base of class3 is class2 not class1.
And who wants to pollute their code with a bunch of extra methods when there should a be a way to syntactically statically bind to any method in the inheritance tree.
Yes it's not something you need to do often and it might mean that there is something wrong with your design but there still should be a way to do it, it's not unsafe.
|
|
|
|