|
again vague... form of description,
Now the scenario is not which you explained,
int aprint; is defined in print.lib;
extern int aprint; is declared in clib.lib;
now assuming alm.dll is not using the variable directly, if you link to clib.lib, you need to link to print.lib also to resolve the symbol aprint;
if you want to use aprint in alm.dll also, then extern declaration is need there also, you need to link all the three libs.
|
|
|
|
|
I linked the two libs in the dll as you said. But same error.
|
|
|
|
|
what's the error, why don't you post the link error full length.
|
|
|
|
|
can any one send me the code to set the transparency of the image
from 0-255 using gdiplus
Trioum
|
|
|
|
|
trioum wrote: can any one send me the code to set the transparency of the image
from 0-255 using gdiplus
Yes [^]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Usually we don't *send* code, but for noble causes (like the task is urgent, it is a homework, etc.,) we can send, I guess.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
you are tempting the OP to post, [BOLD]"PlZ. Plz. plz .... ITS URGENT"[/BOLD]
|
|
|
|
|
And the replies to such a post may probably teach him the lesson of a lifetime.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I'm using Visual C++ 6.0 - basically new to MFC programming
I don't understand the difference between
MessageBox()
and
AfxMessageBox()
Don't they both do the same thing?
Thanks ahead of time
|
|
|
|
|
AFAIK, MessageBox belongs to Windows API
AfxMessageBox is a global function in MFC.
There could be other differences as well relating with the parameters being passed to the function and the way they are implemented.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Sorry pal, you are being down-voted (includes my vote) for linking the OP to a website that requires a paid membership.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Not if you scroll all the way down it doesn't...
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
I know that you could scroll all the way down and get the answer, or you could use Google's cache, but for once, that website sucks. I at least said why I was down-voting.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
He could see answers I saw those answers they are at the bottom of site,and it was his answer exactly,but I think this vote wasnt becoming for my answer.
|
|
|
|
|
Please see my reply to Iain.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It's a little more subtle than you think.
There are THREE message boxes.
::MessageBox - the windows API function. The others end up wrappers around this, so it's good to read the docs fully for all the flags (esp DEFBUTTON2, as it can be handy!)
CWnd::MessageBox - This uses the CWnd you're calling it from (maybe this , maybe some other window - up to you) for the window handle. It also provides defaults for the title and flags.
::AfxMessageBox - gives you defaults also, but uses your MainWnd as its parent window.
The last two are fairly similar, but you can end up with odd situations where you don't want a disabled or hidden window being a parent etc.
Shorter answer: Near as dammit the same thing, but not quite.
Iain.
Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.
|
|
|
|
|
|
Dear Friends,
I want to delete a file which is used by other application.
When I try to delete that file,it shows error as
"Cannot delete file: It is being used by another person
or Program.Close any programs that might be using the file
and try again."
On searching Google, some utility programs like "Unlocker" does this.
But I am in need of the code just only to unlock the file
and delete it.
Could anyone help me out please?
Thanks
|
|
|
|
|
What file that you want to delete ir depends to OS or other programs?
|
|
|
|
|
Not OS locked.
The file is "*.tds" file generated by
Borland C++ (bcc32.exe) compiler.
|
|
|
|
|
you can use "Process Explorer[^]" to find which application/process/thread uses the file (then up to you to kill it or not)
|
|
|
|
|
I think he's looking for a way to achieve it programmatically.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|