|
How to determinate the memory allocated in a specific dll module.
my software crashed in scilence, the only reason is I loaded too big pictures, and I called some function in specific dll, so I'm wondering how many bytes my dll allocated for me.
thank you !
Best Regards
|
|
|
|
|
One way is to walk the heap-block list. See here for an example.
You could also use performance counters. See here for an example.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Thanks! I read the articles you put here,
I think the heap-block list maybe helpful, but performance counter only give the memory used by process itself, cannot see the dll inside of it.
Best Regards
|
|
|
|
|
Hi all,
I've a question for you. So, for example, i've an ASP file (abc.asp):
<%<br />
Function DB_Connect()<br />
.....<br />
End Function<br />
%>
Now, in an ActiveX, i want call this function. How can i do??
Thanks for your help!
hzocm
|
|
|
|
|
I'm curious why you'd want to. Why not just make the ActiveX code do what the ASP code is doing?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
that's a simple example. But, if u want, i've create an ActiveX what uses the interface of portail web (already is existed). This activeX will be install in client PC. The VBScritp function uses a ODBC link that connects to a server Database.
thanks for your replie
hzocm
|
|
|
|
|
So the ActiveX control is running on the client and the ASP code is running on the server. The database also resides on the server. Correct?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Hai Guys,
Thanks Osama for the reply. I got the Answer.
I have a major problem on Updating data from two or more tables in Visual C++ Database programming. I have looked at table joins they are read only. I want to work with and update data from two or more tables in Visual C++ 6.0.
Can any one be of help.Thanks in advance.
Wisdom.
|
|
|
|
|
As you have already discovered, joined tables are read-only. You'll need to update each table separately.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hello Everyone!
I need to access data from XML file with regular database interface.
So that I can use SQL like syntax for accessing data.
(I am working on VC++ 6.0 & Oracle database)
I searched for it & came to know that there is something like ODBC driver for XML.
Someone please tell me where to find any such driver( free ).
& also how to use that.
If anybody have other solution , that will be good.
With Regards
Abhi
|
|
|
|
|
Hi
Is it possible to add buttons to balloon tooltip?
Regards
|
|
|
|
|
Asha Udupa wrote:
Is it possible to add buttons to balloon tooltip?
Ms. Udupa,
Check, if this article of any help :-
http://www.codeproject.com/miscctrl/pptooltip.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I'm (proactively) checking my code against VC8 Beta 2, to find any porting issues.
VC8 uses strsafe.h and "tuned" C Runtime headers, that flag the "old" C string APIs as deprecated, and encourages use of the (safer) "_s" - variants.
Is there any header that allows to compile such code on other compilers (VC7, or MyOwnHomeGrownSeePlusPlusThingie)?
Pandoras Gift #44: Hope. The one that keeps you on suffering. aber.. "Wie gesagt, der Scheiss is' Therapie" boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
some one can recommend a free MFC library that can generate barcodes with types: code-39, code-128, code-2 of 5, EAN-8 and EAN-13
Thanks a lot.
|
|
|
|
|
there are plenty of them here[^]
did you search a bit ?
search codeproject for barcode (and article set on the combobox)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Here is an empty search page.
I tried to copy that link a few weeks ago to and foud that it doesn't work since the search parameters are not passed via the URL. You can give the search keywords instead.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
some one can recommend a free library that can generate codebars.
|
|
|
|
|
Anyone knows how to create a separate MFC resources dll using VS6?
I tried using the Dynamic DLL AppWizard to create an empty dll project, added a dialog and saved it into a new .rc file, and added this new .rc file to the project; but when i tried to compile it showed me a link error LNK2001: unresolved external symbol __DllMainCRTStartup@12. I think it's expecting the usual DLLMain functions, but i want to avoid that.
Any ideas anyone?
|
|
|
|
|
Ok i found out my mistake - i left out the /noentry link option to prevent the linker referring to the DLLMain function.
|
|
|
|
|
I also think on occasion these types of files are given the extension .RLL so that they are not summarily loaded by other programs.
Just a thought if you have any say in the matter.
|
|
|
|
|
Hi,
I am going through same issue. I have used /noentry link option but still issue is there.
Platform:
eVC++ 4.2
SDK: pocket pc 2003
Any idea?
Thanks in advance
Parag Patel
Sr. Software Eng, Varaha Systems
|
|
|
|
|
Hello,
I once again have problems with the file iostreams from the STL provided with visual studio (2005).
I use the std::ofstream to write data to a file. I verified all the data and everything here works like a charm. The problem here is when I try to read the data back from the file using the std::ifstream class. It reads more bytes than I say it should read. Take a look at my code:
void ReadData(std::ifstream& InFile, char* pData, size_t nCount)
{
assert( pData );
assert( nCount > 0 );
int nPos = InFile.tellg();
try
{
for( size_t i = 0; i < nCount; i++ )
(*(pData + i)) = InFile.get();
}
catch( std::exception& ex )
{
InFile.seekg(nPos);
}
}
I removed all the debug code and output statements. My scenario is as follows:
- I have a binary file,
- I read (nCount = 410 ) bytes
- The stream reads 499 bytes
I really don't know what might be wrong here.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Well, urm...
I opened the stream in text mode (default) and it should be opened in binary mode. I guess I got confused with MFC's CFile class, which always doesn't care about text and binary mode. It just doesn't manipulate data.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I have finally managed to get a rebar working on a MDI window, my problem now is that when the window resizes horizontally the rebar does not so it leaves a blank area next to the bar.
What do I need to do to make it size properly with the parent window?
Thanks in advance!
|
|
|
|