| | |
MessageBox inCPPBuilder 2007
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2007
Posts: 5
Reputation:
Solved Threads: 0
I have a project in C++Builder. It invokes Application->MessageBox in several files. I recently upgraded to C++Builder 2007. The MessageBox calls that were already there seem to work OK, but those I have added since upgrading all give an AccessViolation at Run time.
The Call Stack looks like this:
:7c812a5b kernel32.RaiseException + 0x52
:004940CC System::NotifyNonDelphiException()
:7c90378b ntdll.RtlConvertUlongToLargeInteger + 0x46
:7c90eafa ntdll.KiUserExceptionDispatcher + 0xe
:7c90f0aa ntdll.RtlAnsiStringToUnicodeString + 0x5e
:7c832874 ; C:\WINDOWS\system32\kernel32.dll
:7473d271 ; C:\WINDOWS\system32\MSCTF.dll
:7473fcfc ; C:\WINDOWS\system32\MSCTF.dll
:74740313 ; C:\WINDOWS\system32\MSCTF.dll
:7474077b ; C:\WINDOWS\system32\MSCTF.dll
:74740ec5 ; C:\WINDOWS\system32\MSCTF.dll
:7473cd8f ; C:\WINDOWS\system32\MSCTF.dll
:7e418734 USER32.GetDC + 0x6d
:7e418816 ; C:\WINDOWS\system32\USER32.dll
:7e4189cd ; C:\WINDOWS\system32\USER32.dll
:7e418a10 USER32.DispatchMessageW + 0xf
:7e42dbbf ; C:\WINDOWS\system32\USER32.dll
:7e42593f ; C:\WINDOWS\system32\USER32.dll
:7e43a91e ; C:\WINDOWS\system32\USER32.dll
:7e43a284 ; C:\WINDOWS\system32\USER32.dll
:7e4661d3 USER32.MessageBoxTimeoutW + 0x7a
:7e466278 USER32.MessageBoxTimeoutA + 0x9c
:7e450617 USER32.MessageBoxExA + 0x1b
:7e4505cf USER32.MessageBoxA + 0x45
:004CE16E Forms::TApplication::MessageBox(Self=:04BAB640, Text=????, Caption=:005351F6, Flags=????)
:0040F5A5 CEnvelope:
etVartoIgnoreinPhase(this=:04B8F620, iphase=22, nx=21, ignoreindex=12, iusethisphase=:0013E5E0)
SetVartoIgnoreinPhase is my function.
The calling statement is
Application->MessageBox(messbuff, "Phase Envelopes", MB_OK);
messbuff is a char array.
The included header includes
#include <vcl.h>
ANyone know what I need to do?
The Call Stack looks like this:
:7c812a5b kernel32.RaiseException + 0x52
:004940CC System::NotifyNonDelphiException()
:7c90378b ntdll.RtlConvertUlongToLargeInteger + 0x46
:7c90eafa ntdll.KiUserExceptionDispatcher + 0xe
:7c90f0aa ntdll.RtlAnsiStringToUnicodeString + 0x5e
:7c832874 ; C:\WINDOWS\system32\kernel32.dll
:7473d271 ; C:\WINDOWS\system32\MSCTF.dll
:7473fcfc ; C:\WINDOWS\system32\MSCTF.dll
:74740313 ; C:\WINDOWS\system32\MSCTF.dll
:7474077b ; C:\WINDOWS\system32\MSCTF.dll
:74740ec5 ; C:\WINDOWS\system32\MSCTF.dll
:7473cd8f ; C:\WINDOWS\system32\MSCTF.dll
:7e418734 USER32.GetDC + 0x6d
:7e418816 ; C:\WINDOWS\system32\USER32.dll
:7e4189cd ; C:\WINDOWS\system32\USER32.dll
:7e418a10 USER32.DispatchMessageW + 0xf
:7e42dbbf ; C:\WINDOWS\system32\USER32.dll
:7e42593f ; C:\WINDOWS\system32\USER32.dll
:7e43a91e ; C:\WINDOWS\system32\USER32.dll
:7e43a284 ; C:\WINDOWS\system32\USER32.dll
:7e4661d3 USER32.MessageBoxTimeoutW + 0x7a
:7e466278 USER32.MessageBoxTimeoutA + 0x9c
:7e450617 USER32.MessageBoxExA + 0x1b
:7e4505cf USER32.MessageBoxA + 0x45
:004CE16E Forms::TApplication::MessageBox(Self=:04BAB640, Text=????, Caption=:005351F6, Flags=????)
:0040F5A5 CEnvelope:
etVartoIgnoreinPhase(this=:04B8F620, iphase=22, nx=21, ignoreindex=12, iusethisphase=:0013E5E0) SetVartoIgnoreinPhase is my function.
The calling statement is
Application->MessageBox(messbuff, "Phase Envelopes", MB_OK);
messbuff is a char array.
The included header includes
#include <vcl.h>
ANyone know what I need to do?
![]() |
Similar Threads
- Calling MessageBox in Borland C++Builder (C++)
- norton internet security 2007 beta (Viruses, Spyware and other Nasties)
- Outlook 2007 Beta Anti-Spam (Windows Software)
- MessageBox (C++)
- MessageBox::Show problem (C++)
Other Threads in the C++ Forum
- Previous Thread: help please
- Next Thread: CPPBuilder LINK32 Error REGISTRY.OBJ
Views: 1358 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays based beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy dll download dynamic encryption error file forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library lines linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return simple sort spoonfeeding stream string strings struct temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





