|
Search for it here: http://discuss.microsoft.com/archives/cryptoapi.html
|
|
|
|
|
|
Hi,
In a dialog-based application, i have a list control. How to
put the check box into each item of the list and how to set and get
check state? Is there a dialog based demo program?
Thanks in advance!
chen
|
|
|
|
|
Well, as with all things involving common controls, the answer depends on which version you are tyring to support. If you have to support all the way back to Windows 95 (original) without IE installed, then it's going to be a lot of work with owner draw controls.
If you can forego compatibility with those old systems, then check out this:
The LVS_EX_CHECKBOXES style
and also
The XListCtrl here on CodeProject.
--
Where are we going? And why am I in this handbasket?
|
|
|
|
|
Hi,
I have a small Popup menu which is initiated when
someone click on the System Tray Icon (my appl).
I want that when the mouse click is there, the menu
should be shown with the faded effect.. like in
Office XP etc..
How can i Do it.
Sameer
|
|
|
|
|
There is no direct support from the OS on systems like winnt and 95.
You have to go thru owner drawn menus.
|
|
|
|
|
Hi
I want to administrate IIS from C/C++. I found some samples in VB (VBS) and one in C/C++ (how to add web directory). Sample in C/C++ is more difficult than samples in VB.
I need simple C/C++ dll with exported functions to control IIS properties.
Thx 4 hlp
"Actually, real programmers don't need the enter key- they just type in 00001101."
|
|
|
|
|
Have you checked articles in CP:
http://www.codeproject.com/isapi/
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|
|
Hi,
I have an application that runs in System Tray
I want a Popup menu which has a gradient bar on its
left side and bitmaps on the menu items..
Please provide me some links
Thanx in advance
Sameer
|
|
|
|
|
Use CMenuXP class. You can find it on this site.
http://www.codeproject.com/menu/menuxp.asp
|
|
|
|
|
Hi,
Thanx for the help, but it was actually CGradientMenu Class, I got it and my Menu is working. One more thing that I would like to add is the Fading Effect.
How do i do that
Sameer
|
|
|
|
|
My advice: forgot this class. I used it before CMenuXP, it doesn't works in windows 95 and NT 4, and it is toolbar based class -> no menu animation. CMenuXP is really powerful class with a lot of settings.
|
|
|
|
|
Sorry, it was another class, not CGradientMEnu. But CMenuXP is very cool!
|
|
|
|
|
Hi!In my project i use ListCtrl and in subItem 0 i use images.
m_ImageList.Detach();
m_ImageList.Create(IDB_BITState,16,1,RGB(255,255,255));
m_ListErrorDescr.SetImageList(&m_ImageList,LVSIL_SMALL);
I insert item
LVITEM aa;
aa.mask= LVIF_TEXT | LVIF_IMAGE;
aa.iItem=iItem;
aa.iSubItem=0;
aa.iImage=stt; //stt 0 or 1 index of bitmap
aa.pszText= temp;
m_ListErrorDescr.SetItem(&aa);
How can I again know what picter is in subItem???
I write again m_ListErrorDescr.GetItem(&aa),but it does not work.
Please,help me!!!
|
|
|
|
|
I worked with subitem images, and can mail you sources of my little project. Ask me by e-mail.
|
|
|
|
|
Use CListCtrl::GetItem(LVITEM* pItem ) ;
In that the pItem contains the member 'iItem'
which is the index to the image in your list control.
|
|
|
|
|
Hi,
I am developing an ActiveX component for Socket
Communication. When my object is created, where do
i store my variables, like i want to store my socket
connection somewhere.. so how do i manage
them
Please help
Sameer
|
|
|
|
|
my app crashes...
0:000> dt NMITEMACTIVATE 12fa58
+0x000 hdr : tagNMHDR
+0x00c iItem : 3
+0x010 iSubItem : 0
+0x014 uNewState : 0
+0x018 uOldState : 0x407
+0x01c uChanged : 0
+0x020 ptAction : tagPOINT
+0x028 lParam : 1243808
+0x02c uKeyFlags : 0
0:000> dt NMHDR 12fa58
+0x000 hwndFrom : 0x000101b0
+0x004 idFrom : 0xe900
+0x008 code : 0xfffffffd
means the problem comes from control id 0xE900
Register
Last set context:
eax=00000000 ebx=016599ec ecx=77f5168d edx=7c770012 esi=01659970 edi=00c0002c
eip=0044dfa0 esp=0013f1d8 ebp=0013f3ac iopl=0 nv up ei pl zr na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010246
MyApp+4dfa0:
0044dfa0 8b10 mov edx,[eax] ds:0023:00000000=????????
how cani tell exactlywhere in my code?
given that its a release build which crashes
Bryce
|
|
|
|
|
bryce wrote:
given that its a release build which crashes
Read Joe Newcomer's article on debugging the release build
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
i did
it wasnt useful
B
i need to get into the map files i think
|
|
|
|
|
Hi all
the code fragment below compiles just fine however when i tried to access it it gives me the access violation error than the program is terminated.
here is the function:
void CAss3_q1View::OnResultsShowGroupa()
{
CAss3_q1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
const int TEAM = 0;
const int PLAYED = 1;
const int WON = 2;
const int DRAW = 3;
const int LOST = 4;
const int FOR = 5;
const int AGN = 6;
const int POINTS = 7;
int row, col ;
int tempScore1, tempScore2;
CString tempString;
int result[4][4];
int ladder[4][8];
lineArray.push_back("Group A Result");
pDoc->A.GetResults(result);
for( row = 0 ; row < 4 ; row++)
{
for(col = 0; col <4; col++)
{
if(row != col && result[row][col] >=-1)
{
CString team1 = pDoc->A.getTeam(row);
CString team2 = pDoc->A.getTeam(col);
tempScore1 = result[row][col];
tempScore2 = result[col][row];
tempString.Format("%s %d %s %d",team1, tempScore1, team2, tempScore2);
lineArray.push_back(tempString);
}
}
}
lineArray.push_back("Group A Table");
pDoc->A.getLadder(ladder);
CString team;
int played ;
int won ;
int draw ;
int lost ;
int f0r ;
int against ;
int points ;
for(row = 0; row <4; row++)
{
team = pDoc->A.getTeam(ladder[row][TEAM]);
played = ladder[row][PLAYED];
won = ladder[row][WON];
draw = ladder[row][DRAW];
lost = ladder[row][LOST];
f0r = ladder[row][FOR];
against = ladder[row][AGN];
points = ladder[row][POINTS];
CString tempString;
tempString.Format("%s %d %d %d %d %d %d %d",
team, played, won, draw, lost, f0r, against, points);
lineArray.push_back(tempString);
tempString = " ";
}
Invalidate();
}
If you notice the piece of code a little bit above it is pretty similar but it works just find.
And here is the getladder implementation:
void Group::getLadder(int ladder[][8])
{
ladder = aILadder;
}
the getResuslt one is also similar :
<pre>
void Group::GetResults(int res[][4])
{
res = result;
}
Please point out the problems to enlighten my newbie head
Cheers.
|
|
|
|
|
It compiles fine because it's OK in theory. In practice, you're obviously looking up indexes into the array which do not exist.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
thanks, i got it now . I thought passing array is reference so i just assign the location to the parameter. But later on i made a for loop to copy it to the actual parameter so it works just fine but when i output it out it only gives me the memory address.
Cheers
|
|
|
|
|
Dear sir :
I am developing a driver of keyboard , I hope to write a service program
to control logon interface of winXP .do "up arrow "and"down arrow " action by hotkey. can you tell me how control logon interface ? for example ,get logon handle , get the user's ID of logon interface .
thanks!
|
|
|
|
|
Look at Winlogon and GINA in MSDN,
you need to learn a lot before you can actually
control the Logon Process, Wish u the best in the effort.
|
|
|
|