|
Cheers Guys
The reason i haven't used memcpy and memove is that earlier on i have a function that copys DWORDS to the beginning of the buffer and memove and memcpy overite this DWORDS see this (pBuffer) has lots of data taken from different places then it is all written into a buffer.
Also the size of the buffer is set me realloc() would this be causing the problems.
Peter
|
|
|
|
|
Good day,
Does anyone know how to request a read receipt through an smpt command like NOTIFY or RET or anything? I've been looking all over the internet but can't seem to find anything on it. I know how to do it programatically using MAPI and Outlook but I have an smtp wrapper class and want to use a straight code rather than using MAPI, etc. Any help is greatly appreciated.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
Isn't this taken care of the header field Read-Reciept-To
?
|
|
|
|
|
Thanks for your response. Actually it is
Disposition-Notification-To:
It took me forever to find this. I first thought it was Read-Receipt-To but it never worked.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
Here is a class which I want to use in a multi-threaded program:
class threadclass {
public:
void A();
void B();
};
void threadclass::A()
{
B();
}
void threadclass::B()
{
}
UINT WINAPI threadproc(LPVOID lpData)
{
threadclass xx;
xx.A();
return 0;
}
I use it like this:
CWinThread *pThread=AfxBeginThread(threadproc,NULL);
Will there be some error occured? Is the class thread-safe?
Law is meaningless without chaos.
Chaos without Law is equal to destruction.
Chaos and Law create our rich and colorful world.
|
|
|
|
|
Aren't you missing anything in the exposition of your problem? The class is trivially thread safe, basically because it does nothing.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a populated BITMAPINFOHEADER struct, and I have the bits of a device-independent bitmap. How do I get the RGBQUAD info out of those two items to build a BITMAPINFO struct?
|
|
|
|
|
I believe one of the many places this is explained can be found by a Google search for "rgbquad bitmapinfoheader" (to not promote codeguru after the takeover).
|
|
|
|
|
If you have the DIB bits as they are stored in a .bmp file, youu may have a look at this on MSDN (about BITMAPFILEHEADER): "A BITMAPINFO or BITMAPCOREINFO structure immediately follows the BITMAPFILEHEADER structure in the DIB file. "
Otherwise, you should have the palette stored somewhere, then use that instead.
I think the palette is fixed in size when it is stored in a file (16 or 256 RGBQUAD entries), but the last entries could be unused (usually zeroes) if biClrUsed < 2^biBitCount.
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hi All,
I am looking for some help/example code/links for the above. What I want to do is write some code in Visual C++ which will create an object. I then want to be able to use this object in vbscript and use it's member functions etc. I think the solution is ATL/Com but I'm not sure.
Any help on the above would be greatly appreciated.
thanks in advance,
Dave.
|
|
|
|
|
Hi,
If want to use Visual C++ I think the best choice is ATL, if you are going to use your components from VBScript make sure to implement IDispatch. (that way you can use the components from ASP for instance)
You can find information on the MSDN (you will find tutoriales and articles), or look on www.amazon.com for books on the subject
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
Anyone knows about debugging ISAPI Extensions ? I tried lot of the techniques supplied in KB but no chance .
What i'm searching for is some handy tools to do the job (and free tools please)
Thanks .
|
|
|
|
|
Hi,
I've got a function that launches a simple dialog. How do I get the function to wait for the OK button to be pressed before returning?
<br />
void Import_Shader_Dialog::OnImportShaders() <br />
{<br />
Some_Dlg Progress;<br />
Progress.Create(IDD_IMPORT_SHADER_PROGRESS, NULL); <br />
Progress.ShowWindow(SW_SHOW);<br />
<br />
<br />
while(its_not_ok);
<br />
<br />
return;<br />
}<br />
I've tried making the dialog modal but then of course none of the function gets executed while the dialog is up.
The way it is, it just appears as long as the function is executing(very quick).
So how can I get my child dialog to stay up and receive messages from my program until the OK button is pressed?
Thanks
Josh
josh@that-guy.net
|
|
|
|
|
Is this dialog intended to be some sort of progress dialog or monitoring dialog of some type for the other code thats processing?
"I never met anyone I didn't like" Will Rogers.
|
|
|
|
|
Yes, It just supposed to display output strings in a listbox.
Josh
josh@that-guy.net
|
|
|
|
|
In that case just follow Tomaz's advice.
"I never met anyone I didn't like" Will Rogers.
|
|
|
|
|
If I understand your problem correctly, you just want to display a progress dialog during lenghty operation. If this is the case, have a look at Feb'97 issue of MSJ; there's a column titled 'Wicked Code' which describes CWaitDialog class.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Cool, thanks...
Josh
josh@that-guy.net
|
|
|
|
|
use Progress.DoModal()
but put your function code into the dialog class's InitInstance() so that the function runs when the dialog opens up. Then you can send function-related info to the dialog using member variables of the dialog and UpdateData()
Hope this helps...
|
|
|
|
|
Hi,
I would like to respond to the message WM_DRAWITEM within a CFrameWnd derrived Class. Unfortuanetly it doesn't appear within the list provide by class wizzard.
I want to use this message, to support an owner drawn CListCtrl.
Can anyone offer me any advice?
Cheers
Rich
|
|
|
|
|
If you plan to host your control in any CWnd-derived class, there's no need to handle WM_DRAWITEM in the parent. Just override CListCtrl::DrawItem in CYourListCtrl and MFC magic will work for you.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I have created an Dialog-based MFC .exe Application and was wondering how to add a menu to the dialog box. I have found and used code adding toolbars and statusbars to dialog boxes successfully.
|
|
|
|
|
Create a menu. Right-click on your dialog box. Select Properties. You will see Menu: combobox. Select ID of your menu.
That's all
Jerzy
|
|
|
|
|
I want to know if it is possible to make a cell in a list control "span" both rows and columns (separately). I also want to change the font/orientation of text in a cell.
My request:
I want my list control to have visual highlights such as a whole row (item) be highlighted to show a visual break in the list - such as a grey block that spans all my columns and contains nothing.
I also want my list control to have a side-bar column that can have text displayed vertically to span a block of rows (items) - such as to indicate a block of related items.
In crude ASCII, I want something that looks like below (4 columns, XXX=grey blocks)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
P Last Name: First Name: MI:
e Address: City: State:
r Zip Code: Phone (H): Phone (W):
s
o
n
a
l
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
O Item 1: Price: Quantity:
r Item 2: Price: Quantity:
d Item 3: Price: Quantity:
e Item 4: Price: Quantity:
r Total Price: Total Items:
s
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks all.
Johnny
|
|
|
|
|
You could achieve this with so-called custom draw, but I think you should switch to some grid control. There's one here on CodeProject; have a look in the Controls/Miscellaneous section.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|