|
Y K Kishore Kumar wrote: I have already tried using the NM_RCLICK event.
Does this imply that you are handling the NM_RCLICK notification? If so, then you should have something like:
BEGIN_MESSAGE_MAP(CMyView, CListView)
ON_NOTIFY_REFLECT(NM_RCLICK, OnRclick)
END_MESSAGE_MAP()
...
void CMyView::OnRclick(LPNMHDR, LRESULT* pResult)
{
CListCtrl &ctrlList = GetListCtrl();
CPoint pt;
CMenu menu,
*pSubMenu;
if (ctrlList.GetNextItem(-1, LVIS_SELECTED) != -1)
{
menu.LoadMenu(IDR_ITEM_MENU);
pSubMenu = menu.GetSubMenu(0);
pt = GetMessagePos();
pSubMenu->TrackPopupMenu(TPM_LEFTALIGN, pt.x, pt.y, this);
}
*pResult = 0;
}
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have used following code in my project
//////
Pen pen((ARGB) Color::Black, 10.0f); <br />
CString sFont(_T("Arial"));
FontFamily ff(sFont.AllocSysString());<br />
StringFormat sf;<br />
<br />
Point p(rect.left,rect.bottom);
GraphicsPath lgp;<br />
lgp.Reset();<br />
lgp.AddString(m_strText.AllocSysString(), m_strText.GetLength(), &ff, FontStyleBold, 300.0F, p, &sf);<br />
g->DrawPath(&pen,&lgp);
/////
The text is dispalyed like bottom to up that means all the characters are at 180 degree angle from left to right.
What I have to do to solve the problem? Please help........
|
|
|
|
|
This is C++/VC++ forum. Please refrain from posting Java related threads
|
|
|
|
|
mandanani wrote: This is C++/VC++ forum. Please refrain from posting Java related threads
But where is Java Question
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
can anybody tell me if it is possible to use a java compatible dll in an java applet, if yes please tell me how to use it...
swaroop
|
|
|
|
|
|
work i have done in the project
1. made the header file using javah as per the document given to me
2. and included the header dile in the dll vc++ project for making the dll
3. after dll creation i copied the dll in to the java workspace and also in the class directory.
4. the java code is showing runitime while i try to call the dll.
swaroop
|
|
|
|
|
I am lost
How come a VC++ dll (hope not COM dll) use in Java application. I am learning things which I have never dreamt of
|
|
|
|
|
i mentioned vc++ bcoz i'm using the visual studio as my editor..the dll is a plain win32 dll completly in c++
swaroop
|
|
|
|
|
swaroopkb wrote: the dll is a plain win32 dll completly in c++
that's contradictory... Win32 is plain C, not C++ at all
|
|
|
|
|
ok, its a win32 dll...tell me how to solve it please...also will this dll work with Applets, if i'm using a bridge using the java native interface..
swaroop
|
|
|
|
|
for that, i can't help, because i never had to use dlls in java code... are you sure you cant obtain some jars that already do what you're looking for by this DLL ?
|
|
|
|
|
No i cant use a jar...bcoz my work is to convert the existing code to an applet. the code is too big to convert it to java...so the only way is to make a dll that is java compatible...
when u tried with a small java program to access the dll it worked , but when i tried with applet it was not working...do u know whether there is any limitation for applets like ths one???
swaroop
|
|
|
|
|
while trying to make a java compatible dll for my application i'm getting a linking error msg in VC++ (VS6.0) as
error LNK2001 : unresolved external symbol _imp_mciSendCommandA@16
i'm using this dll for accessing the mic.
can anybody help me in solving this problem
swaroop
|
|
|
|
|
did you correctly provide the .lib file to you linker settings ?
|
|
|
|
|
yes, all the lib files needed for the function is given in the settings of the VS 6.0.. as per the msdn winmm,lib is the lib file needed for that and still the problem exist. also two more header file is needed for the function is also included.
swaroop
|
|
|
|
|
did you try a C linkage ? because your symbole seems to be mangled...
|
|
|
|
|
if u don mind, could u please tell how to use c linker
swaroop
|
|
|
|
|
extern "C"[^] before the name of the method in the declaration in the header
|
|
|
|
|
the function i mentioned in the error is a inbuilt function for handling the mic's and all should i use extern for that also, if so hw?
swaroop
|
|
|
|
|
man, your _imp_mciSendCommandA() function if declared in a header file, right ?
then prepend its declaration with a extern "C"... like this for instance :
extern "C" int _imp_mciSendCommandA(int);
|
|
|
|
|
sorry for troubling u again , Actually i'm not declaring that function in my code...i'm just using that function, where the function is declared in Mmsystem.h(inbuilt header file)...
i use this function to open the mic,close the mic and for recording..
syntax of the function in mmsystem.h
WINMMAPI MCIERROR WINAPI mciSendCommandA(MCIDEVICEID mciID,UINT uMSG,DWORD dwparam1,DWORD dwparam2);
sorry for the trouble..please reply
swaroop
|
|
|
|
|
Did you import Winmm.lib ?
|
|
|
|
|
yes, i imported that library . but still the error showing
swaroop
|
|
|
|
|
swaroopkb wrote: yes, i imported that library .
How? Saying you did it, and doing it right, are not always the same thing.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|