|
Ok, thanks Mike, I fixed that little bug however I am still creating a new file that dramatically gets large really fast. The only thing I am not really sure about now is the .def file used. It looks like this, I am not sure exactly how this is suppose to be structured, I used this structure as I read it in an example.
LIBRARY AppendFile
DESCRIPTION 'Append one file to another'
EXPORTS
AppendFile @1
Nick Parker
|
|
|
|
|
Nick Parker wrote:
I am still creating a new file that dramatically gets large really fast
here's a simple way to debug in this situation:
start VC. load your DLL workspace. put a breakpoint in AppendFile.
"run" it. when VC asks "which executable to use?" give it the path to the VB EXE (the actual Visual Basic IDE, not your VB app).
load your VB app and run it.
-c
For men use, if they have an evil turn, to write it in marble:
and whoso doth us a good turn we write it in dust.
-- Sir Thomas More
|
|
|
|
|
Is there a way to create a pane in a static splitter window based on an existing dialog resource? I've tried using CFormView and I've decided that the doc/view architecture is way to complicated. I am trying to achieve something similar to the Class View in VC++ 6.0 for a custom game editor I am working on.
Thanks,
-Matt
|
|
|
|
|
derive anew class from CSplitWnd, over load next two virtual function:
virtual CWnd* GetActivePane(int* pRow = NULL, int* pCol = NULL);
virtual void SetActivePane( int row, int col, CWnd* pWnd = NULL );
implement as follow:
CWnd* CTSplitterWnd::GetActivePane(int* pRow, int* pCol)
{
ASSERT_VALID(this);
CWnd* pView = GetFocus();
if (pView != NULL && !IsChildPane(pView, pRow, pCol))
pView = NULL;
return pView;
}
void CTSplitterWnd::SetActivePane( int row, int col, CWnd* pWnd)
{
CWnd* pPane = pWnd == NULL ? GetPane(row, col) : pWnd;
pPane->SetFocus();
}
I am seeking...
For what?
Why did you ask me for what? I don't know!
|
|
|
|
|
redbomberman wrote:
I am trying to achieve something similar to the Class View in VC++ 6.0 for a custom game editor I am working on.
Then you're after docking windows, not a splitter. CP has a number of solutions, IMHO the best is this one:
http://www.codeproject.com/docking/sizecbar.asp [^]
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
I want to hide certain item's in my list view but I don't know how to do it. I've thought of making the hiden items having a height of 0 or simply not drawing them using custom draw but I have no idea how to do either of the two. I don't want to remove them from the list, just hide. Any ideas on how to do this?
There's always one more bug.
|
|
|
|
|
|
Anyone knows how to disable edit boxes w/in your program? Thx
ralf.riedel@usm.edu
|
|
|
|
|
MyEdit.EnableWindow(FALSE);
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
or GetDialogItem ( THE_EDIT_ID )->EnableWindow( value );
value = TRUE --> ENABLE
value = FALSE --> DISABLE
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I would use
m_Edit.ModifyStyle(0, ES_READONLY) ;
This would allow the ocntent to still be copied to the clipboard by the user, but not change it.
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.
|
|
|
|
|
I have a VB activeX dll. How does one call this from an MFC application?
Thanks,
ns
|
|
|
|
|
Try to import the methods of dll. For that try to make a new class from the dll....
I never tried that but you can try to do...
Best Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
http://www.codeproject.com/dll/vbactivexwithvc.asp
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
That looks like an excellent lead. Thanks so very much!
ns
|
|
|
|
|
http://www.codeproject.com/com/vbeventswithvc.asp good also
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
u can try in MSDN with this question number:"Q194873"
The article name is:
"HOWTO: Access a Visual Basic ActiveX DLL from Visual C++"
In this article he explained three different ways to call
vb activex dll from vc++
enjoy....
anju
|
|
|
|
|
Hello,
When using hotlinks for URL's in a Richedit Control, and then calling ShellExecute as follows:
<br />
ShellExecute(hWnd, NULL, pszURL, NULL, NULL, SW_SHOWNORMAL);<br />
The memory footprint of my executable will go up about 2 1/2 megs. Is there a way to free this memory up after a URL is clicked, or am I implementing something wrong here?
Thanks!
. djrisc .
|
|
|
|
|
I suggest you change the first parameter of ShellExecute from "hWnd" to "NULL".
|
|
|
|
|
Thanks for the suggestion.
Unfortunately the memory footprint still goes up with the first parameter set to NULL.
. djrisc .
|
|
|
|
|
I suspect because it has to load a dll (shell32.dll I think). This would not really expand your memory footprint since the memory of the dll is typically shared between all programs. If your using the task manager to view the memory footprint, you have to take what it says with a grain of salt.
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Hi, All,
How can I select item in a ListCtrl programmatically? the ListCtrl is in
Report View mode.
Thanks in advance
|
|
|
|
|
Use this...
SetItemState(index, LVIS_SELECTED, LVIS_SELECTED);
... or even this:
SetItemState(index, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
|
SetItemState (idx, LVIS_SELECTED, LVIS_SELECTED);
For men use, if they have an evil turn, to write it in marble:
and whoso doth us a good turn we write it in dust.
-- Sir Thomas More
|
|
|
|