|
How to read data from microphone
ytvsoftware
|
|
|
|
|
|
I have a COM object (DLL) which implements a dynamic simulation of a
system. I want to do an optimization of an algorithm in this system
by varying some parameters. This involves repeatedly calling the
simulation in an optimization loop in Matlab.
The problem I am having is that after invoking the simulation COM
object the first time it stays in memory and so, when called on
subsequent iterations, the initialization of internal static
variables does not happen. So, the simulation does not execute
correctly.
I determined that the DLL stays in memory using Process Explorer from
SysInternals.
The COM object is written in VC++ 6.0.
Does anyone have any experience with this type of problem?
Any ideas for a solution?
Is there a way that I can modify my COM object to force it to delete
itself? Perhaps an interface method that I can call from Matlab
which performs this deletion?
Thanks
|
|
|
|
|
|
You are starting to get on my nerves. This is a "MAKE MY HOMEWORK FOR ME" style.... the fourth question on a single day, and all questions because you don't know anything about what you are doing .
Don't try it, just do it!
|
|
|
|
|
|
there's a difference between ignoring something, and ignoring EVERYTHING !!!
we are here to help those how don't know some things, but that also try to find a solution by their own way !!!
another thing :
are you really (as you say in you CP Homepage) a "software consultant about MFC" ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote : "we are here to help those how don't know some things, but that also try to find a solution by their own way !!!"
who told you that i am not trying to find solution my way but sometimes i manage to do it sometimes not. and thats it.
m0n0
|
|
|
|
|
hum, well, i don't say the opposite, but very often, when i read at your posts, i find them very long and very "diluated".... (like homeworks are )
ok, i'll try to help you anyway (it's my goodness day)
have you seen that an icon file (.ico) has multiple devices ?
in once ico file, you can find a 16*16 icon, a 32*32 one, and a 64*64 one...
maybe your problem is here...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
so you can ignore them
i assure you that i don't have any homeworks or stuff like that, i am simply beginner who want's to know as much as possible about programming
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
i assure you that i don't have any homeworks
homeworks was a way to talk about you behavior
Giorgi Moniava wrote:
i am simply beginner who want's to know as much as possible about programming
hmmmmmm, maybe you should read a bit more about C++ at a first time, study about it, and when you really can find a solution to your problem (and when - of course - you did search a solution), ok, you can ask it in a smart question !!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
...maybe you should read a bit more about C++ at a first time, study about it, and when you really can find a solution to your problem...
Last time I checked, knowing C++ has absolutely no bearing on an icon-related issues. In this case, Giorgi is merely having IDE problems. The multiple-resolution suggestion is likely the culprit.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I dont think so because all i do is simply clear the IDR_MAINFRAME icon and draw new icon
m0n0
|
|
|
|
|
You'll have better success if you'll remove the .ico file and put your new one in its place (keeping the original filename). After a rebuild-all, you should be good to go.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Thanks David for your help !
m0n0
|
|
|
|
|
Giorgi Moniava wrote:
but sometimes i manage to do it sometimes not
I don't have the impression that it is only sometimes.
Don't try it, just do it!
|
|
|
|
|
i DO agree....
... and that's been few days like this !
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
This usually happens because the linker will grab the icon with the lowest id in it for use with the exe. Open up resource.h and make sure the icon you want for the .exe has the lowest id.
|
|
|
|
|
Hello,
I have written a function
GetFilesInDirectory(CString szpath) , which gets names of all filles in given directory,for example
GetFilesInDirectory("c:\\Windows"), now the problem is that
different people with different versions of Windows , may have their windows directory named differently
(WIN,WIN2000,...) i want to know if i can pass my function such value that will give all files from Windows directory,regardless how the user has called it, for example in REGEDIT , %Windir% is a variable that refers to the Windows installation folder.
Regards,
m0n0
|
|
|
|
|
GetWindowsDirectory()
GetSystemDirectory()
suhredayan There is no spoon.
|
|
|
|
|
|
TCHAR szWin[MAX_PATH];
TCHAR szSys[MAX_PATH];
GetWindowsDirectory(szWin,MAX_PATH);
GetSystemDirectory(szSys,MAX_PATH);
suhredayan There is no spoon.
|
|
|
|
|
|
LPCSTR means :
LP for Long pointer ('cause pointers are 4-bytes long)
C for Constant
STR for String
so, if you like GetWindowwDirectory() to write into your variable, it musn't be constant....
understand ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
wow very nice explanation thank you
very helpful
|
|
|
|