|
That's a good point. In that case, VB won't work. Although the same is true of any other .exe that has external dependencies that might not be installed. (like common control library or an old version of the ole libs.)
Reading the post more closely, the users is simply describing a typical install program. Use the MS windows installer or InstallShield or Wise or any one of a number of other products to build such an install process.
|
|
|
|
|
Xxx.xxx is createdfile.
in autorun.ini file, write
[autorun]
open=xxx.xxx (if only xxx=exe)
ico=path(if u want to add ico)
or
[autorun]
open=start xxx.xxx(if xxx=bat,txt,...)
//start is the command of cmd.exe
|
|
|
|
|
|
Hi.
Any tutorial or help docs anywhere on how to create a simple Non MFC Win32 program that can connect to a mySQL database and show/send/delete data from the database?
Thanks for anyhelp.
|
|
|
|
|
|
My previous question was my mistake -- of course!
Now I'm setting up a Win32 app as an empty project and then adding 3 files from a game text book.
I get 1 link error:
blackbox.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
Does this msg mean it can't find ddraw.lib|h?
I'm using VC 6.0 under Windows 98. The program uses directX and I have version 8.1.
I have entered ddraw.lib|h and the other directX files on
Project Settings->Link Tab->Object/library modules.
What am I doing wrong?
Al
|
|
|
|
|
Have you installed the directx sdk ? or only the directx runtime?
Signature space for rent. Apply by email to....
|
|
|
|
|
No, it doesn't mean that VC can't find some file. It mean that it haven't found this function while linking code. It is probably caused by different calling convention of function in header file and in lib file (it seems that in header calling convention is stdcall and in lib is different). Try to find this function declaration in header file, it should be declared with WIN_API macro. After that find DirectDrawCreateEx in lib file. If it doesn't equal to _DirectDrawCreateEx@16 it can't work (then try to delete WIN_API from the declaration of the function, it should help unless the function is defined in lib using another calling convention: fastcall instead of cdecl. If it is defined with fastcall try to declare it with fastcall (but I don't which macro does this )
Greetings
Mariusz Popiolek
|
|
|
|
|
Anyone have any experience of writing a C++ app that has methods that get called when a cell (or cells) in an open Excel worksheet get changed ?
I have been looking here and not found much (and of course, so far MSDN searching hasn't turned up much, but I am still looking...)
Thanks
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
Try looking for automation and excel and MFC, for some hints. I've done something similar to this, monitoring some events. An alternative if it's for a specific workbook is to have some VBA event handling in the workbook.
Steve S
[This signature space available for rent]
|
|
|
|
|
Try looking for automation and excel and MFC
Yeah I tried this, and didn't (so far) bring up much useful but I will keep looking.
The VBA is a good point - I could have the vba event handler call out to a COM server I create and then have the server do the rest of the work that needs to happen.
Thanks
¡El diablo está en mis pantalones! ¡Mire, mire!
|
|
|
|
|
I spawn a CDialog derived class from my MDI view. I have a member array in the View m_fields[10] . I want to transmit this info to the dialog. If I declare a member array in the dialog called dialogFields[10], how can I from the view class fill it in after creating the object? (It will be modal so no create())
Is this legal? Is there a better way? I'm looking for the simplest mechanism, but am open to more sophisticated techniques for trannsmitting the array info. BOth member arrays are public.
CMyDlg myDlg;
for (int i =0; i < 10; i++)
{
myDlg.dialogFields[i] = m_fields[i];
}
Appreciate your help,
ns
|
|
|
|
|
Stick something like:
CMain* pMain = static_cast< CMain* >(AfxGetMainWnd());
for(int i=0; i<10; i++)
this->dialogFields[i] = pMain->m_fields[i];
in your OnInitDialog...
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
But but but -----this dialog doesnt know anything about the existence of a main or anything. Its off by itself. Do I have to include some .h in the dialog to make it recognise your code?
Appreciate your help,
ns
|
|
|
|
|
Yea,
#include "YourMainViewThatHasThePublicArray.h"
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
I'l try it...
Appreciate your help,
ns
|
|
|
|
|
Unless I'm missing something here, the implementation you suggested in your original posting seems superior to the implementation that Nitron suggests. In your implementation, the main window class (let's call it CMainFrame) needs to know about CMyDlg, but CMyDlg needs to know nothing about CMainFrame. In Nitron's suggested implementation, CMainFrame needs to know about CMyDlg and CMyDlg needs to know about CMainFrame. Choose the path with the least linkage.
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
was thinking that myself
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" biz stuff about me
|
|
|
|
|
Hi, I have a control from which I regular need the current width, so I created a member variable. I did override OnSize() to get the new width.
Where do I get the initial width?
|
|
|
|
|
Well, I remember from my poor Win32 experience that you get a WM_SIZE after the control is created... so overriding OnSize() might be enough?
Propably someone can confirm this? Or is there any other message handler to override and call GetClientRect()?
|
|
|
|
|
Initially you will recieve a WM_SIZE before the control is created, and one after the control is created. You could do the following:
static bool first = true ;
if (GetDlgItem(IDC_OF_CONTROL) != NULL && first)
{
CRect size ;
GetDlgItem(IDC_OF_CONTROL)->GetWindowRect(&size) ;
first = false ;
}
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
Try reading here: CWnd::OnGetMinMaxInfo
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
sorry, I dont get the relation to my question about current control size, which is a client window (a listbox) of a dialog.
Meanwhile I tried with OnSize() , but OnSize() gets called to late. I need to catch the width somewhere earlier, right after the control is created....
|
|
|
|
|
Overwriting OnCreate() brought no luck... so I found this one:
void CListBoxLovely::PreSubclassWindow()
{
CListBox::PreSubclassWindow();
CRect rect;
GetClientRect(rect);
m_nItemWidth = rect.Width()
}
it works good
|
|
|
|
|
This brings up the UI and nothing can be done to it. Cant input anything in the combobox. THe UI is totallly unresponsive to anything:
BOOL CCombobox1View::PreTranslateMessage(MSG* pMsg)
{
CString s;
if ( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN )
if (GetFocus() ==& m_combo1)
{
m_combo1.GetWindowText(s);
m_combo1.InsertString(0,s);
m_combo1.SetWindowText("");
m_combo1.SetFocus();
return FALSE;
}
else
{
}
else
{
return TRUE;
}
return CFormView::PreTranslateMessage(pMsg);
}
Appreciate your help,
ns
|
|
|
|