|
WinCE has a max of 32Mb available to a single exe and you are using how much?
zh.again wrote: when i exe file in my PC,it need 32M memory
Who would have guessed!
Do you need to load ALL the bitmaps at start-up? If they are not all in use then don't load them all. You have limited resources available for a mobile device, so code accordingly.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
thank you for your help.
i've load all the bitmaps at start-up.i 've copied them to the same file path as exe files and i run exe file in my PC, no error happened.even if i deleted all images form my project,it need no less than 20M memory.
i am so puzzled....
|
|
|
|
|
I can use Session on login.aspx.cs.
so I used like this.
// Session["Id"]= id;
and I can see components of Session, when I type "Session".
but I can't use that another aspx.cs. page, for example, board.aspx.cs.
There are only two values. SessionPageStatePersister and SessionParameter.
That is all;;
I don't know why...
please let me know..
|
|
|
|
|
1. Post in the correct forum.
2. Do NOT start a new thread because a few minutes passed and you didn't get a reply.
3. Use the code formatting tags properly.
Cheers,
Vikram. Current activities:
Films: The classic Pink Panther series
TV series: Friends, season 3
Books: Liar's Poker, by Michael Lewis. Carpe Diem.
|
|
|
|
|
HI,
Use type casting to assign value to session variable.
Session["ID"]=id;
To extract value on another page from session.
string ID=Session["ID"].ToString();
Base on DataType And ensure
|
|
|
|
|
Dear Friends.
I need to convert Byte value into integer.
ie. for example
Input =7
1. Mark 7th Bit as 1
7 6 5 4 3 2 1 0 (8 Bit)
1 0 0 0 0 0 0 0
2. Split into 2 by 4 bit
7 6 5 4 | 3 2 1 0 (8 Bit)
1 0 0 0 | 0 0 0 0
part 1 | part 2
3. Use 8 4 2 1 logic and apply it
4. part 1 = 8
Part 2 =0
5. Output is 80
|
|
|
|
|
velkumar_in wrote: I need to convert Byte value into integer.
From what you have described it would seem you want to convert a byte to its hex value not an int (here[^])...
and a byte value of 7 would not equal 10000000 it would be 00000111 which is 07 surprisingly
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
simple - use <<
private int ToBin(int bitNo)
{
if (bitNo >= 32)
{
throw new Exception("Too big for int32");
}
return 1 << bitNo;
}
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
(1<<input).ToString("X2")
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
|
|
damn, accidentally deleted my initial message...
Thanks. Do you have any idea where I can find older interops? Such as for office 2000 (i.e. version 9). They don't seem to be available anywhere - I guess there is a reason for that though.
|
|
|
|
|
aastudent wrote: office 2000
As far as I am aware there aren't any. You have to make your own. PIA's are just imported COM type libraries with nice .net friendly wrappers around the ugly interop code.
There's some discussion on it here[^]. Also, check the links at the bottom of the page for some more discussion.
Simon
|
|
|
|
|
I'm making a login page with ASP.NET with C#.
and I know that it needs to use Session for saving information of loggined user.
so I used Session like this on "login.aspx.cs" with Login View Control.
[login.aspx.cs]
// Database query.
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Join"].ConnectionString);
SqlCommand cmd = new SqlCommand("SELECT * From User WHERE id = @ID", con);
cmd.Parameters.AddWithValue("@ID", ((TextBox)LoginView1.FindControl("TextBox1")).Text);
string name = rd["name"].ToString();
string pw = rd["password"].ToString();
string pw1 = ((TextBox)LoginView1.FindControl("TextBox2")).Text;
string id = rd["id"].ToString();
// Save to Session variables. There are a lot of components about Session. Keys, Item, Add,
//and so on..
Session["memberid"] = id;
Session["membername"] = name;
if ((string.Equals(pw, pw1)) == true)
{
FormsAuthentication.RedirectFromLoginPage(name, false);
}
....
And I made codes like this whether lggined user is same with Writer on board or not.
[Board.aspx]
public static bool IsWriter(string pdsId, string Writer)
{
string sql = "Select id From t_Pds Where boardId = @boardId And writer = @writer";
SqlCommand cmd = new SqlCommand(sql, DbConn.GetConn());
cmd.Parameters.AddWithValue("@boardId", pdsId);
cmd.Parameters.AddWithValue("@writer", Writer);
cmd.Connection.Open();
string result = (string)cmd.ExecuteScalar(); // result = ID of writer value.
cmd.Connection.Close();
// I can't use Session. When I use "Session", there are no components of Session.
// There are only two values of Session. ( SessionPageStatePersister , SessionParameter)
if (Session["memberid"] == result) //ERROR.
{
return true;
}
else
return false;
}
}
|
|
|
|
|
Hi guys
I have the code to get the directory list of the xml files in an folder but the problem is that i want to get the files in the creation date order. in other words each file has got an date it was created.
now i want to load all these xml files into an list array and in the creation date order.
is this possible?
my code sofar:
private String[] GetDirectory(String XmlFilePath)
{
List<String> strList = new List<string>();
FtpWebRequest request = (FtpWebRequest)FtpWebRequest.Create(XmlFilePath);
request.Credentials = new NetworkCredential(Username, Password);
request.Method = WebRequestMethods.Ftp.ListDirectory;
StreamReader sr = new StreamReader(request.GetResponse().GetResponseStream());
while (!(sr.EndOfStream))
{
strList.Add(sr.ReadLine());
}
sr.Close();
sr = null;
return strList.ToArray();
}
|
|
|
|
|
|
Hi,
Anybody knows how to convert postscript file of ghostscript printer to dictionary using itextsharp or programatically by any other tool I had tried this command : -
gswin32c -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=test.pdf -fc:\\output.ps
But the pdf generated gives the error %%EOF not found
|
|
|
|
|
Replace the -fc:\\output.ps with just the name of one or more .ps files.
Probably need to add -dBATCH as well, so its more like:
gswin32c -q -dNOPAUSE -sDEVICE=pdfwrite -dBATCH -sOutputFile=test.pdf c:\output.ps
|
|
|
|
|
hii
How can i open a popup window by clicking the day of a calender in c#.
Plz help me.
thanks & regards
Smitha
|
|
|
|
|
Which calendar? The Web Server Control or the Windows Forms MonthCalendar Control?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I have a joystick.I write this code to control my device.but my application has delay after several minute of begin
my receive code:
private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
int count = serialPort1.BytesToRead;
byte[] receive = new byte[count];
serialPort1.Read(receive, 0, count);
foreach (byte data in receive)
{
receivedbyte.Enqueue(data);
}
try
{
ReceiveFrameThread.Resume();
}
}
<here is processframe code:>
void FrameMaker()<br />
{<br />
<br />
<br />
while (permission)<br />
{<br />
bool stop = false;<br />
byte[] tempX = new byte[7];<br />
try<br />
{<br />
<br />
do<br />
{<br />
lock (receivedbyte.SyncRoot)<br />
{<br />
<br />
if (receivedbyte.Count > 7 && !stop)<br />
{<br />
tempX[0] = (byte)receivedbyte.Dequeue();<br />
<br />
}<br />
}<br />
} while (tempX[0] != 0xfe);<br />
lock (receivedbyte.SyncRoot)<br />
{<br />
<br />
for (byte i = 1; i <= 6; i++)<br />
{<br />
if (receivedbyte.Count > 0)<br />
tempX[i] = (byte)receivedbyte.Dequeue();<br />
<br />
}<br />
}<br />
if (permission)<br />
ReceiveFrameThread.Suspend();<br />
}<br />
catch (Exception ex)<br />
{<br />
MessageBox.Show(ex.Message);<br />
<br />
}<br />
FrameProcess(tempX);<br />
}<br />
<br />
}<br />
<start code is>:
void Start()
{
serialPort1.Open();
ReceiveFrameThread = new Thread(new ThreadStart(FrameMaker));
permission = true;
ReceiveFrameThread.Start();
}
&
<big>plz say to me how to dicrease this delay
|
|
|
|
|
Hi CP gurus,
I have a gSoap Web Service written using C++, it uses SOAP username and
password authentication.
I also have a C# client consuming the web service, all this was working
fine until I added the authentication on the server, now I can not get the
client to authenticate web service methods. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.
It may look something like this...
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:80/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:getBatteryLevel></ns2:getBatteryLevel></SOAP-ENV:Body></SOAP-ENV:Envelope>POST
/ HTTP/1.1
Host: localhost:8080
User-Agent: gSOAP/2.7
Content-Type: text/xml; charset=utf-8
Content-Length: 489
Connection: close
Authorization: Basic dXNlcjpwYXNz
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://localhost:8080/Service.wsdl"
xmlns:ns2="http://tempuri.org/ns1.xsd"><SOAP-ENV:Body><ns2:GetDBOldestPendingRow><iMaxRows>100</iMaxRows></ns2:GetDBOldestPendingRow></SOAP-ENV:Body></SOAP-ENV:Envelope>
No how to add the blocked Authentication line in the SOAP message.....???
Searched Google... but no clue is left....
Thank in advance for your help.....
Have a Happy Coding.....
|
|
|
|
|
I have noticed that updating a DGV (only a couple of cells), still has the application repainting the whole grid when an Update occurs! I have an application with up to 6 DataGrids with 5 columns and up to 40 rows. As I step through my loaded database, I see results changing in real time on the DataGrids but it is very slow as it sweeps across the screen. Flicker is certainly noticeable on cell values that have not changed.
I don't see the need to repaint up to 1200 cells when only a few of them have actually changed (value & BackColor).
Even on a blank grid, I have stepped through the CellPainting Event when only the selected cell has changed yet the whole grid is still repainted.
When I take care of the CellPainting myself, only the cells I want to update are modified some flicker is still visible but the performance is vastly improved. However, the other cells are messed up from other windows when they get on top or when my window is resized.
I have noticed the ClipBounds property from the DataGridViewCellPaintingEventArgs informs you of the area that needs to be painted.
Is there something I am missing about the DataGridView CellPainting? Any help much appreciated!
john1166
modified on Tuesday, May 12, 2009 6:32 AM
|
|
|
|
|
I can get the browser reference through a BHO. I can able to get normal web page document but unable
to get the reference of PDF file which is opened on browser. How can I get, when I googled I found
that
Acrobat.AcroAVDoc avDoc = webBrowser.Document as Acrobat.AcroAVDoc;
avDoc.GetAVPageView();
avDoc.GetPDDoc();
How can I get the refernce of PDF file which is getting loaded on Internet explorer when I try to open
a PDF link...
|
|
|
|
|
HI.
I have two C# application ("first" and "Second") and i call "first.exe" from the "Second" program with this code :
System.Reflection.Assembly extAssembly = System.Reflection.Assembly.LoadFrom("c:\\first.exe");
Form extForm=(Form)extAssembly.CreateInstance("first.Form1",true);
this.AddOwnedForm(extForm);
extForm.Show();
Then I want to pass some parameters from the "second" program to the "first" program .
Can anyone help me please?
|
|
|
|