test

TheMSsForum.com: The Microsoft Software Forum

  • The MSS Forum ‹ PocketPC Developer
    • Archive
      • Biz
      • MCSE
      • CRM
      • Drivers
      • Framework
      • ADO
      • ASP
      • Compact
      • Forms
      • Dotnet
      • C#
      • VB
      • FontpageGen
      • Excel
      • WorkSheet
      • Exchange
      • Setup
      • Fox
      • Fontpage
      • ASP
      • IIS
      • Entourage
      • Money
      • Messanger
      • PocketPC
      • Powerpoint
      • Project
      • Publisher
      • Excel
      • VB
      • Security
      • Portal
      • Services
      • SQLServerDev
      • SVCS
      • SQLServer
      • VB
      • VC
      • MFC
      • ExcelGen
    • Previous
      • 1
        • Detecting a hardware key beeing pressed and hold I managed to use RegisterHotKey to get WM_HOTKEY messages. But that's only good for short key presses. What I haven't figured out yet is how I would detect a hardware key beeing hold for a while before it is released again. Right now, holding a hardware key on my HP rx3715 triggers a secondary application that can be configured through the Buttons settings by the user. Can anyone point me into the right direction? Tag: test Tag: 98170
      • 2
        • Soft Reset I made a today program with embedded c++, it works with the emulator without problems. But I installed the dll into an HP iPaq 6340 and when i make the soft reset the machin doesn't start properly. I have to finish with a hard reset. I don't know if may be the problem is the "processator" I compile the dll like ARM. Any help ? Thank's Tag: test Tag: 98169
      • 3
        • error parsing query in pocket pc using two tables with inner join Hi All, I'm implementing merge replication between a SQLCE 2.0 database on a PocketPC device (PPC) and a SQL 2K database on a desktop (WinXP Pro). I'm a ble to get synchronize and run. but i am getting problem when i use two tables using inner join as show n below sql = "SELECT menu.menu_image, menu.menu_image" & _ "FROM menu " & _ "INNER JOIN mprg " & _ "ON menu.menu_id = mprg.menu_id " drOrders = cmdOrders.ExecuteReader() While drOrders.Read() .. It is giving this error all the time i solved from microsoft kb for this pro blem but giving same error. Error Code: 80040E14 Message : There was an error parsing the query. [Token line number, Token line offset,,Token in error,,] Minor Err.: 25501 Source : Microsoft SQL Server 2000 Windows CE Edition Num. Par. : 1 Num. Par. : 51 Err. Par. : INNER How can I fix this problem? iam using sqlcesp3 and windows ce 2.0 . I did merge replication in sql server . i also deleted the data from tables. i used this option from microsoft : Select the Enforce relationship for rep lication check box that is located under the Relationships tab of the Table Design properties page (for each constraint) in the SQL Server Enterprise Ma nager, and then re-run the Snapshot Agent. But i am getting same error. Looking forward for kind reply, Pramod Renikindi australia Tag: test Tag: 98158
      • 4
        • Silent SP3 .cab installation? Hi group, Is it possible to desploy the dotnet CF SP3 to a Mobile 2003 device with SP1 in "Silent mode". This means: - no "Previous Version Installed, Reinstall?", - and no "Confirm File Replace?" messageboxes during the installation of the .cab file. Deepest regards, Davy PS: I'm using a the wceload.exe tool to install the cabfiles and have WinCE Cab Manager ready if needed. Tag: test Tag: 98157
      • 5
        • error parsing query in pocket pc using two tables withinnerjoin op Hi All, I need this urgently. I'm implementing merge replication between a SQLCE 2.0 database on a PocketPC device (PPC) and a SQL 2K database on a desktop (WinXP Pro). I'm a ble to get synchronize and run. but i am getting problem when i use two tables using inner join as show n below sql = "SELECT menu.menu_image, menu.menu_image" & _ "FROM menu " & _ "INNER JOIN mprg " & _ "ON menu.menu_id = mprg.menu_id " drOrders = cmdOrders.ExecuteReader() While drOrders.Read() .. It is giving this error all the time i solved from microsoft kb for this pro blem but giving same error. Error Code: 80040E14 Message : There was an error parsing the query. [Token line number, Token line offset,,Token in error,,] Minor Err.: 25501 Source : Microsoft SQL Server 2000 Windows CE Edition Num. Par. : 1 Num. Par. : 51 Err. Par. : INNER How can I fix this problem? I did merge replication in sql server . i also deleted the data from tables. i used this option from microsoft : Select the Enforce relationship for rep lication check box that is located under the Relationships tab of the Table Design properties page (for each constraint) in the SQL Server Enterprise Ma nager, and then re-run the Snapshot Agent. But i am getting same error. Looking forward for kind reply, Pramod Renikindi australia Tag: test Tag: 98156
      • 6
        • How to let Connection Manager know RAS connections Hi~ I used RAS API to create DUN connections programmatically on CE4.2 according to Alex Gusev's method (http://www.codeguru.com/Cpp/W-P/ce/pocketpc/article.php/c7355/) . It worked fine, but when I immigrated it to Mobile5.0/Maganeto, here comes the problem: the connections are not shown in GUI, in other words, the Connection Manager don't know my RAS connections although they exists already. Why? What difference is there between the Connection Manager Models of the two version? Thanks in advance :) Regards, Emily Tag: test Tag: 98155
      • 7
        • new development hi, I am new to pocket pc development. I have been looking into the options for the database used on the pocket pc. I intend to use pocket access but it is not installed on the pocket pc. Can someone guide from where to download? Also, is SQL CE the best option after access? Thanks Tag: test Tag: 98153
      • 8
        • who know CDMA signal in Microsoft? could you point me to any person in Microsoft, who know anything about CDMA version of Windows Mobile devices? Tag: test Tag: 98150
      • 9
        • Today Menu Hi, Can I add my application to the Today Menu? or some shortcut or something? thanks jevr.- Tag: test Tag: 98149
      • 10
        • ANN: Call for SDF bug submissions Dear CF community: As we ramp up to the an OpenNETCF SDF 1.4 release, we are calling for info on known bugs or issues. Submit bugs, reproduction steps, (and preferrably fixes) to our online system at http://bugs.netcf.tv. Get them in now if you want them addressed in 1.4. -- Chris Tacke Co-founder OpenNETCF.org Are you using the SDF? Let's do a case study. Email us at d c s @ o p e n n e t c f . c o m http://www.opennetcf.org/donate Tag: test Tag: 98142
      • 11
        • Please help me make setup .inf for CAB Hi, I am trying to make a setup cab. I have looked for simple sample, but only found one for pocket pc. I tried modifying it for my own use, but when I install it, the phone asks me all kinds of questions as to where I wish to store this info, on the phone, or on memory card. Is this possible? I don't want any of these questions. The cab should just install silently, using the directories that I specify. I know that users may want different, but this is something specific and it needs to be installed on the phone. I have only 2 files: MyApp.exe MyFile.data I wish to make a CAB file, so both files are copied to: \Program Files\MyApp And shortcut is made in the Start Menu with text "Start MyApp". That is all.. The cab should install silently. No interaction with user. This is for SmartPhone 2003. Can someone help me write up a simple .inf file to generate the CAB? Tag: test Tag: 98141
      • 12
        • Upload a file from a Pocket PC to a web server? Hi new to C# and Pocket PC. I'm tring to write a program that will take a file from the Pocket PC, and upload it to a IIS web server using HTTP. how would I do this, and do you have any samples of this in C# I can connect to the server, and I can read file copy them to the Pocket PC, however I don't know the steps to write a file to the server. thanks for your help Tag: test Tag: 98138
      • 13
        • Program in C# that talks to COM port ? Does anyone know where I can download a basic but complete program in C# ( with code & GUI so I can modify) that just sends text throught the COM port. I'm using visual studio.Net at the moment and the lack of Serial classes is more than annoying. Tag: test Tag: 98135
      • 14
        • COM: return full path of a caller (ASP) Hello All, I'm trying to write an ATL COM to be used with an ASP on Windows CE Environment. I want to get the full path of an ASP file which calls the COM dll. In my COM, I have a method called "MapPath" which is meant to return the full path of an ASP file. STDMETHODIMP CFile::MapPath(BSTR *strVal) { AFX_MANAGE_STATE(AfxGetStaticModuleState()) // TODO: Add your implementation code here TCHAR filepath[MAX_PATH]; ::GetModuleFileName (0, filepath, sizeof (filepath)); CComBSTR bstr (filepath); *strVal = bstr.Detach(); return S_OK; } The ASP file instantiates the COM object and calls the method. Set objFile = CreateObject ("Object.File") ==> Response.Write objFile.MapPath Set objFile = Nothing When the asp file invokes the method (indicated by an arrow) I expect the method to return the full path of the ASP file ("\Windows\www\wwwpub\file\test.asp"). However, the MapPath method returns "\Windows\services.exe". I suppose there should be more lines of code to retrieve the caller's full path but don't know what and how. I'm very new to VC++. Could you post some code example here please? Thank you very much, Chan Tag: test Tag: 98127
      • 15
        • What problems do you face programming for mobile platforms? Dear developers and user of mobile interactive systems, Where are your difficulties coming from? Did you forget some preprogramming consideration. The link to the page below might just be of great help to you. Give feedback on programming challenges on mobile interactive systems by filling the survey entries. http://www.bscw-a2.igd.fhg.de/surmobis/html_files/surmobis.html Help other developers identify their problems and correct them!!!! Many thanks Pascal Tag: test Tag: 98126
      • 16
        • Problem out of memory Hi, I'm working on Pocket PC 2002 and have an application which is displaying a message : "Out of memory". That's the os which is displaying this message. I want just to know if someone has an idea of that problem ? I think that the problem comes from a procedure in the program : the application is calling every second a dll which in order to display the life time percent of battery. Thanks for any information about that problem. Tag: test Tag: 98119
      • 17
        • Difference among Smart phone, Pocket PC and Handheld Devices Please explain Difference among Smart phone, Pocket PC and Handheld Devices in brief regarding functionality, operating system and design. -- Software Engineer OTS Solutions Pvt Ltd. Gurgaon Hariana (India) Tag: test Tag: 98117
      • 18
        • Service Hello, I created a checker SW in C# in using .NET CF. I would like to run this SW on the background without GUI like a service. I read the articles in the msdn and in the pocketpcdn how to create a service as a DLL with eVC++, but I don't know how to run my managed C# code as a service. Can somebody help me? Thanks in advance, Zsolt Tag: test Tag: 98115
      • 19
        • Online XML Organizational Chart Service is available Check the service http://www.aasoftech.com/Services/xmlorgchartservice.asp The service is "the fastest and easiest way to create simple or complex organizational chart (orgchart) without having to buy, download and maintain software." Tag: test Tag: 98112
      • 20
        • XML parser Hi, I need an XML parser. Don't need it to be validating. Do I have to use the XML parser that's built in into pocket internet explorer (PIE)? How do I use it? samples? COM interfaces are unnecessarily difficult to use. Maybe some stable bugree light PocketPC and SmartPhone class out there? Has to be pure API, not MFC or WTL. Lisa Tag: test Tag: 98111
      • 21
        • How to download Windows CE in PXA255 Hi I am very new in Embedded world. I need to download Windows CE in PXA255 through USB . PLease anybody tell how will i do that ? Regards Dev Tag: test Tag: 98110
      • 22
        • custom CBitmap class In an effort to make it easier for me to work with bitmaps, without MFC or ATL, I created this class. Nothing spectacular, but I'm wondering if this leaks memory or needs improvement. The thing I find most ugly in writing classes to use with native code, is the HINSTANCE required for many functions.. getting this HINSTANCE seems to be done by storing this in a global variable and refencing it. I store it in HINSTANCE g_hInst; This isn't very portable, because my classes then need to reference to this by defining extern HINSTANCE g_hInst; Shouldn't there be a way to get the instance handle through some API's instead ? Anyway, most important is to make sure this class is usable and doesn't leak any memory. Lisa // Bitmap.h: interface for the CBitmap class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_BITMAP_H__14C7E26D_7024_4B10_A80A_CB4789F4F6E0__INCLUDED_) #define AFX_BITMAP_H__14C7E26D_7024_4B10_A80A_CB4789F4F6E0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CBitmap { public: HBITMAP GetBitmapHandle(); BITMAP* GetBitmapPtr(); BOOL DrawBitmap(int x, int y); BOOL LoadImageResource(UINT nResourceId); void Detach(); BOOL Attach(HDC hDC); CBitmap(); virtual ~CBitmap(); protected: BITMAP m_Bitmap; HDC m_hMemDC; HDC m_hDC; HBITMAP m_hBitmap; }; #endif // !defined(AFX_BITMAP_H__14C7E26D_7024_4B10_A80A_CB4789F4F6E0__INCLUDED_) // Bitmap.cpp: implementation of the CBitmap class. // ////////////////////////////////////////////////////////////////////// #include <windows.h> #include <windowsx.h> #include <aygshell.h> #include "Bitmap.h" extern HINSTANCE g_hInst; ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CBitmap::CBitmap() : m_hBitmap(NULL), m_hMemDC(NULL) { } CBitmap::~CBitmap() { if (m_hMemDC) Detach(); } BOOL CBitmap::Attach(HDC hDC) { if (m_hMemDC) Detach(); m_hDC = hDC; m_hMemDC = ::CreateCompatibleDC(hDC); return (BOOL) m_hMemDC; } void CBitmap::Detach() { ::DeleteObject(m_hMemDC); m_hMemDC = NULL; } BOOL CBitmap::LoadImageResource(UINT nResourceId) { if (m_hBitmap) ::DeleteObject(m_hBitmap); m_hBitmap = ::SHLoadImageResource(g_hInst, nResourceId); ::GetObject(m_hBitmap, sizeof(BITMAP), &m_Bitmap); return (BOOL) m_hBitmap; } BOOL CBitmap::DrawBitmap(int x, int y) { if (!m_hMemDC || !m_hBitmap) return FALSE; HGDIOBJ hOld = ::SelectObject(m_hMemDC, m_hBitmap); ::BitBlt(m_hDC, x, y, m_Bitmap.bmWidth, m_Bitmap.bmHeight, m_hMemDC, 0, 0, SRCCOPY); ::SelectObject(m_hMemDC, hOld); return TRUE; } BITMAP* CBitmap::GetBitmapPtr() { return &m_Bitmap; } HBITMAP CBitmap::GetBitmapHandle() { return m_hBitmap; } Tag: test Tag: 98103
      • 23
        • WSPStringToAddress problem in LSP Hi all I have a LSP in PPC. It seems that "WSPStringToAddress" function is always failing because its getting an URL. But this function doesn't resolve URLs. It just converts dot format numeric address to socket address format. What can I do in LSP to avoid this failure? Actually my real problem is, For some reason "the connection arrow icon at the top of the device is always broken even though ANY medium is connected and working fine and the LSP gets all the traffic properly". I went thru all the calls and this is one call that always failed. I am not sure this is the one causing the problem but atleast if I make this fucntion right, who knows, connection icons might be OK :-) I really appreciate any help. Thanks much Ganesan Tag: test Tag: 98100
      • 24
        • finding executable directory Hi, i am using the following to return the path to my executable: Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules()[0].FullyQualifiedName); the problem is, this is always return //Program Files/<AppFolder> It doesn't appear to be driven off where the executable is located, but rather, what settings you use in VS for Project Properties->Device->Output path Folder. so when i am testing/debugging, it is returning the wrong directory, since my executable is located in /bin/release at that time. any ideas what is going on here or how to solve? Tag: test Tag: 98098
      • 25
        • How to transform cordinates in pocket pc? I want to display vector image on pocket pc, but it seems the .net cf not support the "TranslateTransform"method in Graphics. Is there any ways Thanks for any advice Tag: test Tag: 98094
    • Next
      • 1
        • windows mobile 5.0 sdk problem hi, i recently ordered the mobile 5.0 eval kit and installed VS 2005 Beta 2 and Mobile 5.0 SDK on Virtual PC 2004. everthing works fine but project templetes for PPC 5.0 & SP 5.0 in the new project dialog does NOT appears, so i can't make apps for 5.0. but the Mobile 5.0 options do appears in the device toolbar and i can connect and run the emulator manually. does anybody experienced this problem ? i am using VS.Beta 2 on Windows 2000 inside MS Virtual Machince 2004, is this becuase Virtual Machine ? i have already reinstalled evrything including OS. thanks, AB Tag: test Tag: 98093
      • 2
        • Need your help!!! Developers for mobile platforms!!! Dear developers and user of mobile interactive systems, Now is your contribution needed!!!!!!! Help Shape the future of mobile platforms!!!!!!!!!!!!!!!!! Most of us great ideas but we face difficuties realising these ideas because the programming API for mobile platforms does not provide us with all the functionality we need or the system is low-resource proned. This link takes you to the page to address this problems directly to manufacturers of these devices. http://www.bscw-a2.igd.fhg.de/surmobis/html_files/surmobis.html Just take 5 minutes to fill out the survey under the developer section. Contribute for the future! Tag: test Tag: 98091
      • 3
        • SIM Card for DELL AXIM Is there any kit that I can use to develop GSM SIM Card (CF) For DELL AXIM. Sorry We are new and are interested in developing this Support . Thx Tag: test Tag: 98088
      • 4
        • Killing Notification dialogues Hi, i have an app i wrote which can intercept the hardware keys and do something. One of the "something" i would like to do is close dialogues when a certain key is pressed. How can i do this? By "dialogues", i mean modal forms AND those bubble notifications on the taskbar. i know how to find a window by it's class, and i know how to send a WM_CLOSE message. i also have a key handler class that can handle the hardware keys "globally" (meaning it doesn't matter what app i am in, i detect when a key is pressed)... my problem is, i can't seem to detect when one of those lil taskbar bubble notification dialogue appears and i cant seem to "find" them. I assume when the show up, the have the focus, since if i am typing and they appear, i have to click back to where i was to continue typing. However, GetActiveWindow does not return a valid Ptr/Handle when they pop up. I also cannot find them because i do not know the Window Class for these notification dialogues and i am currently not able to get Remote Spy going on my machine for some reason. any assistance would be greatly appreciated Tag: test Tag: 98086
      • 5
        • Is there maximum packet size for GPRS transmission? Hi, I just wrote an application for PocketPC 2003, or to be exact, my newly bought Mini O2. There is a TcpClient on the O2, while server application on a PC. If run using WiFi adapter connecting to its public IP (Server on PC), it works.... without any flaw... except initial connection is abit slow like 2 seconds compare to direct private LAN WiFi. And it work..... The problem arise when I am using GPRS. I found while receiving the packet half way, the functions terminated and was catched with errors. So I am interested to know if there is any untold maximum packet size for GPRS? If so, I will re-write some sub logic to transmit my data by multiple of smaller blocks. If you are curious, my original packets are relatively small, around 3kb~12kb.... It is why I did not write the code to send via multiple small blocks. And it prove to work on WiFi. So it must be something to do with GPRS.... Hope some GPRS gurus here can give some lights..... Thanks for reading... Tag: test Tag: 98085
      • 6
        • POOM error when Create Object in eVB I have a problem with SmartPhone and PocketPC. I can't CreateObject... Please help me! Tag: test Tag: 98082
      • 7
        • Digital Image 2006 Has anyone tried to register D I 2006 yet? Registration form says serial # is invalid. Tag: test Tag: 98081
      • 8
        • Sending keys using button click I have 11 buttons on my form. Buttons 0 through 9, backspace and period (Looks like a calculator). When I click these buttons, I want to send that key like you were pressing it on the keyboard. I was going to use sendkeys.send but that isn't supported in the compact framework. I am looking for something similar to sendkeys.send. Does anyone know how I can do this? Tag: test Tag: 98079
      • 9
        • connection from pc to pocketpc Hi, I want a connection from pc to pocketpc via gprs. THe pocket pc has a "always on" gprs connection. Now e want to "ping" to the pocket pc from our pc (or webserver etc...) can somebody tell us, what to do ? GPRS connection works fine ... Ping from Pocket PC to PC (Webserver) also Works ... BUT ping to pocket pc => no response. THe Pocket PC seems to got an "local" IP from the provider ? ... 10.x.x.x ? So how can I make a socket or a connection from PC to pocket pc if there is no IP address ??? TIA Heino Hellmers Tag: test Tag: 98075
      • 10
        • AudioVOx RTM8000 und RTM8000D Hi, we uses the AudioVOX RTM8000 CF Card (GPRS/GSM) Now we want to uses a "data only sim card". Thats a card we can use to make gprs connections but no phone calls. Can we use this with the AudioVox RTM8000 Card. We know that there is also a RTM8000D where D stand for "Data ONLY" With the RTM8000D there are no functions for phone only for GPRS ... so this shloud work together BUT we want to uses the RTM8000 with a "data only sim card" ... OK we know that we can't make a call because of the "data only sim card" but thats OK for us. The question is: Do we have to my a "full" sim card (phone with gprs) or can we also use a "data only sim card" together with the RTM8000 card ??? TIA Heino Hellmers Tag: test Tag: 98074
      • 11
        • TAPI Support in Ppc [The following query is also posted on microsoft.public.pocketpc] Hello Experts, Forgive me for asking such a generic query, this more of an implementation issue. We're currently under planning stage to develop TAPI components for both PocketPC and PC. We've also observed TAPI's availability in two versions i.e. 2.x and 3.x. This is leading us to a confusion of, which one to use!? One of the decision factors can be, which one is more used/supported, both in terms technical and system compatibilities? So, it is very important to know about TAPI's support for PocketPC; 2.x or 3.x? I hope my english isn't too bad or I can re-phrase the query set to get more explanation :) Any comments/suggestion will be helpful for me. With Best Regards, Vicky Tag: test Tag: 98073
      • 12
        • Internet Explorer for PPC 2003 What is the latest version of Internet Explorer for Pocket PC 2003 using my HP iPAQ h6315 Pocket PC? Tag: test Tag: 98071
      • 13
        • Undocumented DLLs / Decompilation Is there any way to use a DLL which you do not have the API for? I have an iPAQ and the camera / consumer ir dll files on the rom (without an API). How hard would it be to work out the function calls / required parameters / return values in such a case? (like, is it impossible?) Would looking at the strings in the DLL file help? Would a disassembler/decompiler help? Are there any for pocket pc's (there are some for win32 and .net but I haven't been able to find one for ppc). Any pointers in the right direction would be appreciated. Tag: test Tag: 98069
      • 14
        • How best to obtain current battery level on Pocket PC? I'm writing my first major C#.net Pocket PC application. I'd like to periodically monitor the battery level so I can report this to the user when it gets too low. To this end I've installed the OpenNETCF suite of controls. There is a "BatteryLife" control in the suite but I get the following error when I try to use it: "Can not marshal parameter #1: The type definition of thistype has no layout information" I have no idea what this error msg means. Any ideas? I I can't get it working, can you give me some tips about how to get the current battery level? -- Robert W. Vancouver, BC www.mwtech.com Tag: test Tag: 98065
      • 15
        • HowTo: Assign Global Variable Over 2 Forms Well I've been having a blast design a thin PPC client for my web application using mixture xml and webservices. Pardon my newbie quesiton but should be a easy one. My questions is I have two forms, one for "Login.cs" and "Main.cs". Because I'm a web developer, I'm not familiar how to pass a assigned UserID variable after capturing it in Login and being able to use it Main.cs I tried set/get and public methods, is the only way inheritence? Tag: test Tag: 98055
      • 16
        • Question About CeGetDeviceId Is there a way to get the device id (as returned by CeGetDeviceId) from the device side (as opposed to the desktop side through ActiveSync)? If not, is there a way to retrieve the cpu serial number of a device from ActiveSync's registry settings without making remote rapi calls to a dll on the device? thanks in advance, ed Tag: test Tag: 98052
      • 17
        • moving Bitmap between managed and unmanaged code I am trying to move a Bitmap between managed and unmanaged code, so that I can use the Imaging API. The latter is a series of COM interfaces, so I am trying to use it from a dll written in C++. At the moment, I am trying to have the Imaging API create a thumbnail, and display it in managed code. What I have done is: 1. Create a Bitmap in managed code (C#) 2. Use Bitmap.GetHBitmap to get the Bitmap handle 3. Pass the Bitmap handle to a dll procedure 4. In the dll procedure, a. Load the bitmap into a Memory DC b. Use IImage->Draw to draw the thumbnail (previously created in the IImage) to the Memory DC c. Then clean up and return to the calling C# code 5. Display the Bitmap in response to the Paint event in the C# code What happens is, a black bitmap is displayed. No doubt my understanding of how all this should work is in some way flawed, but this P/Invoke stuff is confusing, and I'd appreciate any assistance. I've included some of the code below. C#: [DllImport("dplib.dll")] public static extern void testProc(IntPtr bptr); Bitmap bmp; public ThumbViewer() { InitializeComponent(); bmp= new Bitmap(100, 100); testProc(bmp.GetHbitmap()); } C++: extern "C" __declspec(dllexport) void WINAPI testProc(HBITMAP hBmp) { IImage *pImage; . . . HDC hMemDC= CreateCompatibleDC(NULL); HBITMAP hOldBmp= static_cast<HBITMAP>(SelectObject(hMemDC, hBmp)); RECT r; r.left=0;r.top=0;r.right=100;r.bottom=100; pImage->Draw(hMemDC,&r,NULL); Tag: test Tag: 98051
      • 18
        • Help! Hi, i have my evc++ application and GUI is HTML based. when i exit from the HTML button(link) im able to exit peacefully but i haev few dialogs on the app for volume control etc. but when i try to exit from that dialof buttons i have problems such as The files onthe SD Card gets corrupted sortof. i have to soft reset the pda to get back the files from the SD Card. im using the following code. case IDC_EXIT: EndDialog(hDlg, LOWORD(wParam)); SendMessage(hWnd, WM_CLOSE, NULL, NULL); PostQuitMessage(0); return TRUE; y does this happening? any solutions to this? -- -- Thanks, Arvind Tag: test Tag: 98050
      • 19
        • how to delete phone calls history event? can I delete only one selected phone call event from the history log? how? VC+ Tag: test Tag: 98048
      • 20
        • How to add a number to contacts programatically? Dear all, I need to save a number into contacts programatically? Please suggest me how to do the same as early as possible? I am using Visual Studio .Net 2003, C# for Pocket PCs. Thanks and regards, Pradeep Tag: test Tag: 98047
      • 21
        • Take a look and participate!!! Developer Survey for Mobile Interactive Dear developers and user of mobile interactive systems, Now is your contribution needed!!!!!!! Help Shape the future of mobile platforms!!!!!!!!!!!!!!!!! Most of us great ideas but we face difficuties realising these ideas because the programming API for mobile platforms does not provide us with all the functionality we need or the system is low-resource proned. This link takes you to the page to address this problems directly to manufacturers of these devices. http://www.bscw-a2.igd.fhg.de/surmobis/html_files/surmobis.html Just take 5 minutes to fill out the survey under the developer section. Contribute for the future! Many thanks Pascal Tag: test Tag: 98046
      • 22
        • [HELP ME]Use of Dll "CFReader.dll" Hi at all. I'm an italian developper, a young developper.. I'm doing an application in c# for pocketpc. I'v this dll and an example of use in c++ (.h and .cpp) In the .h file there are this code: typedef long (CALLBACK* LP_GETDLLVERSION)(void); LP_GETDLLVERSION GetDLLVersion; And in the .cpp: GetDLLVersion = (LP_GETDLLVERSION)GetProcAddress((HMODULE)readerdll,_T("GetDLLVersion")); I've translate this code in: [DllImport("CFReader.dll",CharSet=CharSet.Auto,EntryPoint="GetDllVersion")] private static extern Int32 GetDllVersion(); And i call: GetDllersion(); The program compile but it lunch a MissingMethodException.I've put the dll on the app directory but it doesn't work. What can i do? Thanks giomax Tag: test Tag: 98044
      • 23
        • Play sound in a PPC windows form Hello. I am developing my first PPC (2003) application. I want to know how I can to play a Mp3 file in a windows form. I have not found any object that could do this. Unfortunately, OpenNetCF.SoundPlayer object only play .wav files. :-( Can someone help me? Thanks. Tag: test Tag: 98043
      • 24
        • Camera on iPAQ has anyone managed to use the built-in camera on the hp ipaqs (eg. rx3715) without using the pay-for-sdk from hp? is there a DLL that can be invoked? on the actual ipaq, the default software for the camera is "hpcamapp.exe". would there be a way to disassemble the executable to work out what's going on or would this be too difficult? (if you're wondering, im a student and hence dont have enough spare cash to purchase the 200$ sdk - im trying to build an app that can do simple image processing for use with lego mindstorms stuff) Tag: test Tag: 98042
      • 25
        • How can I do "Stop All"-like program? I want to compose a function to close all others running program, just like "Settings->System->Memory->Running Programs->Stop All". I tried to get running process by CreateToolhelp32Snapshot but it only got "Kernel"/"critical process which is not I want. Could anyone know how to do that or have any sample program? Tools: eVC++ 3.0 OS: PocketPC 2002 Tag: test Tag: 98041

Top

  • The MSS Forum
  • The team • All times are CDT