|
In C Language how can we do the following..
conversion of the (int) to char
conversion of the (int) to (unsigned char) ------------interger to unsigned char
conversion of the (int) to (unsigned char *) ----------------interger to unsigned char pointer
Thanks..
|
|
|
|
|
Wrong message board
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Perhaps you should ask this in the C forum instead.
---
b { font-weight: normal; }
|
|
|
|
|
Hello all,
I have written a small windows form application in .NET 2005 using C#.
Now i have to include a functionality of automatic logging off in that application. Will u guys please help me to know whether is there any support already in .NET to do that, or should i do it through threads.
Please help me. Its very urgent. Ur help will be greatly appreciated.
Thanks and Regards
Pavan Joshi
|
|
|
|
|
|
Hi Buddies,
Could somebody help me in implementing a screenlock?
What I'm trin' to do is, if the user is not interacting with the system for a stipulated time I need to lock the screen, thereby forcing the user to enter his password to unlock the system.
Thanks to all in Advance
|
|
|
|
|
Hello,
Fast solution: create a full screen TopMost window with passwordbox.
All the best,
Martin
|
|
|
|
|
funny
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
HI GUYS,
FIRST OF ALL THANKS FOR THE REPLY.....
ISN'T IT POSSIBLE TO CALL SOME WINDOWS API THAT CAN DO THIS JOB FOR ME?
BUT I DONT HAVE ANY IDEA OF WHICH API OR HOW?
OR JUST PUT IT THE OTHER WAY...
HOW DOES Windows SCREENLOCK WORK? ANY IDEA?
|
|
|
|
|
Hi!
The corresponding Win32 function is called LockWorkStation and located in user32.dll .
You can simply use this code:
using System.Runtime.InteropServices;
public class ScreenLock
{
[DllImport("user32.dll")]
public static extern bool LockWorkStation();
}
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
thanks mav.
But how do I know the system idle time?
Does the API does it by itself(I hope no).....?
If I use Application.Idle definitely its not gonna to work.
Is there anything like System.Idle ?
thanks once again for the help & still look forward to you suggestions...
|
|
|
|
|
Hi,
Can you please tell me how can I go to the last visited tab (not the first one, as the default tabControl behaver is) when the current tab is removed?
Your help would be greatly appreciated.
|
|
|
|
|
hi,
try saving the index of the last visited tabcontrol in a global variable. it is easy to do. Declare a global variable and use the tab index change event. and asign the past index to the variable when this index changes to another.
hope it helps
jamil abou khalil
|
|
|
|
|
to use a variable doesn't just solve the problem. for instance if you turn off 2 or more tabs consecutively it won't work.
if you use a routine that allows to include and to remove several tabs then it should use a LIFO.
when eliminating a tab it removes all the occurrences of this in the LIFO and go back to the last tab of the LIFO.
|
|
|
|
|
Hi All,
i am creating a Desktop application using Microsoft Visual Studio .NET 2005..
i am using .sdf file as my database..and using typed dataset for querying data..
my problem is that when i am making changes to my records (add new, deleted, updated) then the changes reflects only till my application is running when i restart the application then i am not getting my changes...
i am using TableAdapter.Update(Datatbale) to update..
please tell me wheather i need to use any other method..
Amandeep Kirar
New Delhi, India
|
|
|
|
|
Hi ALL,
We have a standalone application which was developed in C#.Net.
Now we want to develop the same as an Eclipse Plug-in.
Since I'm a beginner to Java & its related technologies,
if you could suggest me a good way to do this,
it would be highly appreciated.
In this regard, I have the following specific queries:
1) Will I get the similar look-and-feel (atleast to the nearest)
in my Eclipse plugin?
2) Is there a Java counterpart to most of the .Net components
(Properties editor, Grid view, etch.,) ?
3) Is there any tools available to convert a .Net application
into a Java application? If so, to what extent it would be helpful?
Kindly bear my newbie-questions.
Thanks in advance,
Sarvan AL
|
|
|
|
|
1 - I dunno, but it won't be exact, as Eclipse uses horrid Java UI components
2 - No.
3 - No.
|
|
|
|
|
Can you please tell me why is that and how can I solve it?
if (backgroundWorker.IsBusy) <br />
System.Diagnostics.Process.GetCurrentProcess().Kill(); <br />
Application.Exit();
Does the work, but I have a feeling that this is not a proper way to do it!
Please help. Thank you in advance.
|
|
|
|
|
hi,
try using this.dispose() instead of Application.Exit()
hope it helps
jamil abou khlail
|
|
|
|
|
Hello,
Friends i want to do start a new process through coding but
it must not be shown in the task manager which is showing currently running
processes.
How to do that process hidden that is any one can not find that
process in the task manager. Only we can start and stop it programatically.
Rahul Kulkarni
|
|
|
|
|
You can't. You'll have to find another way to write your virus.
|
|
|
|
|
No brother...
I don't want to make virus...
Just wanna to do an application..
Rahul Kulkarni
|
|
|
|
|
A hidden application. Users have a right to know what processes are running on their machines.
Steve
|
|
|
|
|
RahulRKulkarni wrote: Just wanna to do an application
Then why do you want to hide it?
|
|
|
|
|
Hi,
I am using DataGridView in my application.I am creating a datatable which has fields whose DataType are Text,Boolean and Datetime.
I am assigning the created datatable as the datasource for the DataGridView.
But the value displayed in the DataGrid for the DateTime field is different from the Value present in the Datatable.
Ex: if the value for one of the DateTime field in the DataTable is 11/09/2006 10:04:40 PM,it is shown in the DataGrid as 11/09/2006 10:04 PM the seconds value is not shown.
When i checked the properties for the DataGrid Cell the EditedFormattedValue was 11/09/2006 10:04 PM and Value was 11/09/2006 10:04:40 PM.
This is happening for only the DateTime field.
Any idea why is it happening.
Regards
Vinutha
|
|
|
|