|
I'm sorry, but we have no idea what you are talking about.
Maybe you can explain what is the problem, where the problem exist and maybe you can put some (SOME, not 2 pages of code) code in here to clearify what you mean.
If you explain the problem better, we will most probably give you anwsers.
|
|
|
|
|
i am sorry for the unclear posted question. now i would try to explain in detail. i havenot written much code yet. but my problem is, i have to read the EULA(Enduser Licence Agreement) text through my program while installing the .exe file.i do not know how could i access that.hope you would understand this and give ur advice to solve this.
|
|
|
|
|
So you are making an installer and you would like to read an EULA, as like a text file?
Use a stream reader for this problem.
|
|
|
|
|
thanks for your reply. see you soon with more douts
|
|
|
|
|
Dear All,
I am getting an embedResource Text File using following code, but when i want to write into it.
It gives me an error, "Stream does not support writting".
[code]
System.Reflection.Assembly ass=Assembly.GetExecutingAssembly();
System.IO.Stream s=ass.GetManifestResourceStream("testLogin.test.txt");
byte[] array=new byte[s.Length];
s.Read(array,0,Convert.ToInt32(s.Length));
//here i am writting
s.Write(myarray,0,myarray.Length); //the error is here
[/code]
The question is how can i make it read/write.
The file is embededResource.
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
first i opened a form in windows application. later i added a crystal report to the application and added some information to the crystal report by using microsoft oledb provider for sqlbut it ishowing the error.the code iused there is
cust c =new cust();
crystalreportviewer1,reportsource=rpt;
it is showing an error like
Error 1 'crdemo1.cust' does not contain a definition for 'rpt'
|
|
|
|
|
Hi. I create a usercontrol. It's name is Imagelists and it holds images as a list. And it has indexer property as
public Image this[int i]
when i use it in an event as Imagelists1[2]. i want to see the second image name as a property. when i call Imagelists1[3].Name, let it returns me the name of image. But i couldn't see the Name property when i use it with it's indexer. if i don't use indexer an i use like ImageLists1.Name, i can see the Name property. I just want to see like Imagelists1[3].Name and it returns me the name of 3rd image. How could i do this?
|
|
|
|
|
Hello,
I have a problem in my application and I don't really know how to solve it:
unsafe public System.Collections.IEnumerator GetEnumerator()
{
char[] sString1 = new char[max];
for (int numer = 0; numer < roz; numer++)
{
fixed (char* sString = sString1)
{
for (int i = min; i <= max; i++)
{
string a = brute(sString, 2, sString1, numer);
yield return a;
}
}
}
}
private string brute(char* sString, int nLen, char[] sPoczatek, int num)
{
while (nLen > 0)
{
if (nLen == 1)
{
for (int i = num; i < zn.Length; i += roz)
{
sString[0] = zn[i];
brute(sString + 1, nLen - 1, sPoczatek, num);
}
}
else
{
for (int i = 0; i < zn.Length; i++)
{
sString[0] = zn[i];
brute(sString + 1, nLen - 1, sPoczatek, num);
}
}
}
return sPoczatek.ToString();
}
Error 1 Unsafe code may not appear in iterators
Is that possible to use GetEnumerator() with unsafe code?
111
modified on Sunday, February 22, 2009 11:38 AM
|
|
|
|
|
hii all
i want to only authenticate windows live id / hotmail in c# windows application.
i dont want to send emails. pls help
thanks in advance.
|
|
|
|
|
|
Hi dears.
I'm going to save a string in a DOC file in a specific format.
Could you tell me how I can do it ?
Thanks in advance.
|
|
|
|
|
help me please i 'm in an urgent situation,
i have 2 project in my solution ,i refrance the B project with A project,
i run the project and use it whitout any error,but when i try to publish
an unexpected error unleashed as below :
"Error 159 Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'.project"
what can i do, i'm runing out of time,help plz!
|
|
|
|
|
Its a bug in VS 2005
http://support.microsoft.com/kb/907757[^]
more info[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi,
In my program, serialport.Ctsholding and serialport.RtsEnable are used every second to check signal input. serialport.Datareceived is used to receive different data. It seems that they have conflict with each other. When Ctsholding and RtsEnable are being used,datareceiving is affected in time wise.
Any suggestions why this happens and how to solve the problem? If required, I can put up my codes.
Thanks in advance.
Charles
|
|
|
|
|
http://technet.microsoft.com/en-us/library/ms187320.aspx[^]
I'm wondering if anyone has built this scheduler structure within their C# application. It seems very flexible. Essentially all I'm really looking for is a function to generate the Next_Occurance date and time from the other values given.
Has anyone tackled this?
Thanks.
|
|
|
|
|
I using datetimepicker and when i get the value that the user was choose i get the time with seconds.
This field is read only and i can do "get" but i cant do "set".
My problem is that i want to drop this seconds and i don't know how.
I try to avoid of create new DateTime object and with i parser this object to set the seconds to be "00".
Thanks.
|
|
|
|
|
|
It depends on the specific control, but generally the format would be somthing like hh:mm....the default is hh:mm:ss, so drop the ss for dropping the seconds from displaying.
|
|
|
|
|
I already done it.
But still, when i do this:
DateTime t = DatetimePicker.Value;
==> the t.seconds is not 0.
I need that the t.seconds will be always 0.
|
|
|
|
|
dateTimePicker1.Value=dateTimePicker1.Value.AddSeconds(dateTimePicker1.Value.Second*-1);
|
|
|
|
|
I am trying to access a web service in Mule from a C# project in VS 2005. I have access to the web service and the methods within it, but am unable to access the fields within the response. The response from the web service is an array of objects, but I cannot seem to break into the objects.
I have added a Web Reference to the data service. An example of how I am using the reference follows:
dataService serv = new dataService();
dataService.MyData myData = serv.getMyData();
ArrayList responseData = new ArrayList();
int count = myData.firstData.Length;
string dataName;
for(int i = 0; i < count; i++)
{
responseData.Add(myData.firstData[i]);
dataName = responseData[i].Name;
MessageBox.Show(dataName);
}
Although Name is one of the fields in firstData, it is not accessible from firstData or from responseData. Java is accessing the fields through dto in Eclipse, but I do not appear to have access to those from my C# project.
Does anyone know of a way to access the Eclipse dtos from my VS project, or, barring that, is there another way to access the fields within the response object through my project?
|
|
|
|
|
responseData is type of ArrayList and its hold an array of object. So before you access the objects' properties stored in array list you need to cast it first.
e.g.
MyClass cls = responseData[i] as MyClass;<br />
dataName = cls.Name
|
|
|
|
|
Thank you. I am not certain that I understand what MyClass is supposed to be, though. Can you please explain?
|
|
|
|
|
The Queue Class documentation doesn't say if we can use the class for queueing data structures but I am guessing that as the struct is considered a data type it might be OK. Can anyone confirm or deny that?
Secondly, how do I define and instantiate the equivalent of this C structure in C#
struct ADRMSG {
long PGN;
byte PGNspec;
byte RxData[8]; <--- This is the confusing part for me
}
Thirdly, can I put this definition in a header file so that two seperate class files can enqueue and dequeue these structs from the queue?
Thanks for your patience with my newbie questions.
Cheers, Bruce
|
|
|
|
|
You can use a value type as T in a Queue<T> if that's what you were asking.
You can also use a fixed length array, like so: unsafe fixed byte array[8]; you'd have to turn on unsafe code, obviously.
You can Not put it in a header file, but you don't need to either. Just declare your struct public (on internal).
Last modified: 40mins after originally posted --
|
|
|
|