Here is how I make a link in my program so people can check for program updates:
This is a menu item: Check for Updates;
//check for updates
void __fastcall TForm1::HTMLEditorUpdates1Click(TObject *Sender)
{
ShellExecute(Form1->Handle, "open"...
I get error “Access violation at 06402A80 in module “VIEWPICT.EXE” read of address FFFFFFFF.” When I execute the following:
In the Unit1.cpp file:
void __fastcall TMainForm::Copy1Click(TObject *Sender)
{
TChild* child = dynamic_cast<TChild*>(ActiveMDIChild);
if(!child)
{
return...
It should be like this so you do not get an error if the DefaultSkin file has not be created:
In a Menu Item place this:
void __fastcall TForm1::DefaultSkinClick(TObject *Sender)
{
if(FileExists(DefaultSkin))
{
WritePrivateProfileString("SKIN", "1", ""...
I do not think USEFORM("FngrMain.cpp", FormMain); will work in Builder6.
try
#include "FngrMain.h"
#pragma link "FormMain"
The DestroyWindow function destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it. The function also destroys the window's menu, flushes the thread message queue, destroys timers, removes...
The CreateProcess function creates a new process and its primary thread. The new process executes the specified executable file.
BOOL CreateProcess(
LPCTSTR lpApplicationName, // pointer to name of executable module
LPTSTR lpCommandLine, // pointer to command line string...
Place an image component on the form and place a *.jpg picture in it, this will be the default skin.
Place an OpenDialog on the form.
In the header of the *.cpp file place:
#include <vcl.h>
#include <string.h>
#include <alloc.h>
#include <jpeg.hpp>
#include <dir.h>
Under TForm1 *Form1 place...
Your compiler cannot find these files or the files are read only. Find the files on your computer and make sure they are Archive. If you still get the error then put the files path in your compiler's Directories/Conditionals Include Path:
DevGuide: Component writer's guide
Defining your own messages
A number of the standard components define messages for internal use. The most common reasons for defining messages are broadcasting information not covered by standard Windows messages and notification of state changes.
Defining a...
TCustomRichEdit::Paragraph
Specifies the formatting information for the current paragraphs.
__property TParaAttributes* Paragraph = {read=FParagraph};
Description
Read Paragraph to get the TParaAttributes object used by the rich edit control to specify paragraph formatting information. Use...
[Now Supported on Windows NT]
Sends a message to the system to add, modify, or delete an icon from the taskbar status area.
WINSHELLAPI BOOL WINAPI Shell_NotifyIcon(
DWORD dwMessage, // message identifier
PNOTIFYICONDATA pnid // pointer to structure
);
Parameters
dwMessage...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.