Hi I want to make an application which can retrieve the network provider, manufacturer name and model name of the device. Is there any way to do that
anuhoho
Posts
-
How to retrieve manufacturer name , model and name network provider of a windows mobile device -
Finding problem in connecting the SQL Server CE database with my smart device applicationHi I am making a simple smart device project in C# where I have a login screen and I want to store the data using SQL Server CE. I have followed this link to connect my smart device project with the database, but I am finding problem http://www.codeproject.com/KB/mobile/loginsmartdevicedatabase.aspx In this link in the last section it says that after we build our project we will be able to see the data table adapter frame in the toolbox which we can drag into the project and can work but after building the project I am not able to see that frame anywhere in the tollbox. Can anyone help me as to why this is happening Thanks in advance!!!!
-
How can I run a exe in the start up of a windows mobile deviceHi Is it possible to start an exe whenever the system reboots.
-
Finding certification errorHi I have an exe and I want to start it when the device reboots so I created a short cut of it in the StartUp folder with SHCreateShortCut API .... but when my device reboots the exe doen't start its gives a certification error dialog box stating that "The file cannot be opened .Either it is not signed with a trusted certificate or one of the components cannot be found" Actually I have an application and in the cab file of that application I have included that exe( in the Program Files folder) and i have tried to put that exe in teh wiindows startup. Can anyone help me in t his regard as to how tackle this prob
-
How can I use CeRunAppAtTime for a threadHi I want a thread to start after 15/20 min For that can I use CeRunAppAtTime() .If yes can anyone provide me ways to do that. Suppose this is my thread
void main()
{
..
..
g_handle= ::CreateThread( NULL, 0,MyThread, NULL, 0, 0);
....}
Now I want This MyThread to start after 15/20 min can I do that Thanks in advance
-
How to use a timer in a dllSetTimer requires a message pump but my dll doesnt have any. So i cant use it. I need an alternative of Sleep() so that i can use it
-
How to use a timer in a dllCan anyone suggest a way as to how i can use a timer in a dll.How we can use windows messages or settimer . Thanks in advance!!!!
-
How can i attach a dll in the start upHi I have a small query. I have a dll and I want it to start as soon as my device reboots. Is there any way of doing it. How about putting it in the windows start up, so that whenever my device will start my dll will also start. Can anyone provide me with some logic. Thanks in advance!!!!
-
How to program sleep in windows mobileHi I have an application in which i have a thread which is expected to do an activity after half hour. SO i used sleep() but while testing(in one scenario) i saw that when the device go in the sleep mode then the time taking to do the activity for that thread is more then the desired time of 30 mins. That is my sleep() is not working accurately when my device goes in the sleep mode. So how can i programatically make a 30 min delay without using any info from the device OS(like gettickcount etc). My application works fine if I keep the device awake i.e., if i dont allow it to go to the sleep mode forcefully. But the problem arises when it goes to the sleep mode. The time taking is much more ... Is there any remedy for that. Thanks in advance!!!
-
Some problen in converting char * to LPCWSTRthnx it worked
-
Some problen in converting char * to LPCWSTRwhat you suggest then
-
Some problen in converting char * to LPCWSTRSO what you suggest seeing the above code,.what should i give
-
Some problen in converting char * to LPCWSTRHi I am facing some problem in the following code .Actually I am not able to print the full data present in my LPCWSTR .Here is the code
....
SYSTEMTIME current_time;.GetLocalTime(¤t_time);
char *str =new char[2000];
sprintf(str, "%4d/%2d/%2d %2d:%2d:%2d:%2d\n", current_time.wYear,current_time.wMonth,current_time.wDay,current_time.wHour,current_time.wMinute,current_time.wSecond,current_time.wMilliseconds);
int i;
wchar_t *pwc = (wchar_t *)malloc( sizeof( wchar_t ));
i = mbstowcs( pwc, str, sizeof(str) );
WriteToLogFile(pwc);
delete [] str;
In the log file I just want to print the year date and time but only the year gets printed. Here is the log file
void WriteToLogFile(LPCWSTR strData)
{
try
{
ofstream myfile;
myfile.open("\\MyData\\Log.txt",ios::app);int iSize = WideCharToMultiByte(CP\_ACP,0,strData, -1, NULL, 0, NULL, NULL ); char\* lpNarrow = new char\[iSize\]; lpNarrow\[0\] = 0; iSize= WideCharToMultiByte(CP\_ACP, 0,strData, -1, lpNarrow, iSize, NULL, NULL ); myfile<
Any help on this..
Thanks in advance
-
Need some help immediatelyLet me explain a bit what i am doing. We have a MapiRule example in one of the SDks(Windows MObile 6.0 SDK)where we are setting a rule of collecting the sms somewhere else apart from the default inbox.. This is the application which I am modifying a bit. Now when I install this dll in the device its get attached to one of the process(of which I have no idea)and starts working at the background. Now I want that this dll which is running at the background should be able to get a keymessage event(or a stylus event) and do something...but Suppose I am switching the device off then i want that a message box will pop up..something of that sort. Now if you got some idea will you be able to help me out. Thanks in advance!!!
-
Need some help immediatelyMy problem is my dll is getting attached to one of the processes which I dont know so its difficult for me to trace.Is there some solution or remedy to my problem
-
Need some help immediatelyCan you help me with some code as I am not very aware of this keyboard hook.
-
Need some help immediatelyHi Can a dll have a message loop so as to capture key press event. Suppose I have a dll running in the background of any device and as a user i have pressed a key .Now I want my dll to capture that event.How can i do that. Someone suggested to use a windows message hook but i am not very aware of this .Can any one suggest some sample code or some ways . I have made the dll in native C++. Thanks in advance
-
Need some help immediatelyHi Can a dll have a message loop. I want to make a dll which can capture the key pressed event on a device and start doing something. Can anybody help me with some sample code as to how do that. Suppose i being the user have pressed the switched off button on the mobile(Windows Mobile) and my dll is working in the background . So how can i make my dll aware that a key has been pressed and I have to do something according to the pressed key. Thanks in advance!!!!!!!!!!!!
-
How to programaticaly switch from suspend mode to power on mode in windows mobileHi I want to make an application which can detect when my device is going to the sleep mode and then it will immediately on the device. I tried a little bit but in vain Let me show what i tried. Actually i am creating a thread which will try to detect when my device is going to the suspended state then it will try to power on .My logic is in this way but the functions i might be using may be a matter of concerned. Need guidance in that
In the WinAPI I am starting the thread
..
//Create a thread
m_hThread = CreateThread(NULL, 0, ThreadProc, NULL, 0, NULL);
...And in the thread function I am doing this
DWORD ThreadProc(LPVOID lpParameter)
{
LPWSTR pBuffer = NULL;
PDWORD pdwFlags = NULL ;
DWORD iState = NULL;
while(TRUE)
{
iState = GetSystemPowerState(pBuffer,sizeof(pBuffer),pdwFlags);
if(iState == POWER_STATE_SUSPEND)
{
SetSystemPowerState(NULL,POWER_STATE_ON,POWER_FORCE);
return 1;
}}
return 0;
}