|
Yadav Pramod wrote: Do these blog providing sites release any API's for this?
If the process of posting an entry is performed via a web form, you can harness the "post entry" functionality by creating a WebResourceProvider[^].
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
i want to do that in C# windows Application
Pramod
|
|
|
|
|
Yadav Pramod wrote: i want to do that in C# windows Application
Yes, I know. Do you have a specific question?
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
Ya, My question is how to post the data
on an existing blog?
Pramod
|
|
|
|
|
Yadav Pramod wrote: how to post the data on an existing blog?
View the source of the html page that allows you to post your blog entry. It's likely to be a form of some sort. Then, write a web resource provider[^] to mimic that action. See the GoogleTranslator[^] article for an example.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
I'm having trouble saving a workbook. I show a SaveFileDialog, the user specified where he wants to save the file, and where. When the user clicks on Save button, I say SaveAs... and do something else with the file (after the file is saved). Anyway, that's what it should do.
My code for saving is this:
this.SaveAs(fileName, Excel.XlFileFormat.xlXMLSpreadsheet, missing, missing, false, false, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange, missing, false, missing, missing, true);
It simply doesn't save the xls file. Does anybody have any idea why?
---------------------------------
Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe. (Albert Einstein)
|
|
|
|
|
Hi,
I want to display Radiobuttons in one of the Columns of DataGridView. Is it possible? if possible please help me.
Thanks in Advance.
Srinivas
|
|
|
|
|
I have a bit of a problem trying to use a C++ class that contains virtual functions though C# p/invoke. Here is a trivial simplification of the problem to illustrate the issue.
With Visual Studio.Net 2003:
If I have a C++ class like so:
class ClassA
{
ClassA(){n = 0;}
int n;
void F(){n++;}
};
And an exported function that uses this class like so:
extern "C"
{
__declspec(dllexport) void ExportedFunc(ClassA** ppA)
{
ClassA* pA = *ppA;
pA->F();
}
}
I can call into this from C# by declaring a mapped structure for marshalling like so:
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
public class ClassA
{
int n;
}
And a function to wrap the exported C function:
class DLLImports
{
[DllImport("ExportFuncs.dll",
EntryPoint="ExportedFunc",
SetLastError=true,CharSet=CharSet.Unicode,
ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern void ExportedFunc(ref ClassA refA);
}
I can then make a call into the dll containing the exported function like so:
{
.
.
ClassA refA = new classA();
DLLImports.ExportedFunc(ref refA);
.
.
}
Okay so this works a treat.
But if I now modify classA so this it contains a virtual function like so:
class ClassA
{
ClassA(){n = 0;}
virtual ~ClassA(){}
int n;
void F(){n++;}
};
We run into a problem. The C++ class ClassA now has an extra four bytes at the beginning to contain the vTable pointer. So this needs to be taken into account when creating the structure layout in C#. Now I have tried just putting a dummy four btyes in at the beginning and I have tried changing the class to LayoutKind.Explicit and
using the FieldOffset to offset the first item in the class by four bytes, but I still find that when the code gets into the C function the vtable pointer has been reset to null.
Is there a way to overcome the problem or is is simply a case of "don't use classes that contain a virtual function with p/invoke?
Regards
M
|
|
|
|
|
|
|
|
How 2 integate Pay Pal Pro in Asp.net (C#)
How 2 Use this..
plz help me Out..
Its Urgent
Viren
Never Think That You Have Failed Instead Always Think That u hav Better Chance Next Time...
|
|
|
|
|
Not wanting to be rude but 2 things first
1. Have you contacted paypal and asked them how to use their application, surely they would be the best place to start.
2. There is an ASP.Net forum for ASP.Net questions
Cheers
Kev
|
|
|
|
|
Hello Everyone,
I have developed a simple MDI forms application and am now stuck with a problem. I want to store the data of each childform in a seperate tag of an XML file. I have written a xml_write() method in the childform.cs but am not able to successfully write for each MDI childform.
Can I get some help!!
KR
|
|
|
|
|
You'll have to be more specific,
what happens when your write function is called?
are any exceptions thrown?
Maybe show some code??
If you don't give details then no one can help you
Kev
|
|
|
|
|
I have attached the code of the method I have written in the ChildForm.cs file but this is not the right code coz I am not able to append nodes to the XML file using this. My problem - I want to add a node with some text to the XML file whenever I open a new child window using normal MDI property.
private void Xml_Creation(int count)
{
XmlWrt = new XmlTextWriter("XMLSample.xml",null);
XmlWrt.Formatting=System.Xml.Formatting.Indented;
XmlWrt.WriteStartDocument();
//start the first element.
XmlWrt.WriteStartElement("FORMS");
//create our first customer element.
//this is a child element of the customers element.
XmlWrt.WriteStartElement("Form");
XmlWrt.WriteElementString("FormNumber", count.ToString()); XmlWrt.WriteEndElement();
//XmlWrt.WriteEndDocument();
//XmlWrt.Flush();
XmlWrt.Close();
}
Cheers
KR
|
|
|
|
|
Hello!
I have the following problem.
I've created windows service on MS Visual Studio 2005
and I am trying to install it using InstallUtil.exe which is in Framework 2.
I need to pass parameter to the executable file of the service.
I override method Install of my ServiceInstaller the following way:
public override void Install(IDictionary savedState)
{
Context.Parameters["assemblypath"] += " parameter";
base.Install(savedState);
}
When InstallUtil finishes working I have my installed service but in Executable File I have the value of Context.Parameters["assemblypath"] placed in double quotes:
"C:/.../myservices.exe parameter". When i try to start this service I have "File Not Found" exception. I replaced double quotes in regedit and service started normally.
The question: Is there any normal way to install service so that it wouldn't have double quotes, or the executable path would look like: "C:/.../myservices.exe" parameter.
Thank you for possible answers!
Dmitry Uvarov
|
|
|
|
|
Dear Experts,
I would like to get the parameter "Path to Executable" of a Windows Service programmatically. As you know, we can use Service MMC snap-in (Control Panel --> Services) to adminstrate Windows Services. If you right click any one of the Windows Services and then choose Properties, you would see the Service snap-in.
In the Service snap-in, there is an item called "Path to Executable" that shows you the original location of your Windows Service's executable. Now I would like to get this path programmatically. Could you please tell me how I can achieve that?
Many thanks for your help.
Tigger
|
|
|
|
|
Hi all,
i have an MDI form and i have made the FormBorderStyle to None,
due to which the title bar of the form is not shown,
i have placed a picturebox on the left top corner of the form and i want
to display the system menu when the mouse button is pressed on the picturebox.
This system is displayed when we press the mouse down on amy windows application icon or on the right click of the title bar.
waiting for a quick reply.
Thanks,
Pramod
|
|
|
|
|
I don't know how to tie into the windows system menu but the options contained in it would be very simple to write in your own context menu that you could display when the picture box is clicked.
Kev
|
|
|
|
|
Thanks for the advice, but i have kept that as the last option.
i would like to use the system menu that windows provides.
Thanks,
Pramod
|
|
|
|
|
Hi guyz, can any one know how can i get the virtual path of the website, i used Httpcontext.current.Request.physicalapplicationpath but its not working. error occured like d:\websitename\specialoffer\banners path could not found. is there any else method to locate the desired path virtually. Thanx in advance please help me ou.
Regards,
Raheel
|
|
|
|
|
|
i hav used ajax in application .
Its working fine at my local system.
but when i go live it gives error.i think problem is in trust level in web.config.
How do i set this trust level in web .config
any body can help.its urgent
thanks & regards
cheers
Sanjeev
|
|
|
|
|
try
<identity impersonate="true">
right under<authentication mode="Windows">
if it doesnt work then you will have to open up your machine.config
find tag <processmodel ....
your="" machine.config="" will="" be="" found="" under="" this="" path
c:\windows\microsoft.net\framework\v1.1.4322\config
you="" edit="" processmodel="" tag="" like="" following:
look="" for="" attributes="" "username"="" and="" "password"
<processmodel="" enable="true" timeout="Infinite" idletimeout="Infinite" shutdowntimeout="0:00:05" requestlimit="Infinite" requestqueuelimit="5000" restartqueuelimit="10" memorylimit="60" webgarden="false" cpumask="0xffffffff" username="machine" password="AutoGenerate" loglevel="Errors" clientconnectedcheck="0:00:05" comauthenticationlevel="Connect" comimpersonationlevel="Impersonate" responsedeadlockinterval="00:03:00" maxworkerthreads="20" maxiothreads="20">
hope it will help
Osama Mirza
|
|
|
|