|
My program calls AsfCut.exe using the CConsolePipe class available here. But, asfcut is returning an error, and when my error-handling code starts (in the app's main thread, called using SendMessage from the asfcut-calling thread) it does "char *tmp = new char[350];", which returns this exception:
Unhandled exception at 0x77e73887 in IGCProcessor.exe: Microsoft C++ exception: std::bad_alloc @ 0x00116b04.
I have plenty of memory available, and my program is only using about 3mb according to Task Manager, so what in the world could be causing that exception?
|
|
|
|
|
I've found out that even calling "char *tmp = new char[xxx];" right after calling "myConsole->Execute(cmdLine);" crashes, though with a access violation at 0x000000 in strlen. Weird
|
|
|
|
|
Nevermind, there was a buffer overrun on a char array in Execute() . Not sure why it didn't give me a more informative error message, though
|
|
|
|
|
If anyone has experience using InstallShield Developer, I've posted a request for information on my forum here[^]. Thanks for your help.
Software Zen: delete this;
|
|
|
|
|
Hey I need help I am going to make a program in Visual C++ V6. I am ok at dialog based programs but I need this one to have the look, or layout of the well, like front page, or more or less the way microsoft visual c++ is laid out. One split panel on the left. One split panel on the bottom, and a place for documents in the middle. I want to be able to refrence a data base and I want to use dlls as much as posible for add ons and upgrades. I am not sure when starting the New MFC project, which one I should select. I know to go for a multiple document thing, but as far as the rest of the choices are concerened I am not sure. I want to make sure I am starting in the right place though, so can someone help me here?
Thanks
LOSTTWARE.com
|
|
|
|
|
Just go with an MFC exe file and select MDI. Use full database support when prompted.
BTW - Your site was asking about how to to better promote itself. I would suggest posting programming questions to hi-traffic programming sites and using your domain name as your username.
BTW2 - The technique of sending yourself a letter via certified mail to prove that you thought of an idea first doesn't work because you can send yourself an unsealed envelope that can be filled with whatever idea you want to rip-off and seal it long after you sign for it.
BTW3 - You don't even have Code Project listed as a programming resource on your link list.
|
|
|
|
|
RE to BTW2:
I have used it, and it did work, on a copyright.
RE to BTW3:
I have not added them, because I just found them.
LOSTTWARE.com
|
|
|
|
|
LOSTTWARE.com wrote:
RE to BTW2:
I have used it, and it did work, on a copyright.
Seems strange. I mean, I could send myself an empty envelope now and next year fill it with whatever new idea just popped up, seal it, and then say I thought of it first.
|
|
|
|
|
Hi,
I want to add bitmap to resources of win32 dll file. I know, that I can use UpdateResource function to do it, but I don't know in what format should the passed data be. Whole .bmp file or something else ?
Thanks
|
|
|
|
|
|
Hi,
Anybody know how to develop MSN Addins using VC++, I want to develop an addin for MSN 6.0, I need basic understandig of MSN Addins.
Thanks in Advance
Waqar.
|
|
|
|
|
I have a VC++ Dialog App and
1. want the Dialog not be be moved . ie i want to disable moving the window !
2. If i make the main window movable how should I position the PropertySheet contained within .
Assuming I have code like this
void CCamProgrammerDlg::OnMove(int x, int y)
{
CDialog::OnMove(x, y);
if(propertySheetCreated){
CRect r ;
this->GetWindowRect(&r);
mainSheet.SetWindowPos(0,r.left,r.top+30,r.Width(),r.Height()-75,0);
}
What I am asking is
I hate to hardcode the offsets .
I want the PropertySheet right below the Title bar of the mainWindow even after the main window moves
____________________________________________________
|__Main Window Title Bar __________________________|
|__PropertySheet Title bar___________________________|
|_Tab1_|Tab2__| |
| |
| |
| PROPERTYSHEET + MAIN WND AREA |
| |
| |
| |
|____________________________________________________| | |
| |
| |
| |
| |
| MAIN WINDOW AREA |
| |
| |
| |
|____________________________________________________|
3. IS it possible to create a PropertySheet without a Title Bar but not as a Child !
Engineering is the effort !
|
|
|
|
|
I will answer 1.
Handle OnNcHitTest and tell the system the mouse click was on the client area when it is actual
hit on the caption. Here is the code
<br />
UINT CMyDlg::OnNcHitTest(CPoint point) <br />
{<br />
UINT ret = CDialog::OnNcHitTest(point);<br />
if(ret == HTCAPTION ) return HTCLIENT;<br />
else return ret;<br />
<br />
}<br />
|
|
|
|
|
I would like to export mfc derived classes such as CDialogs in a regular DLL statically linked to MFC) to a plain Win32 application. Or to rephrase this question, if I have an app that uses MFC, instead of dynamically linking to a MFC lib, can I dynamically link to a DLL, that is already statically linked to MFC?
Because of redist issues, I need to statically link to MFC. I presently have several apps, whose overlapping functionality I'd like to consolidate into a single DLL. I understand that there are Extension DLLs, but this doesn't help me because it seems to require dynamic linking to MFC for both DLL and app.
TIA
Francis
|
|
|
|
|
francona wrote:
instead of dynamically linking to a MFC lib, can I dynamically link to a DLL, that is already statically linked to MFC?
Its been a long time since I have touched MFC, but if I recall correctly, the answer is no.
|
|
|
|
|
Hello,
Is there a way to generate an ASP page from an ISAPI dll ?
I want to protect my ASP pages without having to develop in C++ all the stuff again.
Thanks.
|
|
|
|
|
I posted a question earlier asking how I can read all files in an user specified directory. Thanks for all the answers.
However, I'm wondering if it's possible to read or check the file type (eg. .txt, .doc, or a folder) as well?? Thanks for any help.
|
|
|
|
|
Well, a file's type and its extension are not necessarily indictive of the other. In other words, I can create a .DOC file with Word, and change the extension to .XYZ. Now what do I have?
You can determine if a given entity is a folder or not by looking at the attrib member of the _finddata_t structure mentioned earlier. You can also look at the dwFileAttributes member of the WIN32_FIND_DATA structure.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Yeah, that's true. The extension can be changed. So, I guess I will have to write a function to check that, assuming the file extensions are correct.
I am using the attrib member of the _finddata_t structure. It turns out that a folder is 16 whereas a .txt is 32 or 33.
Can you please tell me what those numbers represent?!
Thanks.
|
|
|
|
|
hkl wrote:
Can you please tell me what those numbers represent?!
Take a look at lines 92-97 of dos.h , and lines 140-145 of io.h .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Thanks so much! I will take a look at that!
|
|
|
|
|
You could get string description of file's type using SHGetFileInfo() API function with SHGFI_TYPENAME flag.
|
|
|
|
|
hi
i'm using the ListView text callback and image callback (virtual style)
and i have a strange problem when processing the LVN_GETDISPINFO i give the control the data from lparam assosiated with the current item
but when i DC on an item the lParam is not there is there any solution for it
LEGENDARY
|
|
|
|
|
Modar wrote:
but when i DC on an item the lParam is not there
What does "DC on an item" mean?
Modar wrote:
is there any solution for it
Not without some code showing what you are trying to do.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hi, i want to stop Internet acces in the PCs of a local
network (CyberCafe), i dont have any adea.
Can anyone give me a methode or tip to do this task.
My work is an MFC app.
Thank for advence
|
|
|
|