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:
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.