|
Hi, I get an error when i want to compile an empty C# form...
C:\C++\WindowsApplication1\licenses.licx Could not transform licenses file 'licenses.licx' into a binary resource. The format of the file 'lc.exe' is invalid.
What is that???
|
|
|
|
|
I'm not sure but I did a search on Yahoo / Google and found someone with the same problem, they said that they deleted the license file then rebuilt and it fixed their problem.. maybe try renaming the file to .old or something like that and try to re-compile..
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
Found this too.. http://support.dundas.com/Articles/ArticleBody.asp?ArticleID=713
It also says to delete the file from the project..
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I want to create some checkboxes dynamicaly from code and I want them tranparent. The problem is that I tried to create them from resource with the trasparent atribute (WS_EX_TRASPARENT) but it still didn't work. Anyway my problem is to create them dynamically. Any ideas, sugestions ?
|
|
|
|
|
WS_EX_TRASPARENT style does not make it transparent, just tells window to paint control after children. I am sure you can find plenty custom draw samples on this and others websites.
brian
|
|
|
|
|
Handle WM_CTLCOLORBTN and in your handler, call SetBkMode(TRANSPARENT) on the HDC that is passed in the message's wParam .
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Which comes first, the bug or the stress?" -- Chris Maunder
|
|
|
|
|
hi,
How can I check if the mouse cursor is leaving a child-window? (using api)
bye
chris
|
|
|
|
|
Hmm, same as everywhere else SetCapture(HWND);
|
|
|
|
|
yes, but I need a "onMouseOver" effect for a button (sees if the mouse is leaving the child window with no mousebutton pressed) which always works. But I can't always have the capture. SetCapture only works fine when I have a "onMouseClick" effect.
bye
chris
|
|
|
|
|
I believe WM_MOUSEMOVE is what you need.
|
|
|
|
|
You did not post very good description....
TrackMouseEvent is what you want.
|
|
|
|
|
TRACKMOUSEEVENT t_MouseEvent;
t_MouseEvent.cbSize = sizeof(TRACKMOUSEEVENT);
t_MouseEvent.dwFlags = TME_LEAVE | TME_HOVER;
t_MouseEvent.hwndTrack = m_hWnd;
t_MouseEvent.dwHoverTime = 1;
::_TrackMouseEvent(&t_MouseEvent);
you will now receive the WM_MOUSEHOVER and WM_MOUSELEAVE messages, the last one is the one you want
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
thanks Gregor S.! but it doesn't work here. I uses exactly the code you postet on WM_CREATE of the window (OS: Windows ME). _TrackMouseEventcalled returns no error. But the messages are not sent. I also checked it with Spy++.
any suggestions?
|
|
|
|
|
The cursor has to actually be in your window before you call TrackMouseEvent() , so you call TrackMouseEvent() in your WM_MOUSEMOVE handler.
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"Which comes first, the bug or the stress?" -- Chris Maunder
|
|
|
|
|
As you know the name of all running process appear in "windows task manager" (Ctrl+Alt+Del ),now
how can i delete the name of my App from this list (really silly question )?
english isn't my native language ,please excuse me for bad comments.
Thanks.
|
|
|
|
|
make ur app as a windows service
CodeTheDreams();
|
|
|
|
|
zarrin wrote:
As you know the name of all running process appear in "windows task manager" (Ctrl+Alt+Del ),now
how can i delete the name of my App from this list (really silly question )?
Try calling ModifyStyleEx( 0, WS_EX_TOOLWINDOW ) for the App window. This will stop it appearing in the Alt+Tab list, an I think Task Manager. You need to ensure it doesn't break anything in your app. There maybe other wasys to do what you want as well. Search the articles here on CP, MSDN and try Google.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Use the RegisterServiceProcess API function to remove your app name from the list.
This removes your app from the list:
RegisterServiceProcess(NULL, 1);
This makes your app visible in the list again:
RegisterServiceProcess(NULL, 0);
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
zarrin wrote:
how can i delete the name of my App from this list
In other words - you want to create a "hidden" process, aka "spyware" or worse.
Please go away.
|
|
|
|
|
|
When the MDI framework opens a document, its main window gets a title like "docname.raw".
When I open a new view over the same document, the last opened winodow has the title like "docname.raw:1".
If I want to change that text from "docname.raw:1" to something like "docname.raw - RED CHANNEL", where I have to call the SetWindowText()?
Or, is it the right method to be called?
Thanks
|
|
|
|
|
You need to overide: CChildFrame::OnUpdateFrameTitle(). You do the same thing in your CMainFrame to take control of the app title bar. That's what I do in ED (see sig).
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Hi
I need help in knowing the (left) mouse key status in OnKillFocus(). The reason is I need to know if the Left mouse key has been clicked and thus causing my dialog to kill focus. If so, I need to clean up some data otherwise nothing is done.
Please help. Thanks
|
|
|
|
|
I assume you want to know if the user clicked [X]. If that is the case you are better to use code like the following:
BOOL
CDockTabsView::MouseOnCloseButton()
{
BOOL bStat = FALSE;
if ( IsWindowVisible() )
{
CWnd* pDockFrame;
POINT point;
GetCursorPos( &point );
if ( ( pDockFrame = WindowFromPoint( point ) )->IsChild( this ) )
{
UINT nHitPos = pDockFrame->SendMessage( WM_NCHITTEST, 0, MAKELPARAM( point.x, point.y ) );
bStat = nHitPos eq HTCLOSE;
}
}
return bStat;
}
If you really want to know if the left button is down use:
BOOL
IsLButtonDown()
{
return KEY_DOWN( GetAsyncKeyState( GetSystemMetrics( SM_SWAPBUTTON ) ? VK_RBUTTON : VK_LBUTTON ) ) ne 0;
}
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
I'm trying to use a form I created in C# in a VC++ program I am creating. (Descriptive subject, no?) I have the C# compiling into a DLL and ... well that's about as far as I can get. I've done some reseach in the MSDN, and it shows how to use console classes, but nothing about how to use a form created in C#. I don't have the code on this computer, but the method I found I was trying last was using the following code (Close as I can 'member)
#using <mscordb.dll>//However main CLR dll is spelled.
#using "MyCSharpDLL.dll"
using namespace MyCSForm;//I tried it with and without this
//line and it didn't work either way, so I show it.
That's about where I get to. I also try to create an object of the class in the name space using either
MyForm Form1;
OR
MyCSForm::MyForm Form1;
Depending on if I use the "using namespace MyCSForm;" line or not.
I have also tried to using a slightly more complex method, one that is used to load functions from a DLL. I use that method to pull things out of a C++ dll that uses dllexport to say what comes out. That method can load the C# DLL but I can't figure out what I would be trying to load from it. Tried and failed to do the form, and main and even the namespace. None worked. At least I don't know how to get them to work.
Any help would be appreciated and if you have question I will answer them to the best of my abilities. And if I am going all wrong on how to load a DLL made in C# into C++, please point me in the right direction. Thanks.
Note: I'm sorry if I seem to be flooding the forum, but I'm not sure which of the three (Visual C++, Managed C++, C#) I am posting this in would be the best place for it. Since it deals with all three of them, I believe.
Thank you again for any help.
The wisest of the wise may err. - Aeschylus
|
|
|
|