When u do the hard reset, the DEVICE goes to factory settings. Meaning, it'll be set to the initial configuration which was provided by the vendor(i.e., program stored in the ROM are loaded.) So, you may want to load your program onto ROM than that of RAM. I'm not sure about writing into ROM. Correct me If I'm wrong and let me know how to do the same. Zxczc
DasdaDAS
Posts
-
How to Launch Program on Reset? -
udp failure in WindowsCE 4.2This call(recvfrom) is waiting infinitely and the application never comes to next line. I'm using UDP sockets. The data has been sent successfully to server. But I'm facing problem while receiving it. I tested on both smartphone emulator and real device(samsung). In both targets, the application is crashing when it reaches this line. Any idea why it's happening?. Your help is greatly appreciated. i = recvfrom(s1,packetbuffer,sizeof(packetbuffer),0,(SOCKADDR *)&addr,&cbRemoteAddrSize); Zxczc
-
recvfrom() - blocked in Win CE 4.2This call is waiting infinitely and the application never comes to next line. I'm using UDP sockets. The data has been sent successfully to server. But I'm facing problem while receiving it. I tested on both smartphone emulator and real device(samsung). In both targets application is crashing when it reaches this line. Any idea why it's happening. Your help is greatly appreciated. i = recvfrom(s1,packetbuffer,sizeof(packetbuffer),0,(SOCKADDR *)&addr,&cbRemoteAddrSize); Zxczc -- modified at 5:16 Tuesday 15th November, 2005
-
Number of threads Windows CE supports...Hi, Does anyone know how many threads we can create in Windows CE? I'm aware that it depends upon the system properties. Let us say, I have 64 MB RAM(minimum) in my device, then how many threads I can create? Thanks, Zxczc
-
Problem with Eventlog in Windows 2003 serverI have a dll which is getting instantiated from one virtual directory. And inside the dll I'm calling the following functions. HANDLE hEventSource = RegisterEventSource(NULL, _T("TrxDax") ); if (hEventSource != NULL) { .. int b = ReportEvent(hEventSource, EVENTLOG_ERROR_TYPE, 0, 0x00000001L, NULL, 1, 0, (LPCTSTR*) &lpStrings[0], NULL); ... } 1. Actually the RegisterEventSource() call is failing if the call is made from virtual dir. in Win2003. GetLastError() is returning error value(5) meaning Access denied for the call. 2. But the same thing is working on earlier versions(win2000,XP..). 3. And when the above code is used in a .exe file(simple exe file), then it's working in Win2003. Meaning..(error is reported in eventlog). 4. So, Does the enhanced security in 2003 is blocking the call when it's instantiated through virtual dir.? Is it clear? or do let me know if some more input is needed.. Thanks Find a job u love and u'll never have to work for a day in your life.... Zxczc
-
IIS problem in Windows 2003 Server + SP1. - UrgentHello, We have a product with n tier architecture, which is working properly in Windows 2000. And in windows 2003 it's giving some problem. When we investigated the event viewer, it looks like problem in IIS. So, Is there a problem in IIS in win-2003 environment. If so, how do we debug the problem. Restarting the IIS will give the temporary solution. thanks, Zxczc
-
the big Chaos.....Great.. Zxczc
-
the big Chaos.....Can any one explain when to use abstract class and when to use interface? Or under which scenario we should use abstract class and interface..... Zxczc
-
Calling C# class library in VC++6.0.......I built a class library in C#. It consists of one public method as shown below. public int calculate(int x,int y) { return x+y; } And I built the .tlb file using Regasm.exe for using it in VC++ 6.0. I created the object for the interface also. but, I can't call the methods in the class. I instatiated in the the interface as follows. void CDialogDlg::OnButton4() { MYSampleLib::_SampleClassPtr ptr;//(__uuidof(MYSampleLib::_SampleClass)); ptr.CreateInstance(__uuidof(MYSampleLib::_SampleClass)); int i = ptr.calculate(90,80); } I got the following error. error C2039: 'calculate' : is not a member of '_com_ptr_t >' what's the Chaos here??????? I'm not sure, this is the correct question in this thread or not ........ Thanks, Zxczc
-
Receiving SMS problemIt may be the platform problem. The target(i.e., PDA) may be running with PPC 2002 or some mismatch might be there. Once u find ur application compiled successfully, and if the IDE is not registering the dll on PDA, go ahead and copy the dll manually by exploring the PDA dir. Copy it windows dir. of PDA. Hope this may help, thanks Zxczc
-
dll for pocket pc...I'm not sure what u r saying. But, what I understood is, u want to create a dll using EVC(may be regular/extension dlls), and u want to include this into ur application. This can be done, In normal way, as u r doing in VC++( desktop application), except u have to select the target processor in which the PDA is running. The dll(server) will be registered onto the PDA when u rebuild the dll. Then u can start usiing ur dll. remember this is alomst simillar to the desktop application. So, u need to mention the path of .lib, etc.. as u r doing in desktop. I haven't tried using the C# yet. If this not helps, let me know what exactly u need. thanks, Zxczc
-
LIB DependenciesThe File view in the workspace should list out all the dependencies.. This u can c in the visual studio IDE itself. hope this will help :) Zxczc
-
SetItemData, GetItemDataOr u can do ur codings in OnInitDialog() :laugh: Zxczc
-
April 1sthey, happy B'day to u guys. :cool: Zxczc
-
MFC CreteProcessYou need to mention the two parameters(STARTUPINFO & PROCESS_INFORMATION) and initialize it. Then the path of the the ".exe" file should be specified with "\\" instead of "\". If u use "\" the compiler will understand that as a escape sequence. STARTUPINFO sinfo; PROCESS_INFORMATION pinfo; ZeroMemory( &sinfo, sizeof(sinfo) ); sinfo.cb = sizeof(sinfo); ZeroMemory( &pinfo, sizeof(pinfo) ); BOOL b = CreateProcess("C:\\Program Files\\Microsoft Visual Studio\\Common\\MSDev98\\Bin\\msdev.exe",NULL,NULL,NULL,NULL,NULL,NULL,NULL,&sinfo,&pinfo); int error = GetLastError(); try this and let me know, if u have any problem.:cool: Zxczc
-
capture video frameMCI_CAPTURE - use this command in the mciSendCommand() this may help. just try that. Zxczc
-
Execute Program without waiting for terminationyes, I'm sure CreateProcess() is the right solution. Zxczc
-
Process and parentHi, I'm not sure what u mean. but the following may help. FindWindow() - API. thanks, Zxczc
-
How to create CButton dynamically in MFC?Hi, U can use the following method to create the buttons dynamically. In the following statement "but" is the CButton object which is declared as public class variable. if(!but.Create("click me",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,CRect(10,10,100,30),this,ID_MYBUTTON)) AfxMessageBox("Button Not Created"); else AfxMessageBox("Button Created"); The argument ID_MYBUTTON is a macro and should be replaced with some integer values like below. #define ID_MYBUTTON 100 Then the message handling mechanism. First declare the member function in the class like as below. void MyMessage(); In the message map macro add the following step. This should be in the message map of the class in which u r going to create the button. ON_BN_CLICKED(ID_MYBUTTON,MyMessage) and define the function, i.e., MyMessage(). finally make sure that, ur member function and data members are displayed in the class view. Hit the execution icon, and check the result. Hope this will be little drilling for the people who doesn't have much knowledge about mfc and its message hook mechanism. Let me know if u have more doubts. thanks, Zxczc
-
network printing problemHi, To show the printer Dialog, you can use CPrintDialog class with appropriate values in the constructor. May be this will help u, if u use mfc. Find the job u love and u never have to work for a day in ur life.