|
|
Thank You. I was worried that this may cause more problems then it is worth but I would like to use some of the win2k functionality in my .dlls (> 500K lines)...
John
|
|
|
|
|
my SDI doesn't have database support but I wish to add it in, how to go about creating CRecordset(the coding part) and how will i link it to my MS Access database?
|
|
|
|
|
You will need to include mfc database support (afxdb.h). The ClassWizard does a fairly good job of getting you started with skeleton odbc classes (ClassWizard - AddClass - New...use CRecordSet as the base class)You may also want to check out the VC++ help file under ODBC for basic information
|
|
|
|
|
Is there analog CMemoryState in АТL ?
To check memory state and find difference?
thanks
|
|
|
|
|
Hi
I want to make sure the user can only browse and only click a file named 'myprogram.exe' in the CFile Dialog (open)
Didn't find any flags restricting this.
Any ideas?
Best regards
Jens
|
|
|
|
|
This severly defeats the purpose of using CFileDialog , does it not? If you're only allowing the selection of one file, why bother asking for it? Have you considered using SHBrowseForFolder() instead? With whatever folder is selected, tack 'myprogram.exe' on to the end.
|
|
|
|
|
DavidCrow wrote:
This severly defeats the purpose of using CFileDialog
agreed.
Or u could just do a comparision check of the returned filename.
I Dream of Absolute Zero
|
|
|
|
|
In an MDI application when more than one MDI child frames
are open and one of these child frames is maximized when
we toggle to other frames, they are maximized too
regardless of their previous size.
I checked the UINT nType passed to OnSize message handler
in MDI's view class but its value is always 0
(SIZE_RESTORED).
How can I preserve an MDI frame's previous size including
maximize, minimize or restore status after toggling to
this frame from another maximized MDI frame?
Thanks in advance
|
|
|
|
|
I have many HDIB hDib,
and want to see when variable with such a name chages,
with no relate to place in programm -
I do not know where to place breakpoint.
Memory leak happens,
due to some library - frees incorrectly HDIB,
which is alloctes flexibly by new [length] -
to solve this problem.
thanks
|
|
|
|
|
I have one dll file without any information about that file. I want to know all functions in that dll file. How can I do to list all functions?
|
|
|
|
|
dumpbin /export your.dll
lists all exports by that dll.
dumpbin is included in VC++ compiler packages.
|
|
|
|
|
You can also use the Depends (depends.exe) tool that comes with Visual Studio.
|
|
|
|
|
hi,
i have a dialog app. when i hit the start button i want to perform some steps and indicate each step with a little picture (one for failed, one for pass).
what should i use for this?
icons are always drawn big. i only need them to be 8x8. but if i use bitmap the background is not transparent.
how do i get what i want? or should i use something totally different?
code examples would be cool.
greets.
|
|
|
|
|
You can use a 16x16 Icon, draw your 'indicators' in the middle and leave a 4 pixel transparent border on each side.
For this you simply darw your icons, load them and draw.
If you get a stretched version of your icon (I aksed this question yestarday Use LoadImage to indicate the desired size for your icon.
You can also use a bitmap with a mask-bitmap to mask out the transparent color, but I think Icons would be the easiest way for you.
|
|
|
|
|
I want to create a new document/view making its frame hidden till some lengthy operation is done and then show its frame, so I passed a FALSE value to CDocTemplate::OpenDocumentFile ‘s second parameter BOOL bMakeVisible in void CMainFrame::OnFileNew() message handler:
CMyDoc* pDoc = (CMyDoc*)theApp.m_pCPDocTemplate->OpenDocumentFile(NULL, FALSE);
How do I have to make this document’s frame and view visible again?
Thanks
|
|
|
|
|
Hello guys!
Does anybody know of some good CDROM burning libraries that I could use for a project of mine?
I want to add some CDROM burning capabilities to my programs...
Thank you in advance!
"Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
|
|
|
|
|
|
Hi!
The Nero api is pretty good but I recommand using something more general... Nero SDK only works if there is a nero burning program installed on a computer and everyone doesnt use nero...(but it is easier to use)
You can use the imapi.h header file which you can get by downloading the latest Platform SDK ( it includes cd-writing ) ... ( your program will work on computers with windows XP or with some other windows edition with a service pack )
Well... I am a beginner ...
|
|
|
|
|
Hi All,
We need to debug DB2-C Stored procedures sitting on Z/Os
(IBM). Those are embedded SQL C programs. We are using
Db2 Connect 7.2 to connect to the database. Now I want to
debug those C programs in VC++ editor.
If somebody has solution pl write to me.
Rgds
Siva
|
|
|
|
|
You'll probably need to set up remote debugging[^] with Visual C++ on the server.
You'll need to attach the debugger to the process that will run the C code - this is probably the DB2 executable, although I don't know which one this is - I'm not familiar with DB2.
|
|
|
|
|
Hi All
im getting this error when i execute the following piece of code
Run-Time Check Failure #2 - Stack around the variable name 'pbuff' was corrupted.
does ne1 know whats wrong with my code, im pulling my hair out here
thanks
si
CString vChr;
TCHAR pbuff[32];
CString Out;
int num=0;
int nOffset=0;
int nRead;
//read in the 1st 32 bytes
do
{
for (int f=0; f<=32; f++)
pbuff[f]=NULL;
sName="";
nOffset+=32;
nRead = SimMem.Read(pbuff,32);
int nLen=0;
int a = (int)pbuff[11]+128;
TCHAR ch = (char)a;
for (f=0; f<10; f++){
sName += pbuff[f];
}
}
|
|
|
|
|
si_69 wrote:
for (int f=0; f<=32; f++)
You are running a loop from 0 to 32. Thats 33 times, but you only alocated space for 32 chars.
You need to alocate enough space (and dont forget the trailing zero for a string!).
Hope this helps
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
jhwurmbach wrote:
a loop from 0 to 32
for (int f=0; f<=32; f++)
You missed the <= 32 so it stops at 31, although it would be better writte as < 32
It is amazing what you can accomplish if you do not care who gets the credit. - Harry S Truman
|
|
|
|
|
Get into the habit of using sizeof() eg.
<br />
CString vChr;<br />
TCHAR pbuff[32];<br />
CString Out;<br />
<br />
int num=0;<br />
int nOffset=0;<br />
int nRead;<br />
<br />
do<br />
{<br />
for (int f=0; f<sizeof(pbuff); f++)<br />
pbuff[f]=NULL;<br />
<br />
sName="";<br />
nOffset+=sizeof(pbuff); <br />
nRead = SimMem.Read(pbuff,sizeof(pbuff));<br />
<br />
int nLen=0;<br />
<br />
<br />
int a = (int)pbuff[11]+128;<br />
TCHAR ch = (char)a;<br />
<br />
for (f=0; f<10; f++){<br />
sName += pbuff[f];<br />
}<br />
It will stop you hitting annoying bugs like this...
Systems AXIS Ltd - Software for Business ...
|
|
|
|