|
|
Hi,
I'm create new store (.pst) in Outlook. There are two folders in it by default (Deleted Items and Search Folders). How can I delete this folders?
WBR, Rider.
|
|
|
|
|
Hi,
I'm trying to use Rob Manderson's article Capture an HTML document as an image to capture full site as image. The problem is that the CCreateHTMLImage class needs a size to work with, and it crops the image to that size. Since we have the html page loaded already, how can I get the *real* page dimentions from the browser/doc/html interface ?
Thanks
Yariv
|
|
|
|
|
Yariv wrote: how can I get the *real* page dimentions
HTML pages don't have 'real' dimensions; they size to fit their container.
|
|
|
|
|
but still, the web browser has scroll bars if needed. I tried to use the get_HWND() method to get the web browser window and to try and calculate its size by using the scroll bar info. Although I have found a lot of examples of using this method in the internet, in my app it fails to return valid HWND.
Any ideas ?
|
|
|
|
|
CDHtmlDialog or CHtmlView arent good for your program.
|
|
|
|
|
Each time when I plug in USB memory stick to the pc, there is a window (file folder for the USB drive) pops out. I have application to indicate whether a USB memory stick presents.I don't want this auto window to pop out. How shall I resolve it??
|
|
|
|
|
|
Yeah, it runs on XP. I've opened USB drive property and didn't find way to turn off autoplay. There are program options for different data stored in the USB drive. For example, if there is music stored in the USB drive, I can either pick windows media to play it or do nothing. I set all listed item with "No AutoPlay". But the USB drive folder opens up each time the USB drive is plugged into the PC.
The USB drive I'm using will only store files. I need windows to assign drive letter for it , but not to open the folder for that drive.
Please advise further
Thanks
Vicky
|
|
|
|
|
Drive's properties has AutoPlay tag where listed content types of music, video, picture, and the mixed. I seleted "Take No Action" for all of them and retried the USB drive. But each time when the USB drive is plugged into the PC, the folder automaticly is opened up.
|
|
|
|
|
I have unicode application developed on Win XP. I am trying to run it on Window98/ME. I could run the application successfully on Windows 98, by building my application with MSLU libraries. However when I try to run it on Windows ME, its crashing with the error that .exe is crashed in MFC42Lu.dll.
We have even tried to build the MSLU libraries and dlls on Win ME OS itself and use the same. However Unicode application will not start.
Do we need to do any particular modification in my application to get it run on Win ME?
Any Sample unicode application that runs on ME?
Any clues in this regard will be highly appreciated.
Thanks - Suyash
|
|
|
|
|
HAPPY FRIDAY!!!
In the ReadFile() function there's an option where you can set it to be overlapped (i.e. be used in asynchronous I/O operations).
If you want to be asynchronous you have to set the "Overlapped" struct's offset member...
However, it says that: "Offset - File position at which to start the transfer. The file position is a byte offset from the start of the file. The calling process must set this member before calling the ReadFile function. This member is used only when the device is a file. Otherwise, this member must be zero."
Here is where my confusion comes from...
I have a FIFO, from a device that I'm communicating with, which is 1K by 32-bit word large.
I need to make ReadFile() asynchronous because of speed constraints.
Can I set the "Offset" if I'm reading from a FIFO? Will FIFO be considered a "File" in this case?
The theory is to send an initial command to fill the FIFO upto 0x155 32-bit words. Then initiate ReadFile(). While this is doing it's thing I'm going to send another command that fills the FIFO with another 0x155 32-bit words. Then initiate ReadFile() on that set of words. While this is happening send a third command, issue a ReadFile()... After this go back and check to see if the 1st ReadFile() issued has completed, etc.
is this possible? or am I dreaming...
Thanks!
Kitty5
|
|
|
|
|
Are you opening up a serial port to use with ReadFile?
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Zac Howland wrote: Are you opening up a serial port to use with ReadFile?
I've created a handle to the device which is plugged in to one of the PCI slots.
The card is a PCI/Altera-485 LVDS card.
I'm trying to get data from the Xilinx's DMA FIFO.
-- modified at 10:49 Friday 11th August, 2006
Kitty5
|
|
|
|
|
This is just a guess, but I would imagine that the card would treat the FIFO like a buffer stream. That is, you will always be reading from the top fo the stream, so you would always pass in 0 to ReadFile.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I use a modem as a serial port. How can I get in a c/cpp program which port is associated to the modem?
Of course I know it from Device Manager , but I have to know it in the cpp code.
Tamas Dani
|
|
|
|
|
It's OK now, I solved it already. The solution is to ask the registry, here is a sample code:
#include <tchar.h>
#include <windows.h>
#include <stdio.h>
static bool GetModemPort(char *pcPort);
int _tmain(int argc, _TCHAR* argv[]){
char acPort[32];
if(GetModemPort(acPort))
printf("Modem port: %s\n", acPort);
else
printf("error\n");
return 0;
}
static bool GetModemPort(char *pcPort){
HKEY hKey;
char acPath[64]= "SOFTWARE\\Microsoft\\Ras\\Tapi Devices\\Unimodem";
LONG lRet;
DWORD dwBufLen;
if(!pcPort) return false;
lRet= RegOpenKeyEx(HKEY_LOCAL_MACHINE,acPath,0,KEY_QUERY_VALUE,&hKey);
if(lRet != 0) return false;
lRet= RegQueryValueEx( hKey, "Address", NULL, NULL,(LPBYTE) pcPort, &dwBufLen);
RegCloseKey(hKey);
if(lRet != 0) return false;
return true;
}
|
|
|
|
|
I am after a MFC control with which I can plot a 3d surface. The 3d surface data is from a 2d-map represented with floats.
In my search for this control i only found this as an preliminary alternative,
http://www.codeproject.com/opengl/ntgraph3d_atl.asp. Does anyone have any other alternatives? Anything?
|
|
|
|
|
Hi,
I'm trying to animate a single line which I've created with DrawLine(). The only possibility I know is using TranslateTransform() but with calling this method there is only made a copy of the old line.
So has anyone an idea how to perform an animation with a single line?
Would be really appreciate for answers.
|
|
|
|
|
|
Ohm at first thank you for your fast reply but I've already downloaded the redist.
The only thing I want to do is to realize a small animation only with lines. The thing is I would know
how to do that with Bitmaps because there are many tutorials about that. But with lines or rectangles or something... I don't know
|
|
|
|
|
Doesn't has to be GDI+. Could be everything else. Only requirements are drawing, moving, scaling, rotating shapes. I have considered DirectX or OpenGl but it sounds a bit too complicated for only doing such easy things...
|
|
|
|
|
Whats yoru problem with TranslateTransform ?
|
|
|
|
|
TranslateTransform only copies a line and doesn't move it. So there is still a line at the previous position.
-- modified at 19:09 Tuesday 15th August, 2006
|
|
|
|
|
hi guys ,,,,,,,,,
please any one of u can provide me a vc++ TAPI sample which makes a call to the phoneee.........
its urgent man plz help........
thnx in advance........
best regards
Rocky
|
|
|
|