|
Hello,
Thanks,
Yes I tried debugging and found this.This code is in my classes from the dlls and not in the current project.
Pritha
|
|
|
|
|
|
Looping ?? You mean using a for or a do/while loop ?
If yes, it has nothing to do with MFC but it's pure C/C++ keyword. I also suggest that you read a good book about C or C++ programming (depends what interests you) because it is really really basic stuff.
|
|
|
|
|
...C tutorial is needed.
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
|
|
|
|
|
If you delete your qeustion you cant get different answers.
|
|
|
|
|
Hi all,
In my application i am deleting files and want to display it in a list control as soon as i delete that file... my problem is that it is displayed after all the files are deleted not one by one.....
How to resolve it....
Thanks in advance
|
|
|
|
|
Are you using a separate thread to delete the files ? If no, then if this process is quite long, your UI won't respond to any messages anymore (which means that it is frozen and not updated so, you don't see the files removed from the list ctrl).
You have to do that in a worker thread and messages to your window when a file has been deleted. Handle this message in your dialog class and upon receiving it, remove the entry from the list control.
Another point: is the delete of these files that long ? Because in general it doesn't take a lot of time to delete a file, so even with a thread, chances are that it will be too fast to see something.
|
|
|
|
|
You can insert file names to listbox or listctrl before delete them.
|
|
|
|
|
I am trying to use dll without registering it. So, can I use dll without registering it.
|
|
|
|
|
Member 4354119 wrote: I am trying to use dll without registering it. So, can I use dll without registering it.
If it's a COM dll you've got to register it, that how it works! CoCreateInstance, Shell extensions etc work via entries found in windows registry which are made only when you register a COM dll.
If not no need to register!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Thank you so much.........
|
|
|
|
|
|
|
Ordinary DLL s don't need registration. On the other hand COM DLL s (e.g. ActiveX components) need it (technically is even possible using COM DLL 's without registration, neverthless registration is by far the most common way).
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
|
|
|
|
|
Thank you so much....
Would you please help me with some examples, how can I use COM dll without registering it?
Thank you
|
|
|
|
|
|
|
Hi Experts,
I am using CMainFrame::OnClose(); function in any other function to close the application as soon as processing gets complete.
Program generating exception after closed. If I manually close the aplication Its fine.
Is this correct methos to close the application like this....
|
|
|
|
|
Closing the application from inside a function is not common way.
If you want to do this necessarily how about PostQuitMessage[^] or exit(0);
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
pther wrote: Is this correct methos to close the application like this....
Use PostQuitMessage!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
Or pWnd->DestroyWindow ()
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Do you want to close your program or other programs?
|
|
|
|
|
hi
Why we r using COLEDocument class in MFC what is the advantage for it?
Regards
NISHA.S
|
|
|
|
|
If your application is related to OLE then you can use COleDocument class to get Doc/View architecture support of MFC.
Take a look at here: COleDocument Class[^]
Thanks,
Suman
--
"Programming is an art that fights back!"
|
|
|
|
|
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
|
|
|
|