CoGetMalloc under Windows CE
-
Netmeisters, I am trying to use OLEDB under Windows CE. To do this, apparently one has to use the Free method of the IMalloc interface to release memory returned by methods such as GetColumnInfo. I should be able to get a pointer to IMalloc with CoGetMalloc. However, when I try to use this function, I get an error of unresolved external. As far as I can tell, CoGetMalloc is supposed to be in ole32.lib, which is part of the project. This is with the emulator, incidentally. Does CoGetMalloc not exist under WinCE for some reason? If so, how does one get the IMalloc pointer? Any suggestions much appreciated.
-
Netmeisters, I am trying to use OLEDB under Windows CE. To do this, apparently one has to use the Free method of the IMalloc interface to release memory returned by methods such as GetColumnInfo. I should be able to get a pointer to IMalloc with CoGetMalloc. However, when I try to use this function, I get an error of unresolved external. As far as I can tell, CoGetMalloc is supposed to be in ole32.lib, which is part of the project. This is with the emulator, incidentally. Does CoGetMalloc not exist under WinCE for some reason? If so, how does one get the IMalloc pointer? Any suggestions much appreciated.
AFAIK CoGetMalloc is not supported under Windows CE... - Anders Money talks, but all mine ever says is "Goodbye!"
-
AFAIK CoGetMalloc is not supported under Windows CE... - Anders Money talks, but all mine ever says is "Goodbye!"
If CoGetMalloc is not supported under WinCE, how do you release the memory allocated by the various GetProperties and GetColumnInfo methods of OLEDB? Is there another way of getting to the IMalloc interface, or do you just use delete or free? Thanks, Matthew Fleming
-
If CoGetMalloc is not supported under WinCE, how do you release the memory allocated by the various GetProperties and GetColumnInfo methods of OLEDB? Is there another way of getting to the IMalloc interface, or do you just use delete or free? Thanks, Matthew Fleming
To be honest I don't know, I have not done COM programming under Windows CE. I could just see in MSDN that CoGetMalloc was not supported... - Anders Money talks, but all mine ever says is "Goodbye!"
-
Netmeisters, I am trying to use OLEDB under Windows CE. To do this, apparently one has to use the Free method of the IMalloc interface to release memory returned by methods such as GetColumnInfo. I should be able to get a pointer to IMalloc with CoGetMalloc. However, when I try to use this function, I get an error of unresolved external. As far as I can tell, CoGetMalloc is supposed to be in ole32.lib, which is part of the project. This is with the emulator, incidentally. Does CoGetMalloc not exist under WinCE for some reason? If so, how does one get the IMalloc pointer? Any suggestions much appreciated.
I've done this exact project and I used CoTaskMemAlloc/CoTaskMemFree and malloc/free for allocating buffer space. Bret Faller Odyssey Computing, Inc.
-
I've done this exact project and I used CoTaskMemAlloc/CoTaskMemFree and malloc/free for allocating buffer space. Bret Faller Odyssey Computing, Inc.