|
Thanx Chris. I found it here on the site.. Just took a while, So much content I kept getting side tracked.. Excellent Site..
Thanx for the Reply, Bry...
|
|
|
|
|
Hello,
I'm developing a 2D RPG, and I want to take advantage of a cursor with per-pixel alpha transparency. IDirectDrawSurface3::Blt might support alpha-blitting, but on the web I did not find any code samples of it. When I tried to do this myself, I could not even create an alpha surface. Please post such code, if you have it, or say, that it's impossibele.
Thank you,
Nick
kender_a@yahoo.com
|
|
|
|
|
I don't know exactly what you're doing, but did you checked the caps of the device you're using? This is done by "dxcapsviewer.exe" you should check them at runtime too if you want to be sure (read the D3DDevice documentation)
Also check that the version of DirectX you are writing for is the one you have (current interface for surfaces is IDirect3DSurface8)
contact me on ICQ[56336327] if you need more help
LOX
|
|
|
|
|
DirectDraw does not support alpha blitting. To do this you either have to code the alpha blitting routine yourself, or use Direct3D.
|
|
|
|
|
DirectDraw does not support alpha blitting. To do this you either have to code the alpha blitting routine yourself, or use Direct3D.
|
|
|
|
|
I wonder if there is a way to programmatically restart a network adapter on windows 2000 as it is possible via the control panel. I need to apply some settings to a nic (a wireless nic exactly) and the restart the adapter to accept the changes.
|
|
|
|
|
Hi,
I am developing a Data Access COM Component using VC++ (ATL)
I have want to return a Variant Array from a function, can anyone tell me how to do it.
and also please tell me how to access that array in Client.
Ravi
|
|
|
|
|
This is a topic I have been trying to get some time to cover it. And perhaps write an Article about it.
However, look at the MSDN CIRCLCOLL for implementation of collection and enumerations it should give you a great start
MSDN SAMPLE
STDMETHODIMP CMyCircleCollectionCreator::GetCircles(short n, VARIANT* retval)
{
VariantInit(retval);
CComObject<cmycirclecollection>* p = new CComObject<cmycirclecollection>;
p->Init(n);
IDispatch* pDisp;
p->QueryInterface(IID_IDispatch, (void**)&pDisp);
ATLASSERT(pDisp);
retval->vt = VT_DISPATCH;
retval->pdispVal = pDisp;
return S_OK;
}
where CMyCircleCollection is a collection that implements
get_Count, get_Item and get__NewEnum
Hope that helps
Cheers
Alfadhly
/*
It is Illogical to define an inventor by his invention
*/
|
|
|
|
|
I want to be able to insert a text file into a rich edit control when the operator drags a file into the control. At the moment it appears that a link is inserted into the rich edit control rather than the file itself. This means if the original file is deleted the copy of the file in the rich edit control cannot be edited. Can anybody point me at an example of how to do this. I have got as far as implementing the callback interface so that I know when a file is being dropped but I dont know where to go from there. I have tried looking through MSDN but I have been unable to find a good explanation of how the facilty works.
Thanks for any help you can provide.
Steve.
|
|
|
|
|
Hi,
Can anyone please illustrate the scrolling of content in window,(a class derived from CWnd & not the MFC view class)
Thanks in advance,
Regards,
Mangesh Sardesai.
|
|
|
|
|
Does anyone knows for the fact how IE uses Winsock if at all? It appears to me that IE is using LoadLibrary to load Wsock dll but I think I've read somewhere that it is also done on kernel level (as a part of permanent integration of IE and WIN OS).
I'm asking this because I would like to hook up to Wsock calls (I guess I will have to hook to LoadLibrary first) in order to be able to control Internet access on a particular computer.
TIA, Sasha Djurovic
|
|
|
|
|
API Hooking by DLL Injecting Revealed - WinSock2 Hook
this is my winsock interceptor . get into ie and see ! it uses ws2_32.dll ! I interceped its calls !
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
Hello
I'm looking for Code to put three local-groups to a folder. (With NT4 later as well with WK2)
A top-folder with read right for the domain-users
A Group xx00-LC should get change-right on all subfolders
A Group xx01-FR get read-right on folder 1 (xx02-FR on folder 2 ....)
A Group xx01-MC get change-right on folder 1 (xx03-MC on folder 3 .....)
THX for ansswers
Beda Schöpfer
|
|
|
|
|
I'm in a vbscript class and I can't figure out how to get to substring to be capitalized. I need only the first letter of the word captilized.
I can get the first or the last but not both. My code works if I use document.write but not if I use txtTextBox.value.
Please Help
Thanks
|
|
|
|
|
Some may have seen earlier posts about Universe Technology, but here is the full description of whats going on.
Universe Technology is a beginning company that is looking to make its start in designing web pages that bring in money through advertisement. So far we have two sites that are being worked on by our ASP developers, the site layout itself has already been finished.
We are now looking for people that design Web Pages, and can design them REALLY well. I'm talking sites like everlore.com, starcraft.org, etc. This doesn't mean you have to do the programming, just the site layout. Although that you would have to do completely, HTML and Artwork.
If you are interested in working with us, please send me an E-Mail at Alexjfink@aol.com. Thank you.
|
|
|
|
|
Hi,
I am developing an ODBC driver for a custom database. I am unable to proceed further because of lack of knowledge. can someone please help me in this regard by giving me info on how to implement ODBC drivers (with network support). Articles, links, source code would be very useful.
Thanks,
|
|
|
|
|
Any one know how to do this?
Any examples would be cool
|
|
|
|
|
|
Check out
http://codeguru.earthweb.com/controls/ToolTipWithoutMFC.shtml
---------------
Dan Ammasai
---------------
|
|
|
|
|
Hi,
If anyone have any example about DAO please send to:
hadi_rezaie@hotmail.com
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have an application that subclasses an LBS_OWNERDRAWFIXED listbox window. When
I subclass the window it seems to break the listbox so that horizontal scrolling
and painting do not work correctly (perhaps other things as well that I have not
gotten to yet. Assuming that it was a problem with my subclass procedure I
reduced it to the following code:
//* The listbox definition in the dialog resource
LISTBOX ID_USERS_LISTBOX, 3, 22, 324, 185, LBS_OWNERDRAWFIXED |
LBS_MULTICOLUMN | LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
WS_HSCROLL | WS_TABSTOP
//* Subclass the listbox earlier in the code....
fpOldListProc = (FARPROC) SetWindowLong(hWndList,
GWL_WNDPROC,
(DWORD)ListProc);
//* Listbox subclass procedure
LRESULT APIENTRY ListProc( HWND hWnd, UINT Message, WORD wParam, LONG lParam)
{
return CallWindowProc((WNDPROC)fpOldListProc, hWnd, Message, wParam, lParam);
}
with the same result. It is worse in Win2000 than in Win/98 but basically the
same kinds of problems are there. In Win2000 the items the space below the
bottom row in the listbox and below and to the right of the last row of items is
not repainted as well as horizontal scrolling not working correctly.
I've tinkered with this for a week and I'm at a loss. Any suggestions or
pointers would be greatly appreciated.
Thanks
Neil
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
http://support.microsoft.com/support/kb/articles/Q197/6/90.ASP
http://msdn.microsoft.com/library/techart/msdn_mfcclip.htm
Also try to do the following:
1. send WM_SETREDRAW and turn off the drawing of the listbox before subclassing
2. Do subcalssing
3. send WM_SETREDRAW to turn drawing back on
4. in your ListProc add the following:
if (Message == WM_NCDESTROY)
{
//return old window proc...
SetWindowLong(hWnd, GWL_WNDPROC, (DWORD)fpOldListProc);
}
Mh2
|
|
|
|
|
I finally had a chance to try your suggestion and it did not seem to help. Any other places you would suggest I look or things I should try?
The strange thing (to me at least) is that reducing the subclass procedure to simply return the default procedure reply (as my example shows) results in the same problem.
Thanks
Neil
Neil Lamka
neil@meetingworks.com
|
|
|
|
|
I need some help coming up with some rock solid error checking and return-code checking for my vbscripts. Currently I am just checking for err.num each time I do some action. Does anyone have any examples they code send me on what industry best practice is.
Thanks
Ben O
|
|
|
|
|
hi,
I'm a budding systems administrator. I'm trying to learn scripting. Now what I want is a script that shuts down the NT4 Server at a certain point of time by stopping all the services running before doing a graceful shut down.
Since i'm new to scipting I would like to take guidance in doing so. SO can neone provide me a script as I have no idea as to how to start, so that I can improvise on it by learning from the script before trying it out with other features.
SAI
SAI
|
|
|
|