|
In theory, if you create a DIBSection, then bm.bmbits will be populated, but I admit I've never used it. I believe I read somewhere to make it work you need to pass in sizeof(DIBSECTION), but I could be wrong.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Does anybody can send me a working sample of this:
http://www.codeproject.com/internet/cpop3conn.asp
article?
Thank you wery much!
==============
www.design.kg
|
|
|
|
|
Hi Guys,
Usually explicit linking of dlls is achieved by LoadLibrary & GetProcAddress.
GetProcAddresss is pretty neat in the fact that it can be casted to a function pointer, and used likewise.
My current understanding is the usual approach is to define a type for the function pointer and cast the return value of GetProcAddress to that type.
But supposing you were developing an application, where you have components (dlls) on a server,
and your application should donwload this components and automatically bind them. At design time you have no idea what the fuctions these dlls might contain.
I was thinking a small part of the dynamic linking can be solved by having the function signatures in an xml file to accompany the dll, but the how would you solve the other limitation, that is casting functions to a user-defined type, when you have no idea what the dll function would look like at design time?
Hope I have conveyed the problem clearly.
What are your views?
- Tariq
|
|
|
|
|
|
Or .NET
Crivo
Automated Credit Assessment
|
|
|
|
|
or both [COM and .NET] by using wrappers written using MC++
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Problem with COM is registerinG!
How would .Net solve the problem?
Regards,
Tariq
|
|
|
|
|
You can dynamically create objects of a type known only at run-time
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I want to transfer data to the client in a TAPI application. How can i use the TAPI lineGetID()to get the handle to pass the data. I know that the VARSTRING struct argument gives the handle. But how to convert the VARSTING struct to get the handle.
Pls Help.
Vini
|
|
|
|
|
Have a look at the tapicomm project on the platform sdk for more detailed help but simply,
<br />
hCommFile = *((LPHANDLE)((LPBYTE)lpVarString + lpVarString->dwStringOffset));<br />
Michael
|
|
|
|
|
Thanks...
But i'm not able to find the tapicomm project. can u give me the exact link. It would be helpful
vini
|
|
|
|
|
I draw a graphique in an Active x based on MFC!
This drawing, I Do it in a class based on CWND.
I can't manage do créat a bitmap and save it in a file (.bmp)
if someone have an exemple or something
I realy need help!!!!
jybe the frenchy
|
|
|
|
|
Check out many examples here on CodeProject.com!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
Hi Everybody !
I want a discuss the problem that I am facing here it goes ..
I have to display a window in the air , it should ideally be a Dialog box becoz this window would be containign many controls . BUT ! this window should not have the tile bar nor the borders nothing !! till here its easy .. the problem is after that ..
Problem is I dont want the parent window to loose the control .. that is title bar of the parent window should never become inactive when our window is created and our window should be able to react to messages .. like mouse click , mouse move ..
See are you able to understand the problem ??
Please add your valuable comments.
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
What you seem to looking for is a modeless dialog.
Read this article to get an idea about creating modeless dialogs.
It was written by one of the nicest people I know of. Just kidding. But I do hope the article helps you with regard to what you are looking for.
http://www.codeproject.com/useritems/gettingmodeless.asp
Regards
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Thanks for replying .. but this is not what I am looking for ..
Moment you click on your modeless dialog, the parent window gets inactive ..and this is waht I dont want ! I hope you have understood it now .
Let me know if you know about some more articles ..
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Abhishek Narula wrote:
Moment you click on your modeless dialog, the parent window gets inactive
That's default windows behaviour. The currently active window will also be shown as active. And only one window, whether modal or modeless, will be active at a time.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I have a structure declared in CDocument class
it's my own stucture and contains strings and ints
I then have another structure which contains a pointer to the first structure
the second structure is passed to a thread
how do i manipulate the first structure using the pointer passed to the thread (hence inside the thread)
these are the structures
typedef struct tagTAKEGO ///Structure 1
{
CString word;
int square;
int direction;
}
TAKEGO;
typedef struct tagTHREADPARMS /// thread parameter function
{
HWND hWnd;
TAKEGO* tkGO;
}
THREADPARMS;
void CDocument:: function // function that runs the thread
{
THREADPARMS* thr= new THREADPARMS;
thr->hWnd=hWnd; // hwnd is a HWND declared in CDocument
thr->tkGO=&take; // take is a TAKEGO declared in CDocument defined above
CWinThread* PosVThread=AfxBeginThread (thread,thr);
}
UINT thread (LPVOID Param) // the thread that will not change values in CDocument
{
THREADPARMS* ptp= (THREADPARMS*)Param;
(*(ptp->tkGO)).direction=HORIZONTAL; // already defined, these lines are defective
(*(ptp->tkGO)).square=100;
(*(ptp->tkGO)).word="A word";
}
I hope you might be able to help! Cheers - Jason
Is it because the object/new structure is being destroyed as soon as the function in CDocument is ended?
I thought the new statement allocated space in a runtime class's stack and didnt' destroy until release was called.
(Thats a slimmed down version of the real thing which half of it does work)
|
|
|
|
|
(*(ptp->tkGO)).direction=HORIZONTAL will fail as tkGO is a pointer which you need to de-reference. Try this :
ptp->tkGO->direction=HORIZONTAL
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
no that doesn't work either way they both compile, but neither method changes the structure in the my document class
|
|
|
|
|
no that doesn't work either way they both compile, but neither method changes the structure in the my document class.
I may have to rethink things, just off the top of my head could it be (*(ptp->tkGO->direction)).direction?
I'll just try that way and get back, thanx for your help, get back to you soon
|
|
|
|
|
Take a look at this line :-
thr->tkGO=&take; // take is a TAKEGO declared in CDocument defined above
Where have you declared take?
Is it a temporary stack variable that goes out of scope?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
it's declared in the class & no it shouldn't have gone out of scope.
|
|
|
|
|
indeed when i want to change the color of the background ,i must call the FillRect like method,
is there another method will fulfill it with SetBkColor?
thanks
one is the other who absorbs the thoughts of others
|
|
|
|
|
Hello ooze,
SetBkColor() is generally used in GDI operations where the use of a Pen is involved (e.g. TextOut(), DrawText(), etc).
If you want to programmatically control the background color of a window, set the "hbrBackground" member of your window's WNDCLASS structure to NULL, and then process the window's WM_ERASEBKGND message. See the Win32 API documentation on WM_ERASEBKGND for more details.
However, to actually perform the coloring operation, you'll still have to use functions like FillRect() etc.
Hope the above info will be helpful to you, ooze.
Regards,
Bio.
|
|
|
|