User Profile
Collapse
-
Read each byte from the binary file, then based on the conversion you shift it right or left to match the *-endian nature. Just a 1 cent answer in 1 second. So do not mind. -
Few years back when i was learning .net 1.1, we used to do Remoting for such scenarios...my memories are all dried up but i thought if u think on these lines you would be able to solve it....Leave a comment:
-
Enable Tracing and do a little performance test yourself .... Tracing gives lots and lots of information...Leave a comment:
-
programming for exceptions is considered to bad. Instead modify your code such that as much as possible do not throw exception and instead return status as Enum or boolean or whatever that makes sense.
usually exception messages are for feedback purpose. may be i am wrong, but this is my opinion....Leave a comment:
-
Like I said earlier, been a really long time since i did any win daemons.
anyway, try to run the service on a super user account, like other windows services which (much to our dismay) keeps running even if u log out...Leave a comment:
-
I agree, vectors are very slow. If u are good at writing non-leaking code, I would prefer arrays over anything....Leave a comment:
-
so I inherit a JFrame, so I own the private members? Also Java community leaders do not decide what inheritence is. It has been around right since the 60's (thats when Gosling was probably in primary school at that time).
Try this out.
Code:class Super { private Super() { } } class Sub extends Super { }
Leave a comment:
-
hmm...it was long back so i am not too sure. But i think the user account was all right. like i said there is an option that enables your service to interact with the desktop,...Leave a comment:
-
Not sure if this is what you are looking for ...
http://krishnabhargav. blogspot.com/2006/02/i-got-date-with-datetimepicker. html
Search for "CustomFormat". ..
Should be applicable for other dates too.Leave a comment:
-
Write a method isFound....
Code:bool isFound(int[] array,int arraySize, int key) { // write your search code in here for(int i=0;i<arraySize;i++) if(array[i] == key) return true; return false; } int main() { int key = 123; //assume u have 123 to search for //you have two arrays array1,array2 bool inArray1 = isFound(array1,array1Size,key);
Leave a comment:
-
You should feel sorry....no one is expert in anything ... what is the output of this program...
Code:#include<iostream> using namespace std; int main() { long quo = 24 * 60 * 60 * 1000; long div = 24 * 60 * 60 * 1000*1000; cout<<div/quo; }
anyway, the above code is taken from a popular...Leave a comment:
-
Simple example to illustrate bitfields
Code:#include<iostream> using namespace std; typedef struct ref { unsigned int i:4; unsigned int j:2; }; int main() { ref r1; cout<<sizeof(r1)<<endl; r1.j = 3; //since r1 is 2 bits, max value is "11"(binary) or 3 cout<<"Value of r1.j(2 bits)"<<r1.j<<endl;
Leave a comment:
-
Those are called Bit Fields...
en is 1 bit, sm is 4 bits and g is 8 bits while gate is 16 bits
refer : http://www.informit.co m/guides/content.aspx?g= cplusplus&seqNu m=131...Leave a comment:
-
Are u 14 yr old or have u been programming for the past 14 yrs?
Anyway, my tips for good programming ...
1. do ur coursework assignments on ur own, if applicable
2. If not applicable, take an introductory programming book and do atleast 50% of end chapter exercises
3. Visit forums and try to answer the questions
4. Now a days, read lots of blogs...Leave a comment:
-
Private members are not inherited.
Being able to access private members through accessor methods like getters and setters do not mean they are inherited but cannot be accessed with a "." operator.
Inheritance has to do with the visibility of the members. Take this case, if you have a private method say doSomething(), you cannot invoke it from subclass. If it was inherited there should be a way to invoke it,...Leave a comment:
-
In your HTML HEAD section.
include the JS file using
<script src="filename.j s"></script>
Also somewhere you should define what "TimerDispl ay" is...
Let us say there is a div as shown ..
<div id="timer"></div>
within head ....
<script>
startShowingTim e()
{
TimerDisplay...Leave a comment:
-
It does not work that way.... I remember doing a Windows Service Project where I launched a Notepad process. But guess what, Notepad would run and you can see it appear in the taskmanager, but you would not be able to see the GUI.
It was almost 3 years back and I do not remember exactly. But here is what I think that would work.
Go to Services->Select your service and go to properties->Log on tab.
...Leave a comment:
-
Do you want to show server time or time on the client?
Either way you could do that without any postbacks or server interaction.
If it is server side time you wish to show .. then send the time once from the server and use client side javascript to increment the seconds regularly.
if it is client side time you wish to show, then use Javascript date time methods.
With little scripting, you...Leave a comment:
-
Are you doing a Close() on the StreamWriter object you are using.
Go to visual Studio->Debug->Exceptions->Managed Debugging Assists and enable StreamWriterBuf feredDataLost
This would raise an exception in case an S W object is not closed before finalize().
Read this article ..
http://blogs.msdn.com/bclteam/archiv...13/214405.aspx
90% of the times its Close() that gives...Leave a comment:
-
Use onBeforeUnload event on BODY and when this event fires, just post a request to the server to logout the current user or display an alert ...
http://msdn2.microsoft .com/en-us/library/ms536907.aspx...Leave a comment:
No activity results to display
Show More
Leave a comment: