|
I've the same problem long time ago, I solved it by turning off firewall and antivirus program
VirtualVoid.NET
|
|
|
|
|
I've abandoned that solution and picked another one...
no way I can fix that...
zilo
|
|
|
|
|
im generating an xml file. how to add namespace to a node in that xml.
My Xml looks as below,
<?xml version="1.0" encoding="utf-8"?><br />
<StaffingOrganization xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ns.hr-xml.org/2006-02-28 StaffingOrganization.xsd HR-XMLExtension.com AccountExtension.xsd" typeOfOrganization="Customer" xmlns="http://ns.hr-xml.org/2006-02-28"><br />
<Organization><br />
<OrganizationName></OrganizationName><br />
<OrganizationId><br />
<IdValue name=""></IdValue><br />
</OrganizationId><br />
<ContactInfo><br />
<ContactMethod><br />
<Telephone><br />
<FormattedNumber></FormattedNumber><br />
</Telephone><br />
<InternetEmailAddress ></InternetEmailAddress><br />
<InternetWebAddress ></InternetWebAddress><br />
<PostalAddress><br />
<CountryCode></CountryCode><br />
<PostalCode></PostalCode><br />
<Region></Region><br />
<Municipality></Municipality><br />
<DeliveryAddress><br />
<AddressLine></AddressLine><br />
<BuildingNumber></BuildingNumber><br />
</DeliveryAddress><br />
</PostalAddress><br />
</ContactMethod><br />
</ContactInfo><br />
</Organization><br />
<ReferenceIdInfo><br />
<StaffingCustomerId><br />
<IdValue name=""></IdValue><br />
</StaffingCustomerId><br />
<StaffingCustomerOrgUnitId><br />
<IdValue name="Branch"></IdValue><br />
<IdValue name="BranchName"></IdValue><br />
</StaffingCustomerOrgUnitId><br />
</ReferenceIdInfo><br />
<UserArea><br />
<CompanyExtn xmlns="HR-XMLExtension.com"><br />
<WorkPeriodEndingDay></WorkPeriodEndingDay><br />
<TimesheetMeasurement></TimesheetMeasurement><br />
<ReportInterval></ReportInterval><br />
<AllowEmployeeRevision></AllowEmployeeRevision><br />
<AllowExpenses></AllowExpenses><br />
<AllowApproverRevisions></AllowApproverRevisions><br />
<TimesheetBranch ></TimesheetBranch><br />
<ApproverName></ApproverName><br />
<JobDescription></JobDescription><br />
<Corporation ></Corporation><br />
<MainOccupation ></MainOccupation><br />
<EmploymentType ></EmploymentType><br />
<TimeSheetFormat><br />
<Name></Name><br />
</TimeSheetFormat><br />
<WorkingDays></WorkingDays><br />
</CompanyExtn><br />
</UserArea><br />
</StaffingOrganization>
I want to add namespace to the node StaffingOrganisation
please help
Dream it to achieve it
|
|
|
|
|
Nice blank space you got there... do you perchance have html enabled in your post? (ie. you didn't tick the box saying 'Ignore HTML tags in this message' )
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
I developed a desktop application in C#.Net using VS2005.
On one of the form,
On double clicking a Listview, the selected file is opened with the selected application. MSWORD for .doc and WinZip for .Zip
This works perfectly in XP,2003 and other platforms except vista.
The files which i want to open is in the application folder, c:programfiles/myapp.
The problem is Compatibility files.
Can any one help me out??
How can i make my application compatible with Vista ?
Avanish
|
|
|
|
|
Avanish Singh Chauhan wrote: How can i make my application compatible with Vista ?
Don't store data files in program folders!
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
I think the problem is related to Access Rights on the Program Folders folder. You may need your program to operate with Administrative rights in order to acces it.
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
shared user data is supposed to be in the Program Files\Common Files\Company Name(optional?)\App Name folder. That's been the way it's supposed to be done since XP if not earlier. You can force your app to still do so, but you'll end up hammering your users with UAC dialogs in the process.
--
If you view money as inherently evil, I view it as my duty to assist in making you more virtuous.
|
|
|
|
|
hi friends
I want to read network stream with byte[] format, but i don't know it's size. what can I do?
|
|
|
|
|
You call the Read method repeatedly, until it returns a number of zero bytes. Just like reading any stream.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks, but do you know how I can connect them together?
|
|
|
|
|
Write the bytes to a MemoryStream, then you can access the data once you are done reading. Basically thr MemoryStream will allocate an initial array, then keep moving the data to a larger and larger array as needed.
If you need to support large amounts of data use a FileStream instead.
|
|
|
|
|
Hi Friends I need a details and program for create a Trial version to an application in C# dot net 2005. Help me dear's..........
I got a code for this in vb dot net but i want it in c# help me ......
http://www.codeproject.com/useritems/registration.asp
regards
Sasi Kumar.V
-- modified at 7:12 Wednesday 10th October, 2007
|
|
|
|
|
Sasi Kumar. V wrote: I got a code for this in vb dot net but i want it in c# help me ......
It should be easy enough to convert. There's tons of ways of doing this anyhow, all pretty straightforward.
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 )
|
|
|
|
|
|
Compile it, then open the DLL in .NET reflector and disassemble as C#. I have not said this is the best way, but it certainly is a way.
|
|
|
|
|
Why do you need to do this? It's .NET and presumably it's should be CLS Compliant which means that it should be accessible from your assembly.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Where I'm working at the moment, I'm seeing a lot of this sort of thing:
if (ReferenceEquals(curve, null))
{
}
whereas I would personally just use:
if (curve == null)
{
}
Now I know that equality is more complicated than it sounds, so my question is, is there any merit in using the first approach over the second?
Regards,
Rob Philpott.
|
|
|
|
|
Well, IMHO ReferenceEquals method, when used to compare a reference with null , it's merely redundant.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
That would depend on where it is used.
For example: When you override the == operator, you may want to use ReferenceEquals() so that you don't end up with an infinite loop or other undesired effect.
|
|
|
|
|
override operators... you can do that?
My current favourite word is: Waffle
Cheese is still good though.
|
|
|
|
|
public static operator bool == (MyObject lhs, MyObject rhs)<br />
{<br />
}
|
|
|
|
|
|
Hello,
I'm looking for a way to activate an existing browser session by means of a C# .Net executable.
I have found some code where I would be able to look for all active programs, and eventually even kill them. I did not find a way to activate a process, however.
private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] myProcesses;
myProcesses = System.Diagnostics.Process.GetProcesses();
foreach (System.Diagnostics.Process instance in myProcesses)
{
MessageBox.Show (instance.MainWindowTitle);
instance.Kill();
}
}
I need this to avoid the user to have logged in again.
I want to activate his open internet session, and eventually even refresh his session with a new url.
E.g.
http://localhost/sid=abc123?nameId=10
should be replaced by
http://localhost/sid=abc123?nameId=20 , in the same session, and triggered by an executable.
Is this possible ?
Help would be very much appreciated.
|
|
|
|
|
I doubt it's possible.
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 )
|
|
|
|