|
this is first time i see the Q, and, it is your rights to post your Q again if no right reply, why not? what is the purpose of the forum, who is god here - you are one of them.
i checked all replies to your Q, so far, all of them are funny - they have no any programming experience but always imitate as teachers on the forum.
of course it is possible to close and re-load a dll, because the app is developped by you.
for unix, dos, windows and any other formal OS, all have functionalities called "dynamically using libraries" - basically are load, close and reload dll etc.
unix is more powerful in process controlling, windows has less.
read related topic to find if u can dynamically use your dll in your case (not always allowed).
good luck.
includeh10
|
|
|
|
|
thanks dear friend .
thanks alot .
are seeing few thing in reply is good but there is no particular solutuin for my problem so i just posted my query
again.
any way i dont want o give any explanation.
the reply from cristain was bit harsh so i just wrote back
i am not intrested in writing any replies or any thing like that
bye tahnks for ur reply
|
|
|
|
|
Hello Friends,
I have a very intresting question .
The problem is that i have written an application(.exe) it uses a .dll file i.e few functionality are provided in the dll file . as the file is used it is loaded dynamically now the problem is that i want to change this dll without unloading the application is this possible??? i have done some changes in the dll so without unloading the application can i unload the dll and again reload it. but as the dll is loaded it is not replaced by the new dll in that folder .
can any one suggest me a option for it????
Tryout are also welcome.Please suggest some technique to do this
|
|
|
|
|
I think you can use the lib file,not using the loadlibrary.
I used the lib file,and it is very convevient to chang the dll file.
I am I,Who is who,I am who,Who am I
|
|
|
|
|
can u just tell me any thing more about this???
|
|
|
|
|
1. Please don't ask the same question day after day, let alone twice in the space of a moment.
2. We established yesterday that even if your app unloads the dll, it may still have a lock on it. In that case, I thought we established that it's unlikely you can get the OS to let you replace the file.
3. It seems odd to me that you wrote an app and you can't stop it for 5 seconds. Are you sure you're not trying to write a virus that replaces gina.dll or something ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
hey come why are u so angry???
when i came today i saw alot of queries and mine was far back . i thought i might have been missed by some persone who knows something more like u did. so i just posted the query today. and by mistake due to the net connection i have posted it twice.
any way i think u should cool down this query being really important for me i was willing the solution from u and thought that u might not check it as today is new day and there was no reply from u when i have wrtten a reply over there so i just thought that u might have missed it so i just mailed u . if u dont like these mails why do u visit such site???else give the mail id which u dont like. else u should promptly reply that u dont know the further part.
any way
dont worry. i wont mail u any more
|
|
|
|
|
maxyi wrote:
hey come why are u so angry???
He's quite polite, you instead are a stupid f***.
maxyi wrote:
and by mistake due to the net connection i have posted it twice.
You have a [delete] button, thus no excuse.
maxyi wrote:
any way i think u should cool down this query being really important for me i
If that's amazingly important, why don't you suggest money in return ?
maxyi wrote:
from u and thought that u might not check it as today is new day and there was no reply from u when i have wrtten a reply over there so i just thought that u might have missed it so i just mailed u .
Oh Oh... Infinite loops.
maxyi wrote:
if u dont like these mails why do u visit such site???
Now you are ordering people not to visit CodeProject.
What is your background to boast and come with such strong ideas ?
maxyi wrote:
else u should promptly reply that u dont know the further part.
If that wasn't for people like Christian spending a few hours each day to answer freely people and share his best knowledge of computer programming, you moron wouldn't even be able to log on Codeproject, because there wouldn't be Codeproject at all without these guys.
Back to real work : D-22.
|
|
|
|
|
the language is ansi c language,not C++
I mean not to use the global resource include the file,reg and global variable
I am I,Who is who,I am who,Who am I
|
|
|
|
|
If this is Win32: Sharing Files and Memory[^]. It's worthwhile to note that memory allocated in a process can be shared between the threads of the process. So you can pass around parameters to your thread indicating where in memory to look for your data, but that's cumbersome, and prone to errors if you goof.
You could just pass the variables as parameters into your thread entry points.
|
|
|
|
|
I know.But the parameter is the LPVOID data type.I had tried to change the type by using (int *),but I got a wrong value.
Can you tell me how to complete it using parameter?
I am I,Who is who,I am who,Who am I
|
|
|
|
|
Are you using CreateThread , or _beginthread ?
Either way, you can pass the parameter by casting it to void* :
DWORD dwThreadId = 0;
HANDLE hThread = CreateThread(NULL, 0, entry, (void*)param, 0, &dwThreadId);
If you're using functions from the C library, you SHOULD use _beginthread , and use the multithreaded C library:
unsigned long hThread = _beginthread(entry, 0, (void*)param);
Your entry function should look like:
DWORD entry(void* pParam)
{
return 0;
}
|
|
|
|
|
You should also note that if your data "goes away" in the thread that creates the new thread, then you'll probably get an access violation.
The new thread, if created with CreateThread , the thread, even if not running, won't go away until you call CloseHandle on the handle returned by the function call.
Read the dox for the APIs carefully:
CreateThread[^]
_beginthread, _beginthreadex[^]
|
|
|
|
|
How to display a tip, like the tooltips, when the cursor moves into a pane of
a spliiter window?
Thanks a lot!
Wenrich
|
|
|
|
|
Hi everyone,
Can you tell me when WindowProc() function is called in a VC++ program.
If I can use it for responding to FD_READ event when I have a read-request from my socket?
Thanks for your reading.
Naoh
|
|
|
|
|
At my school, there is a great program that, when run, deletes all the unnecessary files created by the compiler (at my school it's Borland ). I wish to make a similar program for VC++ in order to conserve space on my small 12 Gig drive. Does anyone know how to check for folders? I want to search for folders, then check for files inside them and then more folders...
Thanks,
~ Selevercin
If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone
else who learned to spell after 1976] blame it on
Robert A. Kolpek for U.S. Patent 4,136,395.
|
|
|
|
|
I believe such a project exists on CP already.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
|
Thanks - I was too lazy to look for it.
Michael Dunn wrote:
"alyson hannigan is so cute it's crazy" -- Googlism
I suppose it beats dunn is a christian rock roll band, dunn is almost housebroken, dunn is a rubber, or dunn is a native florida "cracker.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
Thanks! Wow, that's exactly what I'm looking for! Maybe my dad will relax a little now about hard drive space
~ Selevercin
If you have a problem with my spelling, just remember that's not my fault. I [as well as everyone
else who learned to spell after 1976] blame it on
Robert A. Kolpek for U.S. Patent 4,136,395.
|
|
|
|
|
hi,
POST STATUS: UPDATED
in one procedure I post message to thread with wParam , the thread accepted my message, but wParam is corrupted.
Here is the code:
In the procedure
MsgParam *pSendParam=new MsgParam;
pSendParam->pBuf=pBuf;
pSendParam->nLen=nLen;
PostThreadMessage(tid,WM_HYDRO_RXD_ARRIVAL,(WPARAM)pSendParam,0);
In thread Function
case WM_HYDRO_RXD_ARRIVAL:
pRecParam=(MsgParam*)msg.wParam;
before PostThreadMessage, pSendParam is correct(in this case, it's f5f5090574a05200 ), but in case WM_HYDRO_RXD_ARRIVAL , the value is corrupted as 44bf4a5f01000000
I use heap instead of frame, for heap allocate memory for the program, therefore the memory will exist until one explitely delete it.
And I can pass an int, but can't pass a struct
How to transfer data correctly?
Extreme programming. Do the No.1
|
|
|
|
|
Did you try to use LPARAM instead?
|
|
|
|
|
Aside from the MSDN, does anyone know of a good tutorial or BOOK that does with all forms of hooking?
Esp hooking another process (outside your own) through the use of a .DLL
|
|
|
|
|
here at cp is one:
http://www.codeproject.com/system/hooksys.asp
|
|
|
|
|
Is there a pragma or something that can be used to disable the scroll of symbols loaded messages when you run in debug mode? I would prefer just to see my traces etc and not get all those messages every time.
|
|
|
|
|